Skip to content

Commit

Permalink
rename exemplar GID macros
Browse files Browse the repository at this point in the history
  • Loading branch information
memo33 committed Feb 25, 2024
1 parent e2d16b2 commit 43996ba
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/SubmenusDllDirector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@
#define TOOL_PLOP_ZONE 0x4a2b2466
#define TOOL_PLOP_FLORA 0xea5ad08d

// argument for CreateCatalogItemList with unknown purpose
#define CREATE_CATALOG_ITEM_LIST_PARAM_3 0x2a3858e4
#define CREATE_CATALOG_ITEM_LIST_PARAM_3_FLORA 0xe83e0437
#define ITEM_EXEMPLAR_GID_MISC_CATALOG 0x2a3858e4
#define ITEM_EXEMPLAR_GID_FLORA 0xe83e0437


static constexpr uint32_t kSubmenusDllDirectorID = 0xc0583f3b;
Expand Down Expand Up @@ -511,7 +510,7 @@ namespace
push dword ptr [occupantGroup]; // is only initialized in nested case
commonCall:
push SUBMENU_ITEM_TYPE;
push CREATE_CATALOG_ITEM_LIST_PARAM_3;
push ITEM_EXEMPLAR_GID_MISC_CATALOG;
lea ecx, [esp + 0x1c];
push ebp;
push ecx;
Expand All @@ -529,7 +528,7 @@ namespace
push ITEM_BUTTON_ID_PROP;
push dword ptr [occupantGroup]; // is initialized as we are in nested transport menu opened from flora menu
push TOOL_PLOP_FLORA;
push CREATE_CATALOG_ITEM_LIST_PARAM_3_FLORA;
push ITEM_EXEMPLAR_GID_FLORA;
lea ecx, [esp + 0x1c];
push ebp;
push ecx;
Expand Down Expand Up @@ -561,7 +560,7 @@ namespace
push ITEM_BUTTON_CLASS_NETWORK;
push dword ptr [occupantGroup]; // is initialized as we are in nested submenu
push TOOL_PLOP_NETWORK;
push CREATE_CATALOG_ITEM_LIST_PARAM_3;
push ITEM_EXEMPLAR_GID_MISC_CATALOG;
lea ecx, [esp + 0x1c];
push ebp;
push ecx;
Expand Down Expand Up @@ -593,7 +592,7 @@ namespace
push ITEM_BUTTON_CLASS_SUBMENU;
push FLORA_BUTTON_ID; // virtual button id, matches against ITEM_SUBMENU_PARENT_ID_PROP
push SUBMENU_ITEM_TYPE;
push CREATE_CATALOG_ITEM_LIST_PARAM_3;
push ITEM_EXEMPLAR_GID_MISC_CATALOG;
lea edx, [esp + 0x20];
push ebp;
push edx;
Expand Down

0 comments on commit 43996ba

Please sign in to comment.