GoldHEN / GoldHEN_Plugins_Repository

Custom Plugins for PS4
GNU General Public License v3.0
134 stars 13 forks source link

Rename `module_start` to `plugin_load` #56

Closed illusion0001 closed 1 year ago

illusion0001 commented 1 year ago

This might be controversial but to parse module info for UI, we'd need to use sceKernelLoadStartModule to retrieve exported symbol information but it would also run module_start due to how we defined it in the crtprx in the SDK.

With the exception of the loader. We don't ship these in release builds and to run the loader module_start is required at least without changes from GoldHEN internal loader.

This will break compatibility with built in loader in GoldHEN 2.3.

illusion0001 commented 1 year ago

Seems good

Output (Click to Expand) ``` <118>(../plugin_loader/source/main.c:231) [GoldHEN] module_start <118>(../plugin_loader/source/main.c:232) [GoldHEN] Plugin Author(s): Ctn123, illusion <118>(../plugin_loader/source/main.c:233) Commit: 3c94f1ef94bfb7dc146c75560071438df162893a Branch: start-rename Build: 200 (Release) <118>(../plugin_loader/source/main.c:233) Built: Jun 24 2023 @ 04:38:43 <118>(../plugin_loader/source/main.c:233) GoldHEN SDK Ver: 0x00000100 <118>(../plugin_loader/source/main.c:233) GoldHEN System SDK Ver: 0xffffffff <118>(../plugin_loader/source/main.c:242) process info <118>(../plugin_loader/source/main.c:242) pid: 179 <118>(../plugin_loader/source/main.c:242) name: eboot.bin <118>(../plugin_loader/source/main.c:242) path: /app0/eboot.bin <118>(../plugin_loader/source/main.c:242) titleid: CUSA03694 <118>(../plugin_loader/source/main.c:242) contentid: UP9000-CUSA03694_00-GRAVITYRUSH20000 <118>(../plugin_loader/source/main.c:242) version: 01.11 <118>(../plugin_loader/source/main.c:242) base_address: 0x400000 <118>(../plugin_loader/source/main.c:249) Plugin Manager started successfully <118>(../plugin_loader/source/main.c:296) Section [settings] is settings <118>(../plugin_loader/source/main.c:300) show_load_notification=true <118>(../plugin_loader/source/main.c:304) show_load_notification=1 <118>(../plugin_loader/source/main.c:311) Section [default] is default <118>(../plugin_loader/source/main.c:130) /data/GoldHEN/plugins/afr.prx=true <118>(../plugin_loader/source/main.c:153) Starting /data/GoldHEN/plugins/afr.prx <118>(../plugin_loader/source/main.c:170) Loaded Plugin /data/GoldHEN/plugins/afr.prx <118>(../plugin_loader/source/main.c:171) Plugin Handle 0x0000208a Dlsym 0x00000000 <118>(../plugin_loader/source/main.c:173) plugin_load Dlsym 0x00000000 @ 0x80079c4a0 <118>(../plugin_loader/source/main.c:175) plugin_unload Dlsym 0x00000000 @ 0x80079c7d0 <118>(../plugin_loader/source/main.c:178) Starting plugin... <118>(../afr/source/main.c:107) [GoldHEN] plugin_load <118>(../afr/source/main.c:108) [GoldHEN] Plugin Author(s): jocover, SiSTR0 <118>(../afr/source/main.c:109) Commit: 3c94f1ef94bfb7dc146c75560071438df162893a Branch: start-rename Build: 200 (Release) <118>(../afr/source/main.c:109) Built: Jun 24 2023 @ 04:38:34 <118>(../afr/source/main.c:109) GoldHEN SDK Ver: 0x00000100 <118>(../afr/source/main.c:109) GoldHEN System SDK Ver: 0xffffffff <118>(../afr/source/main.c:113) process info <118>(../afr/source/main.c:113) pid: 179 <118>(../afr/source/main.c:113) name: eboot.bin <118>(../afr/source/main.c:113) path: /app0/eboot.bin <118>(../afr/source/main.c:113) titleid: CUSA03694 <118>(../afr/source/main.c:113) contentid: UP9000-CUSA03694_00-GRAVITYRUSH20000 <118>(../afr/source/main.c:113) version: 01.11 <118>(../afr/source/main.c:113) base_address: 0x400000 <118>plugin_load:115 HOOK32() Create sceKernelOpen <118>[Detour] Detour_DetourFunction32: - InstructionSize: 6 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 800015b50 - HookPtr: 80079c330 - HookPtrTrampoline: 8800028e0 - StubPtr: 26f214000 - StubSize: 20) <118>plugin_load:116 HOOK32() Create sceKernelStat <118>[Detour] Detour_DetourFunction32: - InstructionSize: 9 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 800016590 - HookPtr: 80079c1d0 - HookPtrTrampoline: 880002900 - StubPtr: 26f218000 - StubSize: 23) <118>plugin_load:117 HOOK32() Create fopen <118>[Detour] Detour_DetourFunction32: - InstructionSize: 6 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 8000c2f00 - HookPtr: 80079c080 - HookPtrTrampoline: 880002920 - StubPtr: 26f21c000 - StubSize: 20) <118>(../plugin_loader/source/main.c:180) plugin_load returned with 0x00000000 <118>(../plugin_loader/source/main.c:189) plugin_load exit successful 0x00000000 <118>(../plugin_loader/source/main.c:130) /data/GoldHEN/plugins/game_patch.prx=true <118>(../plugin_loader/source/main.c:153) Starting /data/GoldHEN/plugins/game_patch.prx <118>(../plugin_loader/source/main.c:170) Loaded Plugin /data/GoldHEN/plugins/game_patch.prx <118>(../plugin_loader/source/main.c:171) Plugin Handle 0x0000008b Dlsym 0x00000000 <118>(../plugin_loader/source/main.c:173) plugin_load Dlsym 0x00000000 @ 0x8007b0ab0 <118>(../plugin_loader/source/main.c:175) plugin_unload Dlsym 0x00000000 @ 0x8007b0e70 <118>(../plugin_loader/source/main.c:178) Starting plugin... <118>(../game_patch/source/main.cpp:244) [GoldHEN] plugin_load <118>(../game_patch/source/main.cpp:245) [GoldHEN] Plugin Author(s): illusion <118>(../game_patch/source/main.cpp:246) Commit: 3c94f1ef94bfb7dc146c75560071438df162893a Branch: start-rename Build: 200 (Release) <118>(../game_patch/source/main.cpp:246) Built: Jun 24 2023 @ 04:43:11 <118>(../game_patch/source/main.cpp:246) GoldHEN SDK Ver: 0x00000100 <118>(../game_patch/source/main.cpp:246) GoldHEN System SDK Ver: 0xffffffff <118>(../game_patch/source/utils.cpp:89) numModules: 33 <118>(../game_patch/source/utils.cpp:93) ret 0x0 <118>(../game_patch/source/utils.cpp:94) module 0 <118>(../game_patch/source/utils.cpp:95) name: eboot.bin <118>(../game_patch/source/utils.cpp:96) start: 0x400000 <118>(../game_patch/source/utils.cpp:97) size: 23461888 (0x01660000) bytes <118>(../game_patch/source/main.cpp:255) Module start: 0x400000 0x1660000 <118>(../game_patch/source/main.cpp:262) process info <118>(../game_patch/source/main.cpp:262) pid: 179 <118>(../game_patch/source/main.cpp:262) name: eboot.bin <118>(../game_patch/source/main.cpp:262) path: /app0/eboot.bin <118>(../game_patch/source/main.cpp:262) titleid: CUSA03694 <118>(../game_patch/source/main.cpp:262) contentid: UP9000-CUSA03694_00-GRAVITYRUSH20000 <118>(../game_patch/source/main.cpp:262) version: 01.11 <118>(../game_patch/source/main.cpp:262) base_address: 0x400000 <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0xcf7861f66d4cf683.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x3d944d648d9b92e2.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x578cb87d081da220.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0xe274dc0d173e95f9.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0xe8d87c13bcf1c1d5.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x23a287119a322fe7.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x09799b35df797497.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x3836dae209444ca6.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x1a40549e8c7d6108.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x3a425d8ae413e818.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0xe6043161079768cd.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x694901e3017f1ad0.txt <118>(../game_patch/source/main.cpp:92) Settings path: /data/GoldHEN/patches/settings/0x7673606c23789f1e.txt <118>(../../common/plugin_common.cpp:10) Notify text: <118>13 Patches Applied <118>322 Patch Lines Applied <118>(../plugin_loader/source/main.c:180) plugin_load returned with 0x00000064 <118>(../plugin_loader/source/main.c:183) Program returned non zero, Starting plugin_unload... <118>(../game_patch/source/main.cpp:271) [GoldHEN] plugin_unload <118>(../plugin_loader/source/main.c:185) plugin_unload returned with 0x00000000 <118>(../plugin_loader/source/main.c:218) Failed to concatenate string! <118>(../plugin_loader/source/main.c:219) g_PluginDetails: 1. afr <118> <118>(../plugin_loader/source/main.c:220) strlen(g_PluginDetails): 7 <118>(../plugin_loader/source/main.c:221) sizeof(g_PluginDetails): 256 <118>(../plugin_loader/source/main.c:222) plugin_entry: <118>(../plugin_loader/source/main.c:223) strlen(plugin_entry): 0 <118>(../plugin_loader/source/main.c:130) /data/GoldHEN/plugins/no_share_watermark.prx=true <118>(../plugin_loader/source/main.c:153) Starting /data/GoldHEN/plugins/no_share_watermark.prx <118>(../plugin_loader/source/main.c:170) Loaded Plugin /data/GoldHEN/plugins/no_share_watermark.prx <118>(../plugin_loader/source/main.c:171) Plugin Handle 0x0000008c Dlsym 0x00000000 <118>(../plugin_loader/source/main.c:173) plugin_load Dlsym 0x00000000 @ 0x8007d01d0 <118>(../plugin_loader/source/main.c:175) plugin_unload Dlsym 0x00000000 @ 0x8007d04c0 <118>(../plugin_loader/source/main.c:178) Starting plugin... <118>(../no_share_watermark/source/main.c:66) [GoldHEN] plugin_load <118>(../no_share_watermark/source/main.c:67) [GoldHEN] Plugin Author(s): illusion <118>(../no_share_watermark/source/main.c:68) Commit: 3c94f1ef94bfb7dc146c75560071438df162893a Branch: start-rename Build: 200 (Release) <118>(../no_share_watermark/source/main.c:68) Built: Jun 24 2023 @ 04:38:42 <118>(../no_share_watermark/source/main.c:68) GoldHEN SDK Ver: 0x00000100 <118>(../no_share_watermark/source/main.c:68) GoldHEN System SDK Ver: 0xffffffff <118>plugin_load:72 HOOK32() Create sceScreenShotSetOverlayImage <118>[Detour] Detour_DetourFunction32: - InstructionSize: 7 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 8007e43a0 - HookPtr: 8007d00a0 - HookPtrTrampoline: 880009da0 - StubPtr: 26f220000 - StubSize: 21) <118>plugin_load:73 HOOK32() Create sceScreenShotSetOverlayImageWithOrigin <118>[Detour] Detour_DetourFunction32: - InstructionSize: 6 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 8007e4680 - HookPtr: 8007d00d0 - HookPtrTrampoline: 880009e60 - StubPtr: 26f224000 - StubSize: 20) <118>plugin_load:74 HOOK32() Create sceVideoRecordingSetInfo <118>[Detour] Detour_DetourFunction32: - InstructionSize: 6 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 800811e20 - HookPtr: 8007d0100 - HookPtrTrampoline: 880009e80 - StubPtr: 26f228000 - StubSize: 20) <118>plugin_load:75 HOOK32() Create sceScreenShotDisable <118>[Detour] Detour_DetourFunction32: - InstructionSize: 6 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 8007e46a0 - HookPtr: 8007d01a0 - HookPtrTrampoline: 880009ea0 - StubPtr: 26f22c000 - StubSize: 20) <118>plugin_load:76 HOOK32() Create sceRemoteplayProhibit <118>[Detour] Detour_DetourFunction32: - InstructionSize: 9 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 80086d330 - HookPtr: 8007d0080 - HookPtrTrampoline: 880009ec0 - StubPtr: 26f230000 - StubSize: 23) <118>plugin_load:77 HOOK32() Create sceRemoteplayProhibitStreaming <118>[Detour] Detour_DetourFunction32: - InstructionSize: 5 <118>[Detour] Detour_DetourFunction32: Detour Written Successfully! (FunctionPtr: 80086d3b0 - HookPtr: 8007d0090 - HookPtrTrampoline: 880009ee0 - StubPtr: 26f234000 - StubSize: 19) <118>(../plugin_loader/source/main.c:180) plugin_load returned with 0x00000000 <118>(../plugin_loader/source/main.c:189) plugin_load exit successful 0x00000000 <118>(../plugin_loader/source/main.c:130) /data/GoldHEN/plugins/fliprate_remover.prx=false <118>(../plugin_loader/source/main.c:133) Skipping entry (false) <118>(../../common/plugin_common.c:10) Notify text: <118>Loaded 2 plugin(s) <118>1. afr <118>2. no_share_watermark ```