From c92a6fa16497009feed27ec62b652b44659c9733 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Tue, 19 Dec 2017 22:51:43 +0100 Subject: [PATCH] Fix SCRIPT_RUNNER compiler warnings --- arm9/source/godmode.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arm9/source/godmode.c b/arm9/source/godmode.c index ec4424e..87fbf0a 100644 --- a/arm9/source/godmode.c +++ b/arm9/source/godmode.c @@ -42,11 +42,6 @@ typedef struct { u32 scroll; } PaneData; -// reserve 480kB for DirStruct, 64kB for PaneData, just to be safe -static DirStruct* current_dir = (DirStruct*) (DIR_BUFFER + 0x00000); -static DirStruct* clipboard = (DirStruct*) (DIR_BUFFER + 0x78000); -static PaneData* panedata = (PaneData*) (DIR_BUFFER + 0xF0000); - u32 SplashInit(const char* modestr) { u64 splash_size; @@ -79,6 +74,11 @@ u32 SplashInit(const char* modestr) { } #ifndef SCRIPT_RUNNER +// reserve 480kB for DirStruct, 64kB for PaneData, just to be safe +static DirStruct* current_dir = (DirStruct*) (DIR_BUFFER + 0x00000); +static DirStruct* clipboard = (DirStruct*) (DIR_BUFFER + 0x78000); +static PaneData* panedata = (PaneData*) (DIR_BUFFER + 0xF0000); + void GetTimeString(char* timestr, bool forced_update, bool full_year) { static DsTime dstime; static u64 timer = (u64) -1; // this ensures we don't check the time too often