Skip to content

Commit

Permalink
fix sub there ThemeInfoPointer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed May 25, 2024
1 parent 8fffe43 commit 4e74bc2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ namespace S2Plugin
EntitySubclass, // a subclass of an entity defined in json
DefaultStructType, // a struct defined in json
UndeterminedThemeInfoPointer, // used to look up the theme pointer in the levelgen and show the correct theme name
ThemeInfoPointer, // same as above, but does not add struct tree
COThemeInfoPointer, // same as above, but does not add struct tree
LevelGenRoomsPointer, // used to make the level gen rooms title clickable
LevelGenRoomsMetaPointer, // used to make the level gen rooms title clickable
JournalPagePointer, // used to make journal page in vector clickable
Expand Down
2 changes: 1 addition & 1 deletion resources/Spelunky2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8896,7 +8896,7 @@
{ "field": "padding3?", "type": "UnsignedDword" },
{
"field": "sub_theme",
"type": "ThemeInfoPointer",
"type": "COThemeInfoPointer",
"comment": "for cosmic ocean"
},
{ "field": "unknown3", "type": "UnsignedDword" },
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ namespace S2Plugin
{MemoryFieldType::ConstCharPointer, "Const char*", "const char*", "ConstCharPointer", 8, true},
{MemoryFieldType::ConstCharPointerPointer, "Const char**", "const char**", "ConstCharPointerPointer", 8, true}, // there is more then just pointer to pointer?
{MemoryFieldType::UndeterminedThemeInfoPointer, "UndeterminedThemeInfoPointer", "ThemeInfo*", "UndeterminedThemeInfoPointer", 8, true}, // display theme name and add ThemeInfo fields
{MemoryFieldType::ThemeInfoPointer, "ThemeInfoPointer", "ThemeInfo*", "ThemeInfoPointer", 8, true}, // just theme name
{MemoryFieldType::COThemeInfoPointer, "COThemeInfoPointer", "ThemeInfo*", "COThemeInfoPointer", 8, true}, // just theme name
{MemoryFieldType::LevelGenRoomsPointer, "LevelGenRoomsPointer", "LevelGenRooms*", "LevelGenRoomsPointer", 8, true},
{MemoryFieldType::LevelGenRoomsMetaPointer, "LevelGenRoomsMetaPointer", "LevelGenRoomsMeta*", "LevelGenRoomsMetaPointer", 8, true},
{MemoryFieldType::JournalPagePointer, "JournalPagePointer", "JournalPage*", "JournalPagePointer", 8, true},
Expand Down
6 changes: 3 additions & 3 deletions src/QtHelpers/TreeViewMemoryFields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ QStandardItem* S2Plugin::TreeViewMemoryFields::addMemoryField(const MemoryField&
case MemoryFieldType::LevelGenRoomsPointer:
case MemoryFieldType::LevelGenRoomsMetaPointer:
case MemoryFieldType::JournalPagePointer:
case MemoryFieldType::ThemeInfoPointer:
case MemoryFieldType::COThemeInfoPointer:
case MemoryFieldType::UTF16Char:
case MemoryFieldType::IPv4Address:
{
Expand Down Expand Up @@ -1692,7 +1692,7 @@ void S2Plugin::TreeViewMemoryFields::updateRow(int row, std::optional<uintptr_t>
}
break;
}
case MemoryFieldType::ThemeInfoPointer:
case MemoryFieldType::COThemeInfoPointer:
case MemoryFieldType::UndeterminedThemeInfoPointer:
{
if (valueMemoryOffset == 0)
Expand Down Expand Up @@ -2519,7 +2519,7 @@ void S2Plugin::TreeViewMemoryFields::dropEvent(QDropEvent* event)

break;
}
case MemoryFieldType::ThemeInfoPointer:
case MemoryFieldType::COThemeInfoPointer:
case MemoryFieldType::UndeterminedThemeInfoPointer:
{
if (getThisTypeName() != "ThemeInfo")
Expand Down

0 comments on commit 4e74bc2

Please sign in to comment.