summaryrefslogtreecommitdiff
path: root/arm9/lib/src/OS_emulator.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2020-05-05 18:09:25 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2020-05-05 18:09:25 -0400
commitecf2ab880b03992b59ca409f933f50f5111165fd (patch)
tree94ea2cff04f3f82277cc0751c53cd9407e2d787e /arm9/lib/src/OS_emulator.c
parent59b901298217b6aa2cde46a6f828fb20a23ac758 (diff)
parent962b4e0e9505bdf1eafc7679b428977658726042 (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond into pikalax_work
Diffstat (limited to 'arm9/lib/src/OS_emulator.c')
-rw-r--r--arm9/lib/src/OS_emulator.c18
1 files changed, 18 insertions, 0 deletions
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;
+}