diff options
| author | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-27 07:41:25 +0200 |
|---|---|---|
| committer | XaviDCR92 <xavi.dcr@gmail.com> | 2017-07-27 07:41:25 +0200 |
| commit | 153f078ec20cc442dd4dbe802dbd5fcb1748fcca (patch) | |
| tree | db82fe5fe9f6165b2239f3523d5f02ec8d9fa02b /Source/GameGui.c | |
| parent | cb1c0345c766fada621b521ca39aac02ae25056b (diff) | |
| download | airport-153f078ec20cc442dd4dbe802dbd5fcb1748fcca.tar.gz | |
* Added comments on System.
* Files needed for Game are now only loaded once, except from LEVEL1.PLT.
* Added DevMenu to get debug info.
* ISR_LoadMenuVBlank() does not stop when accessing SIO.
* On fopen() and SERIAL_INTERFACE defined, "#" is prepended and "@" is appended to filename string.
Diffstat (limited to 'Source/GameGui.c')
| -rw-r--r-- | Source/GameGui.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Source/GameGui.c b/Source/GameGui.c index 4a00873..265f606 100644 --- a/Source/GameGui.c +++ b/Source/GameGui.c @@ -206,7 +206,7 @@ static char* GameFileList[] = { "cdrom:\\DATA\\SPRITES\\BUBBLE.TIM;1" , "cdrom:\\DATA\\SPRITES\\DEPARR.TIM;1" ,
"cdrom:\\DATA\\SPRITES\\PAGEUPDN.TIM;1" };
-static void * GameFileDest[] = {(GsSprite*)&BubbleSpr ,
+static void* GameFileDest[] = {(GsSprite*)&BubbleSpr ,
(TYPE_FONT*)&RadioFont ,
(GsSprite*)&DepArrSpr ,
(GsSprite*)&PageUpDownSpr };
@@ -243,10 +243,17 @@ void GameGuiInit(void) RADIO_FONT_SPACING = 12
};
- LoadMenu( GameFileList,
- GameFileDest,
- sizeof(GameFileList) / sizeof(char*),
- sizeof(GameFileDest) /sizeof(void*) );
+ static bool firstLoad = true;
+
+ if(firstLoad == true)
+ {
+ firstLoad = false;
+
+ LoadMenu( GameFileList,
+ GameFileDest,
+ sizeof(GameFileList) / sizeof(char*),
+ sizeof(GameFileDest) /sizeof(void*) );
+ }
PauseRect.x[0] = PAUSE_DIALOG_X;
PauseRect.x[1] = PAUSE_DIALOG_X + PAUSE_DIALOG_W;
|
