Skip to content

Commit

Permalink
remove EntityUIDPointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Mar 27, 2024
1 parent 108dfc0 commit 930934f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
1 change: 0 additions & 1 deletion include/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ namespace S2Plugin
LevelGen,
EntityDB,
EntityPointer,
EntityUIDPointer, // TODO: remove
EntityDBPointer,
EntityDBID,
EntityUID,
Expand Down
6 changes: 3 additions & 3 deletions resources/Spelunky2.json
Original file line number Diff line number Diff line change
Expand Up @@ -9046,9 +9046,9 @@
{ "field": "unknown4", "type": "UnsignedDword" }
],
"UnknownPointerGroup": [
{ "field": "unknown_uid1", "type": "EntityUIDPointer" },
{ "field": "unknown_uid2", "type": "EntityUIDPointer" },
{ "field": "unknown_uid3", "type": "EntityUIDPointer" }
{ "field": "unknown_uid1", "type": "EntityUID", "pointer": true },
{ "field": "unknown_uid2", "type": "EntityUID", "pointer": true },
{ "field": "unknown_uid3", "type": "EntityUID", "pointer": true }
],
"SoundInfoPointer": [
{
Expand Down
1 change: 0 additions & 1 deletion src/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ namespace S2Plugin
{MemoryFieldType::Online, "Online", "", "Online", 0, false},
// Special Types
{MemoryFieldType::EntityPointer, "Entity pointer", "Entity*", "EntityPointer", 8, true},
{MemoryFieldType::EntityUIDPointer, "Entity UID pointer", "uint32_t*", "EntityUIDPointer", 8, true},
{MemoryFieldType::EntityDBPointer, "EntityDB pointer", "EntityDB*", "EntityDBPointer", 8, true},
{MemoryFieldType::EntityDBID, "EntityDB ID", "uint32_t", "EntityDBID", 4, false},
{MemoryFieldType::EntityUID, "Entity UID", "int32_t", "EntityUID", 4, false},
Expand Down
7 changes: 0 additions & 7 deletions src/QtHelpers/TreeViewMemoryFields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ QStandardItem* S2Plugin::TreeViewMemoryFields::addMemoryField(const MemoryField&
case MemoryFieldType::EntityDBID:
case MemoryFieldType::EntityUID:
case MemoryFieldType::EntityPointer:
case MemoryFieldType::EntityUIDPointer:
case MemoryFieldType::EntityDBPointer:
case MemoryFieldType::TextureDBPointer:
case MemoryFieldType::TextureDBID:
Expand Down Expand Up @@ -1385,11 +1384,6 @@ void S2Plugin::TreeViewMemoryFields::updateRow(int row, std::optional<uintptr_t>
}
break;
}
case MemoryFieldType::EntityUIDPointer:
{
// TODO pending deletion
break;
}
case MemoryFieldType::EntityPointer:
{
if (valueMemoryOffset == 0) // nullptr or bad ptr
Expand Down Expand Up @@ -2022,7 +2016,6 @@ void S2Plugin::TreeViewMemoryFields::cellClicked(const QModelIndex& index)
break;
}
case MemoryFieldType::EntityUID:
case MemoryFieldType::EntityUIDPointer:
{
auto offset = clickedItem->data(gsRoleEntityOffset).toULongLong();
if (offset != 0)
Expand Down

0 comments on commit 930934f

Please sign in to comment.