Rename rpl_main to rpl_entry.

This commit is contained in:
James Benton 2018-09-30 08:36:43 +01:00
parent 9a3483638e
commit 400318c3d1
3 changed files with 6 additions and 6 deletions

View File

@ -119,8 +119,8 @@ OSDynLoad_GetModuleName(OSDynLoad_Module module,
* Use this instead of main when creating .rpl files
*/
int
rpl_main(OSDynLoad_Module module,
OSDynLoad_EntryReason reason);
rpl_entry(OSDynLoad_Module module,
OSDynLoad_EntryReason reason);
#ifdef __cplusplus
}

View File

@ -19,7 +19,7 @@ load:
bl __eabi
lwz 3, 0xC(1)
lwz 4, 0x10(1)
bl rpl_main
bl rpl_entry
addi 1, 1, 0x14
blr
@ -27,7 +27,7 @@ unload:
# Handle unload
lwz 3, 0xC(1)
lwz 4, 0x10(1)
bl rpl_main
bl rpl_entry
bl __fini_wut
addi 1, 1, 0x14
b exit

View File

@ -7,8 +7,8 @@ my_first_export()
}
int
rpl_main(OSDynLoad_Module module,
OSDynLoad_EntryReason reason)
rpl_entry(OSDynLoad_Module module,
OSDynLoad_EntryReason reason)
{
if (reason == OS_DYNLOAD_LOADED) {
// Do stuff on load