mirror of
https://github.com/NotImplementedLife/FSPDS.git
synced 2025-06-19 09:25:38 -04:00
player VBlank trap handler only activates in debug mode
This commit is contained in:
parent
cfea1c70a5
commit
afc6b58409
@ -14,6 +14,7 @@
|
|||||||
#include "player_icons.h"
|
#include "player_icons.h"
|
||||||
#include "loading_text.h"
|
#include "loading_text.h"
|
||||||
#include "strings.hpp"
|
#include "strings.hpp"
|
||||||
|
#include "version.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
@ -60,6 +61,8 @@ void operator delete( void* p, std::size_t sz)
|
|||||||
|
|
||||||
const char* selected_flipnote_path = nullptr; // "fat://flipnotes/0BC769_0A978C458A07A_002.ppm";
|
const char* selected_flipnote_path = nullptr; // "fat://flipnotes/0BC769_0A978C458A07A_002.ppm";
|
||||||
|
|
||||||
|
// The following handler assures that processing a single frame
|
||||||
|
// takes place in time in a single VBlank. Only used in debug mode
|
||||||
bool working=false;
|
bool working=false;
|
||||||
int vbl=0;
|
int vbl=0;
|
||||||
void vblank_handler()
|
void vblank_handler()
|
||||||
@ -518,9 +521,9 @@ public:
|
|||||||
|
|
||||||
key_down.add_event(&PlayerScene::on_key_down, this);
|
key_down.add_event(&PlayerScene::on_key_down, this);
|
||||||
|
|
||||||
|
|
||||||
irqEnable(IRQ_VBLANK);
|
irqEnable(IRQ_VBLANK);
|
||||||
irqSet(IRQ_VBLANK, &vblank_handler);
|
if(BUILD_TYPE=='D')
|
||||||
|
irqSet(IRQ_VBLANK, &vblank_handler);
|
||||||
|
|
||||||
Scene::run();
|
Scene::run();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user