Skip to content

Commit b595551

Browse files
author
sourcehold
committed
upstream ghidra changes
1 parent 62aacef commit b595551

6 files changed

Lines changed: 21 additions & 19 deletions

File tree

‎src/OpenSHC/AI/AICState.func.hpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ namespace AI {
140140
aiShouldBuildQuarry;
141141

142142
MACRO_FUNCTION_RESOLVER(
143-
undefined4 (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004CB3A0, &AICState::aiRequiresExtraOxtethers)
143+
BOOLEnum (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004CB3A0, &AICState::aiRequiresExtraOxtethers)
144144
aiRequiresExtraOxtethers;
145145

146146
MACRO_FUNCTION_RESOLVER(
@@ -171,8 +171,8 @@ namespace AI {
171171
BOOLEnum (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004CB890, &AICState::shouldDestroyWoodCutterUnk)
172172
shouldDestroyWoodCutterUnk;
173173

174-
MACRO_FUNCTION_RESOLVER(undefined4 (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004CB940,
175-
&AICState::destroyBuildingIfNoWorker)
174+
MACRO_FUNCTION_RESOLVER(
175+
BOOLEnum (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004CB940, &AICState::destroyBuildingIfNoWorker)
176176
destroyBuildingIfNoWorker;
177177

178178
MACRO_FUNCTION_RESOLVER(BOOLEnum (AICState::*)(int, MappersEnum), false, Address::SHC_3BB0A8C1_0x004CB9F0,
@@ -690,7 +690,7 @@ namespace AI {
690690
&AICState::moveAttackingUnitsToNextRallyPoint)
691691
moveAttackingUnitsToNextRallyPoint;
692692

693-
MACRO_FUNCTION_RESOLVER(undefined4 (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004D30E0,
693+
MACRO_FUNCTION_RESOLVER(BOOLEnum (AICState::*)(int), false, Address::SHC_3BB0A8C1_0x004D30E0,
694694
&AICState::sendUnitsToAttackBreachedCastle)
695695
sendUnitsToAttackBreachedCastle;
696696

‎src/OpenSHC/AI/AICState.hpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ namespace AI {
112112

113113
uint aiShouldBuildQuarry(int playerID);
114114

115-
undefined4 aiRequiresExtraOxtethers(int playerID);
115+
BOOLEnum aiRequiresExtraOxtethers(int playerID);
116116

117117
uint aiShouldBuildIronMine(int playerID);
118118

@@ -128,7 +128,7 @@ namespace AI {
128128

129129
BOOLEnum shouldDestroyWoodCutterUnk(int playerID);
130130

131-
undefined4 destroyBuildingIfNoWorker(int buildingID);
131+
BOOLEnum destroyBuildingIfNoWorker(int buildingID);
132132

133133
BOOLEnum shouldNotBuildMarketArmoryGranaryBarracksMercenarypost(int playerID, MappersEnum param_2);
134134

@@ -390,7 +390,7 @@ namespace AI {
390390

391391
void moveAttackingUnitsToNextRallyPoint(int playerID);
392392

393-
undefined4 sendUnitsToAttackBreachedCastle(int attackingPlayerIndex);
393+
BOOLEnum sendUnitsToAttackBreachedCastle(int attackingPlayerIndex);
394394

395395
void updateAIStrengthState(int playerID, int aiRecruitUnitChoicePreference);
396396

src/OpenSHC/Globals/DWORD_00eb0b18.hpp renamed to src/OpenSHC/Globals/TIME_LastThanksBikPlaybackTime.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Communicate changes to the dev team (e.g. via a Pull Request).
44
Changes get lost otherwise.
55
6-
path: 'OpenSHC/Globals/DWORD_00eb0b18.hpp'
6+
path: 'OpenSHC/Globals/TIME_LastThanksBikPlaybackTime.hpp'
77
*/
88

99
#pragma once
@@ -15,7 +15,7 @@
1515

1616
namespace OpenSHC {
1717

18-
MACRO_STRUCT_RESOLVER(DWORD, false, Address::SHC_3BB0A8C1_0x00EB0B18) DWORD_00eb0b18;
18+
MACRO_STRUCT_RESOLVER(DWORD, false, Address::SHC_3BB0A8C1_0x00EB0B18) TIME_LastThanksBikPlaybackTime;
1919
} // namespace OpenSHC
2020

2121
MACRO_STRUCT_INSTANCE(Address::SHC_3BB0A8C1_0x00EB0B18);

‎src/OpenSHC/Map/Navigation/PathFindingStatePartB.hpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ namespace Map {
2323
typedef struct PathFindingStatePartB {
2424

2525
PathHelper12 destinationsArray[500]; // 0x00000000 length: 6000
26-
undefined4 currentDistance; // 0x00001770 length: 4
27-
undefined4 readIndex; // 0x00001774 length: 4
28-
undefined4 previousReadIndex; // 0x00001778 length: 4
29-
undefined4 writeIndex; // 0x0000177C length: 4
30-
undefined4 nextWriteIndex; // 0x00001780 length: 4
26+
int currentDistance; // 0x00001770 length: 4
27+
int readIndex; // 0x00001774 length: 4
28+
int previousReadIndex; // 0x00001778 length: 4
29+
int writeIndex; // 0x0000177C length: 4
30+
int nextWriteIndex; // 0x00001780 length: 4
3131
undefined1 padding_0x1784[12]; // 0x00001784 length: 12
3232
int depth; // 0x00001790 length: 4
3333
byte* ptrPathPlan; // 0x00001794 length: 4
34-
undefined4 pathPlanIndex; // 0x00001798 length: 4
34+
int pathPlanIndex; // 0x00001798 length: 4
3535
int tilesQueue[80400]; // 0x0000179C length: 321600
3636
short yQueue[80400]; // 0x0004FFDC length: 160800
3737
short xQueue[80400]; // 0x000773FC length: 160800

‎src/precomp/addresses-SHC-3BB0A8C1.hpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97254,6 +97254,8 @@ enum {
9725497254
SHC_3BB0A8C1_0x00EB0AB0 = 0x00EB0AB0,
9725597255
// type: /int[9]
9725697256
SHC_3BB0A8C1_0x00EB0AF0 = 0x00EB0AF0,
97257+
// label: TIME_LastThanksBikPlaybackTime
97258+
// location:
9725797259
// type: WinDef/DWORD
9725897260
SHC_3BB0A8C1_0x00EB0B18 = 0x00EB0B18,
9725997261
// type: /undefined4

‎src/symbols/data.asm‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,8 @@ PUBLIC ?instance@?$Extern@$$BY0PK@USkMasterDataEntry@IO@OpenSHC@@$0NPGCFA@@Struc
863863

864864
PUBLIC ?instance@?$Extern@$$BY0EA@D$0OLAKLA@@StructResolver@@2PADA
865865

866+
PUBLIC ?instance@?$Extern@K$0OLALBI@@StructResolver@@2KA
867+
866868
PUBLIC ?instance@?$Extern@I$0OLAODM@@StructResolver@@2IA
867869

868870
PUBLIC ?instance@?$Extern@$$BY1CB@EAA@D$0OLBCNI@@StructResolver@@2PAY0EAA@DA
@@ -1393,8 +1395,6 @@ PUBLIC ?instance@?$Extern@H$0NPFGFE@@StructResolver@@2HA
13931395

13941396
PUBLIC ?instance@?$Extern@$$BY08H$0OLAKPA@@StructResolver@@2PAHA
13951397

1396-
PUBLIC ?instance@?$Extern@K$0OLALBI@@StructResolver@@2KA
1397-
13981398
PUBLIC ?instance@?$Extern@I$0OLALCA@@StructResolver@@2IA
13991399

14001400
PUBLIC ?instance@?$Extern@I$0OLALCE@@StructResolver@@2IA
@@ -2524,6 +2524,8 @@ _TEXT SEGMENT
25242524

25252525
?instance@?$Extern@$$BY0EA@D$0OLAKLA@@StructResolver@@2PADA EQU 00EB0AB0h
25262526

2527+
?instance@?$Extern@K$0OLALBI@@StructResolver@@2KA EQU 00EB0B18h
2528+
25272529
?instance@?$Extern@I$0OLAODM@@StructResolver@@2IA EQU 00EB0E3Ch
25282530

25292531
?instance@?$Extern@$$BY1CB@EAA@D$0OLBCNI@@StructResolver@@2PAY0EAA@DA EQU 00EB12D8h
@@ -3054,8 +3056,6 @@ _TEXT SEGMENT
30543056

30553057
?instance@?$Extern@$$BY08H$0OLAKPA@@StructResolver@@2PAHA EQU 00EB0AF0h
30563058

3057-
?instance@?$Extern@K$0OLALBI@@StructResolver@@2KA EQU 00EB0B18h
3058-
30593059
?instance@?$Extern@I$0OLALCA@@StructResolver@@2IA EQU 00EB0B20h
30603060

30613061
?instance@?$Extern@I$0OLALCE@@StructResolver@@2IA EQU 00EB0B24h

0 commit comments

Comments
 (0)