Skip to content

Commit

Permalink
decompile DisplayPlayerTextMessages__5GGameFv
Browse files Browse the repository at this point in the history
  • Loading branch information
bwrsandman committed Jan 18, 2025
1 parent 880b0ba commit 53d9b6a
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 16 deletions.
2 changes: 2 additions & 0 deletions black/Game.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ void __fastcall Loop__5GGameFv(struct GGame* this);
void __fastcall ProcessOneGameTurn__5GGameFv(struct GGame* this);
// win1.41 0054d820 mac 10083dd0 GGame::ProcessGameCode(void)
void __fastcall ProcessGameCode__5GGameFv(struct GGame* this);
// win1.41 0054d840 mac inline GGame::DisplayPlayerTextMessages(void)
void __fastcall DisplayPlayerTextMessages__5GGameFv(struct GGame* this);
// win1.41 0054d850 mac 10079980 GGame::ProcessGraphicsEngine(unsigned long, unsigned long)
void __fastcall ProcessGraphicsEngine__5GGameFUlUl(struct GGame* this, const void* edx, uint32_t param_1, uint32_t param_2);
// win1.41 0054da80 mac 10033dd0 GGame::ProcessGraphicsEngine(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
.extern _jmp_addr_0x00579440
.extern _jmp_addr_0x00590f00
.extern _jmp_addr_0x00590fb0
.extern _jmp_addr_0x005910f0
.extern _jmp_addr_0x00591330
.extern _jmp_addr_0x00591370
.extern _jmp_addr_0x005c4410
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
.extern _jmp_addr_0x00579440
.extern _jmp_addr_0x00590f00
.extern _jmp_addr_0x00590fb0
.extern _jmp_addr_0x005910f0
.extern _jmp_addr_0x00591330
.extern _jmp_addr_0x00591370
.extern _jmp_addr_0x005c4410
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@
.extern _jmp_addr_0x00579440
.extern _jmp_addr_0x00590f00
.extern _jmp_addr_0x00590fb0
.extern _jmp_addr_0x005910f0
.extern _jmp_addr_0x00591330
.extern _jmp_addr_0x00591370
.extern _jmp_addr_0x005c4410
Expand Down Expand Up @@ -633,14 +632,6 @@
.globl _jmp_addr_0x0054ff09
.globl _jmp_addr_0x0054ff40

mov ecx, 0x00cd3b20 // 0x0054d840 b9203bcd00
{disp32} jmp _jmp_addr_0x005910f0 // 0x0054d845 e9a6380400
nop // 0x0054d84a 90
nop // 0x0054d84b 90
nop // 0x0054d84c 90
nop // 0x0054d84d 90
nop // 0x0054d84e 90
nop // 0x0054d84f 90
_jmp_addr_0x0054d850: push esi // 0x0054d850 56
mov.s esi, ecx // 0x0054d851 8bf1
mov ecx, 0x00e85204 // 0x0054d853 b90452e800
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3956,7 +3956,7 @@
.globl _jmp_addr_0x005910a0
.globl _jmp_addr_0x005910ad
.globl _jmp_addr_0x005910ce
.globl _jmp_addr_0x005910f0
.globl @DisplayPlayerTextMessages__7GGlobalFv@4
.globl _jmp_addr_0x0059111f
.globl _jmp_addr_0x00591149
.globl _jmp_addr_0x0059114d
Expand Down Expand Up @@ -49862,7 +49862,7 @@ _jmp_addr_0x005910ce: mov.s eax, edx
nop // 0x005910ed 90
nop // 0x005910ee 90
nop // 0x005910ef 90
_jmp_addr_0x005910f0: sub esp, 0x0000020c // 0x005910f0 81ec0c020000
@DisplayPlayerTextMessages__7GGlobalFv@4: sub esp, 0x0000020c // 0x005910f0 81ec0c020000
{disp32} mov eax, dword ptr [data_bytes + 0x53076c] // 0x005910f6 a16c67ef00
push ebx // 0x005910fb 53
push edi // 0x005910fc 57
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
.extern _jmp_addr_0x0056fe00
.extern _jmp_addr_0x005739f0
.extern _jmp_addr_0x00591010
.extern _jmp_addr_0x005910f0
.extern @DisplayPlayerTextMessages__7GGlobalFv@4
.extern _jmp_addr_0x005e1860
.extern _jmp_addr_0x005e1950
.extern _jmp_addr_0x005ea980
Expand Down Expand Up @@ -583,7 +583,7 @@ _jmp_addr_0x0064202f: {disp32} mov eax, dword ptr [data_bytes + 0x23899
{disp32} mov byte ptr [esp + 0x00000197], 0x00 // 0x0064208b c684249701000000
call _jmp_addr_0x00591010 // 0x00642093 e878eff4ff
mov ecx, 0x00cd3b20 // 0x00642098 b9203bcd00
call _jmp_addr_0x005910f0 // 0x0064209d e84ef0f4ff
call @DisplayPlayerTextMessages__7GGlobalFv@4 // 0x0064209d e84ef0f4ff
{disp32} mov esi, dword ptr [data_bytes + 0x530bec] // 0x006420a2 8b35ec6bef00
push 0x0 // 0x006420a8 6a00
call _jmp_addr_0x00641fe0 // 0x006420aa e831ffffff
Expand Down Expand Up @@ -861,7 +861,7 @@ _jmp_addr_0x006423d0: {disp32} mov ecx, dword ptr [esp + 0x00000494]
{disp32} mov byte ptr [esp + 0x00000397], 0x00 // 0x00642412 c684249703000000
call _jmp_addr_0x00591010 // 0x0064241a e8f1ebf4ff
mov ecx, 0x00cd3b20 // 0x0064241f b9203bcd00
call _jmp_addr_0x005910f0 // 0x00642424 e8c7ecf4ff
call @DisplayPlayerTextMessages__7GGlobalFv@4 // 0x00642424 e8c7ecf4ff
push 0x0 // 0x00642429 6a00
mov ecx, 0x00e85050 // 0x0064242b b95050e800
call _jmp_addr_0x007de090 // 0x00642430 e85bbc1900
Expand Down
7 changes: 7 additions & 0 deletions src/c/Game.0481.0054d820-0054d83e.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include "Game.h"
#include "Global.h"
#include "../../globals.h"

__attribute__((MOV32rr_REV, disable_tail_calls))
void __fastcall ProcessGameCode__5GGameFv(struct GGame* this) {
Expand All @@ -9,3 +11,8 @@ void __fastcall ProcessGameCode__5GGameFv(struct GGame* this) {
}
EndTurn__5GGameFv(this);
}

void DisplayPlayerTextMessages__5GGameFv(void)
{
DisplayPlayerTextMessages__7GGlobalFv(globals.global);
}

0 comments on commit 53d9b6a

Please sign in to comment.