summaryrefslogtreecommitdiff
path: root/arm9/lib/src/OS_emulator.c
diff options
context:
space:
mode:
authorMade <made111@gmx.de>2020-05-08 23:06:05 +0200
committerMade <made111@gmx.de>2020-05-08 23:06:05 +0200
commitae744a2ea5a31f19330aedd1e264c88b97873c1c (patch)
treea30d34cbfba4e518eb6a7d4a52154ed86d41a428 /arm9/lib/src/OS_emulator.c
parent6d3d11491cf6e8289822d2c5ba9cd7e309a5ce11 (diff)
parentf76cec09f8a2995244256d4b097d9eed2bebd34a (diff)
Merge branch 'master' of https://github.com/martmists/pokediamond
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;
+}