From 66565671b5c2ef025a0cffa0a126d182e0148f4c Mon Sep 17 00:00:00 2001 From: Guus Waals <_@guusw.nl> Date: Sun, 1 Jun 2025 23:30:10 +0800 Subject: [PATCH] Dump --- game_re/gh_global.cxx | 4 ++++ game_re/gh_global.h | 4 ++++ game_re/gh_stub/FUN_00402470.cxx | 13 +++++++++++++ .../gh_stub/{FUN_00401320.cxx => FUN_00442c50.cxx} | 8 ++++---- game_re/gh_stub/FUN_00442f70.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_00443120.cxx | 13 +++++++++++++ .../{r3_windowUnlockCursor.cxx => FUN_00445440.cxx} | 8 ++++---- game_re/gh_stub/FUN_00445460.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_00470350.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_00470410.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_0047bae0.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_004fa650.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_0051a7a0.cxx | 13 +++++++++++++ game_re/gh_stub/FUN_0051a900.cxx | 13 +++++++++++++ .../gh_stub/IPT_fn_vActivateAllEntryElements.cxx | 13 +++++++++++++ game_re/gh_stub/SND_fn_vResumeSound.cxx | 13 +++++++++++++ game_re/gh_stub/getHWND.cxx | 13 +++++++++++++ game_re/gh_stub/level_displayFn.cxx | 13 +++++++++++++ game_re/gh_stub/r3_closeConcatTextureFile.cxx | 13 +++++++++++++ game_re/gh_stub/r3_load_textures_2.cxx | 13 +++++++++++++ game_re/gh_stub/r3_processInput1.cxx | 13 +++++++++++++ 21 files changed, 237 insertions(+), 8 deletions(-) create mode 100644 game_re/gh_stub/FUN_00402470.cxx rename game_re/gh_stub/{FUN_00401320.cxx => FUN_00442c50.cxx} (64%) create mode 100644 game_re/gh_stub/FUN_00442f70.cxx create mode 100644 game_re/gh_stub/FUN_00443120.cxx rename game_re/gh_stub/{r3_windowUnlockCursor.cxx => FUN_00445440.cxx} (61%) create mode 100644 game_re/gh_stub/FUN_00445460.cxx create mode 100644 game_re/gh_stub/FUN_00470350.cxx create mode 100644 game_re/gh_stub/FUN_00470410.cxx create mode 100644 game_re/gh_stub/FUN_0047bae0.cxx create mode 100644 game_re/gh_stub/FUN_004fa650.cxx create mode 100644 game_re/gh_stub/FUN_0051a7a0.cxx create mode 100644 game_re/gh_stub/FUN_0051a900.cxx create mode 100644 game_re/gh_stub/IPT_fn_vActivateAllEntryElements.cxx create mode 100644 game_re/gh_stub/SND_fn_vResumeSound.cxx create mode 100644 game_re/gh_stub/getHWND.cxx create mode 100644 game_re/gh_stub/level_displayFn.cxx create mode 100644 game_re/gh_stub/r3_closeConcatTextureFile.cxx create mode 100644 game_re/gh_stub/r3_load_textures_2.cxx create mode 100644 game_re/gh_stub/r3_processInput1.cxx diff --git a/game_re/gh_global.cxx b/game_re/gh_global.cxx index 59787acb..60dfbe77 100644 --- a/game_re/gh_global.cxx +++ b/game_re/gh_global.cxx @@ -64,6 +64,8 @@ undefined1& g_errModDInput= (undefined1&) GH_MEM(0x005bd29c); undefined4& DAT_005bd454= (undefined4&) GH_MEM(0x005bd454); const char* s__jc_z_d__s_005bd460 = "\\jc\\z%d:%s"; // 005bd460 undefined1& g_errModMmg= (undefined1&) GH_MEM(0x005bd58c); +undefined* PTR_r3_processInput1_005bdb1c = (undefined*)&GH_MEM(0x005bdb1c); // 005bdb1c +pointer& p_fn_vDisplayAll= (pointer&) GH_MEM(0x005bdb24); const char* s_R3_DVD_005bdfd8 = "R3_DVD"; // 005bdfd8 const char* s_R3_DVD_005be0ec = "R3_DVD"; // 005be0ec const char* s__s_DVD_missing_005be0f4 = "%s DVD missing "; // 005be0f4 @@ -102,6 +104,7 @@ const char* s_r3_program_files = "\\program files\\Ubi Soft\\Rayman3"; // 005be5 const char* s_driveLetterTemplate = "A:\\"; // 005be568 undefined4& g_config_camera_hor_axis= (undefined4&) GH_MEM(0x005c67c8); undefined4& g_config_camera_ver_axis= (undefined4&) GH_MEM(0x005c67cc); +undefined1& g_initVar0= (undefined1&) GH_MEM(0x005cf960); HWND& g_gameHWND1= (HWND&) GH_MEM(0x005cf964); long& lpDefault_005cf96c= (long&) GH_MEM(0x005cf96c); dword& DWORD_005cf974= (dword&) GH_MEM(0x005cf974); @@ -132,6 +135,7 @@ char(&s_wndStrRestoring)[256] = reinterpret_cast(GH_MEM(0x0077d5e0 char *& g_crt_cmdLine= (char *&) GH_MEM(0x0077ea84); char(&s_quitting1)[64] = reinterpret_cast(GH_MEM(0x007825c0)); char(&s_wndStrQuiting)[56] = reinterpret_cast(GH_MEM(0x00782600)); +GAM_EngineStructure& g_stEngineStructure= (GAM_EngineStructure&) GH_MEM(0x007d7dc0); undefined4& DAT_007d9cc4= (undefined4&) GH_MEM(0x007d9cc4); undefined4& g_config_unused0= (undefined4&) GH_MEM(0x007d9df0); char(&g_driveLetter)[4] = reinterpret_cast(GH_MEM(0x007d9e70)); diff --git a/game_re/gh_global.h b/game_re/gh_global.h index 740e1031..e3d9a0a2 100644 --- a/game_re/gh_global.h +++ b/game_re/gh_global.h @@ -69,6 +69,8 @@ extern undefined1& g_errModDInput; // 005bd29c extern undefined4& DAT_005bd454; // 005bd454 extern const char* s__jc_z_d__s_005bd460; // 005bd460 extern undefined1& g_errModMmg; // 005bd58c +extern undefined* PTR_r3_processInput1_005bdb1c; // 005bdb1c +extern pointer& p_fn_vDisplayAll; // 005bdb24 extern const char* s_R3_DVD_005bdfd8; // 005bdfd8 extern const char* s_R3_DVD_005be0ec; // 005be0ec extern const char* s__s_DVD_missing_005be0f4; // 005be0f4 @@ -107,6 +109,7 @@ extern const char* s_r3_program_files; // 005be548 extern const char* s_driveLetterTemplate; // 005be568 extern undefined4& g_config_camera_hor_axis; // 005c67c8 extern undefined4& g_config_camera_ver_axis; // 005c67cc +extern undefined1& g_initVar0; // 005cf960 extern HWND& g_gameHWND1; // 005cf964 extern long& lpDefault_005cf96c; // 005cf96c extern dword& DWORD_005cf974; // 005cf974 @@ -137,6 +140,7 @@ extern char(&s_wndStrRestoring)[256]; // 0077d5e0 extern char *& g_crt_cmdLine; // 0077ea84 extern char(&s_quitting1)[64]; // 007825c0 extern char(&s_wndStrQuiting)[56]; // 00782600 +extern GAM_EngineStructure& g_stEngineStructure; // 007d7dc0 extern undefined4& DAT_007d9cc4; // 007d9cc4 extern undefined4& g_config_unused0; // 007d9df0 extern char(&g_driveLetter)[4]; // 007d9e70 diff --git a/game_re/gh_stub/FUN_00402470.cxx b/game_re/gh_stub/FUN_00402470.cxx new file mode 100644 index 00000000..08c3f52f --- /dev/null +++ b/game_re/gh_stub/FUN_00402470.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00402470 +// FUN_00402470 +extern "C" undefined FUN_00402470(undefined4 param_1) { + return gh_stub_impl_cdecl<0x00402470, undefined>(param_1); +} diff --git a/game_re/gh_stub/FUN_00401320.cxx b/game_re/gh_stub/FUN_00442c50.cxx similarity index 64% rename from game_re/gh_stub/FUN_00401320.cxx rename to game_re/gh_stub/FUN_00442c50.cxx index c7ac8fae..4f15ea72 100644 --- a/game_re/gh_stub/FUN_00401320.cxx +++ b/game_re/gh_stub/FUN_00442c50.cxx @@ -6,8 +6,8 @@ #include #include -// 00401320 -// FUN_00401320 -extern "C" undefined FUN_00401320(void) { - return gh_stub_impl_cdecl<0x00401320, undefined>(); +// 00442c50 +// FUN_00442c50 +extern "C" undefined FUN_00442c50(void) { + return gh_stub_impl_cdecl<0x00442c50, undefined>(); } diff --git a/game_re/gh_stub/FUN_00442f70.cxx b/game_re/gh_stub/FUN_00442f70.cxx new file mode 100644 index 00000000..da149055 --- /dev/null +++ b/game_re/gh_stub/FUN_00442f70.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00442f70 +// FUN_00442f70 +extern "C" undefined FUN_00442f70(undefined4 param_1) { + return gh_stub_impl_cdecl<0x00442f70, undefined>(param_1); +} diff --git a/game_re/gh_stub/FUN_00443120.cxx b/game_re/gh_stub/FUN_00443120.cxx new file mode 100644 index 00000000..856bbfbc --- /dev/null +++ b/game_re/gh_stub/FUN_00443120.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00443120 +// FUN_00443120 +extern "C" undefined FUN_00443120(undefined4 param_1) { + return gh_stub_impl_cdecl<0x00443120, undefined>(param_1); +} diff --git a/game_re/gh_stub/r3_windowUnlockCursor.cxx b/game_re/gh_stub/FUN_00445440.cxx similarity index 61% rename from game_re/gh_stub/r3_windowUnlockCursor.cxx rename to game_re/gh_stub/FUN_00445440.cxx index ed17e2c2..1129e9ec 100644 --- a/game_re/gh_stub/r3_windowUnlockCursor.cxx +++ b/game_re/gh_stub/FUN_00445440.cxx @@ -6,8 +6,8 @@ #include #include -// 004013a0 -// r3_windowUnlockCursor -extern "C" undefined r3_windowUnlockCursor(void) { - return gh_stub_impl_cdecl<0x004013a0, undefined>(); +// 00445440 +// FUN_00445440 +extern "C" undefined FUN_00445440(void) { + return gh_stub_impl_cdecl<0x00445440, undefined>(); } diff --git a/game_re/gh_stub/FUN_00445460.cxx b/game_re/gh_stub/FUN_00445460.cxx new file mode 100644 index 00000000..d2b04d5c --- /dev/null +++ b/game_re/gh_stub/FUN_00445460.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00445460 +// FUN_00445460 +extern "C" undefined FUN_00445460(void) { + return gh_stub_impl_cdecl<0x00445460, undefined>(); +} diff --git a/game_re/gh_stub/FUN_00470350.cxx b/game_re/gh_stub/FUN_00470350.cxx new file mode 100644 index 00000000..2ee4b8b2 --- /dev/null +++ b/game_re/gh_stub/FUN_00470350.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00470350 +// FUN_00470350 +extern "C" undefined FUN_00470350(void) { + return gh_stub_impl_cdecl<0x00470350, undefined>(); +} diff --git a/game_re/gh_stub/FUN_00470410.cxx b/game_re/gh_stub/FUN_00470410.cxx new file mode 100644 index 00000000..0e1b49b0 --- /dev/null +++ b/game_re/gh_stub/FUN_00470410.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00470410 +// FUN_00470410 +extern "C" undefined FUN_00470410(void) { + return gh_stub_impl_cdecl<0x00470410, undefined>(); +} diff --git a/game_re/gh_stub/FUN_0047bae0.cxx b/game_re/gh_stub/FUN_0047bae0.cxx new file mode 100644 index 00000000..809607bd --- /dev/null +++ b/game_re/gh_stub/FUN_0047bae0.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 0047bae0 +// FUN_0047bae0 +extern "C" undefined FUN_0047bae0(void) { + return gh_stub_impl_cdecl<0x0047bae0, undefined>(); +} diff --git a/game_re/gh_stub/FUN_004fa650.cxx b/game_re/gh_stub/FUN_004fa650.cxx new file mode 100644 index 00000000..7b8c8667 --- /dev/null +++ b/game_re/gh_stub/FUN_004fa650.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 004fa650 +// FUN_004fa650 +extern "C" undefined FUN_004fa650(void) { + return gh_stub_impl_cdecl<0x004fa650, undefined>(); +} diff --git a/game_re/gh_stub/FUN_0051a7a0.cxx b/game_re/gh_stub/FUN_0051a7a0.cxx new file mode 100644 index 00000000..386fd336 --- /dev/null +++ b/game_re/gh_stub/FUN_0051a7a0.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 0051a7a0 +// FUN_0051a7a0 +extern "C" undefined FUN_0051a7a0(short hGLDDevice, undefined4 param_2) { + return gh_stub_impl_cdecl<0x0051a7a0, undefined>(hGLDDevice, param_2); +} diff --git a/game_re/gh_stub/FUN_0051a900.cxx b/game_re/gh_stub/FUN_0051a900.cxx new file mode 100644 index 00000000..a09780b0 --- /dev/null +++ b/game_re/gh_stub/FUN_0051a900.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 0051a900 +// FUN_0051a900 +extern "C" undefined FUN_0051a900(short hGLDDevice) { + return gh_stub_impl_cdecl<0x0051a900, undefined>(hGLDDevice); +} diff --git a/game_re/gh_stub/IPT_fn_vActivateAllEntryElements.cxx b/game_re/gh_stub/IPT_fn_vActivateAllEntryElements.cxx new file mode 100644 index 00000000..39a6e372 --- /dev/null +++ b/game_re/gh_stub/IPT_fn_vActivateAllEntryElements.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00505490 +// IPT_fn_vActivateAllEntryElements +extern "C" undefined IPT_fn_vActivateAllEntryElements(void) { + return gh_stub_impl_cdecl<0x00505490, undefined>(); +} diff --git a/game_re/gh_stub/SND_fn_vResumeSound.cxx b/game_re/gh_stub/SND_fn_vResumeSound.cxx new file mode 100644 index 00000000..443054a5 --- /dev/null +++ b/game_re/gh_stub/SND_fn_vResumeSound.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 0040a1e0 +// SND_fn_vResumeSound +extern "C" undefined SND_fn_vResumeSound(void) { + return gh_stub_impl_cdecl<0x0040a1e0, undefined>(); +} diff --git a/game_re/gh_stub/getHWND.cxx b/game_re/gh_stub/getHWND.cxx new file mode 100644 index 00000000..a8ddb3f7 --- /dev/null +++ b/game_re/gh_stub/getHWND.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00401300 +// getHWND +extern "C" HWND getHWND(void) { + return gh_stub_impl_stdcall<0x00401300, typedef HWND HWND__ *>(); +} diff --git a/game_re/gh_stub/level_displayFn.cxx b/game_re/gh_stub/level_displayFn.cxx new file mode 100644 index 00000000..088e258e --- /dev/null +++ b/game_re/gh_stub/level_displayFn.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00446fc0 +// level_displayFn +extern "C" undefined level_displayFn(void) { + return gh_stub_impl_cdecl<0x00446fc0, undefined>(); +} diff --git a/game_re/gh_stub/r3_closeConcatTextureFile.cxx b/game_re/gh_stub/r3_closeConcatTextureFile.cxx new file mode 100644 index 00000000..49011b6a --- /dev/null +++ b/game_re/gh_stub/r3_closeConcatTextureFile.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 004711d0 +// r3_closeConcatTextureFile +extern "C" undefined r3_closeConcatTextureFile(void) { + return gh_stub_impl_cdecl<0x004711d0, undefined>(); +} diff --git a/game_re/gh_stub/r3_load_textures_2.cxx b/game_re/gh_stub/r3_load_textures_2.cxx new file mode 100644 index 00000000..97a1b60e --- /dev/null +++ b/game_re/gh_stub/r3_load_textures_2.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00471760 +// r3_load_textures_2 +extern "C" undefined r3_load_textures_2(void) { + return gh_stub_impl_cdecl<0x00471760, undefined>(); +} diff --git a/game_re/gh_stub/r3_processInput1.cxx b/game_re/gh_stub/r3_processInput1.cxx new file mode 100644 index 00000000..ba47782d --- /dev/null +++ b/game_re/gh_stub/r3_processInput1.cxx @@ -0,0 +1,13 @@ +// AUTO-GENERATED FILE!!!! +// This function has yet to be decompiled using 'Dump Current Function' in ghidra +// with possible manualy fixes + +#include +#include +#include + +// 00446f10 +// r3_processInput1 +extern "C" undefined r3_processInput1(void) { + return gh_stub_impl_cdecl<0x00446f10, undefined>(); +}