added rudimentary menu screen
[gbajam22] / src / game.c
index 38136aa..c203e5b 100644 (file)
@@ -28,12 +28,12 @@ int change_screen(struct screen *scr)
 
        mask(INTR_VBLANK);
 
-       if(scr->start && scr->start() == -1) {
-               return -1;
-       }
        if(curscr && curscr->stop) {
                curscr->stop();
        }
+       if(scr->start && scr->start() == -1) {
+               return -1;
+       }
        curscr = scr;
 
        unmask(INTR_VBLANK);