wut/samples/cmake/my_first_rpl/my_first_rpl.c

23 lines
373 B
C
Raw Normal View History

#include "my_first_rpl.h"
2018-05-30 21:56:29 +01:00
#include <coreinit/dynload.h>
const char *
2018-05-30 21:56:29 +01:00
my_first_export()
{
return "Hello from my_first_rpl!";
2018-05-30 21:56:29 +01:00
}
int
2018-09-30 08:36:43 +01:00
rpl_entry(OSDynLoad_Module module,
OSDynLoad_EntryReason reason)
2018-05-30 21:56:29 +01:00
{
if (reason == OS_DYNLOAD_LOADED) {
// Do stuff on load
} else if (reason == OS_DYNLOAD_UNLOADED) {
// Do stuff on unload
}
return 0;
}