diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-05 18:08:22 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-05 18:08:22 -0400 |
commit | 6071299191b3386f1d266a25ec6b49af2c2beda5 (patch) | |
tree | 15af222a5894cb672eb2b5158a3a1f874c143cfc /arm9/lib/src | |
parent | 20d2be0cc4f7659f53e5b104d6298fd01660938a (diff) | |
parent | 962b4e0e9505bdf1eafc7679b428977658726042 (diff) |
Merge branch 'master' of https://github.com/martmists/pokediamond into libfs
Diffstat (limited to 'arm9/lib/src')
-rw-r--r-- | arm9/lib/src/OS_arena.c | 2 | ||||
-rw-r--r-- | arm9/lib/src/OS_emulator.c | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/arm9/lib/src/OS_arena.c b/arm9/lib/src/OS_arena.c index eb04e60b..ae05b49c 100644 --- a/arm9/lib/src/OS_arena.c +++ b/arm9/lib/src/OS_arena.c @@ -5,8 +5,8 @@ #include "consts.h"
#include "OS_arena.h"
#include "OS_protectionRegion.h"
+#include "OS_emulator.h"
-extern u32 OS_GetConsoleType();
extern BOOL OSi_MainExArenaEnabled;
extern BOOL OSi_Initialized; // TODO: located at 0x021d36f0
void SDK_MAIN_ARENA_LO(); // TODO: technically this should be defined in the lcf
diff --git a/arm9/lib/src/OS_emulator.c b/arm9/lib/src/OS_emulator.c new file mode 100644 index 00000000..1be0e163 --- /dev/null +++ b/arm9/lib/src/OS_emulator.c @@ -0,0 +1,18 @@ +// +// Created by red031000 on 2020-05-05. +// + +#include "OS_emulator.h" +#include "function_target.h" + +extern u32 OSi_ConsoleTypeCache; //todo fix bss + +ARM_FUNC BOOL OS_IsRunOnEmulator() { + return FALSE; +} + +ARM_FUNC u32 OS_GetConsoleType() { + OSi_ConsoleTypeCache = OS_CONSOLE_NITRO | OS_CONSOLE_DEV_CARD | OS_CONSOLE_SIZE_4MB; + + return OSi_ConsoleTypeCache; +} |