projects
/
gbajam22
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimization: fixed spawn points on color texture
[gbajam22]
/
src
/
gba
/
main.c
diff --git
a/src/gba/main.c
b/src/gba/main.c
index
8417df1
..
a520caf
100644
(file)
--- a/
src/gba/main.c
+++ b/
src/gba/main.c
@@
-32,8
+32,6
@@
int main(void)
REG_DISPSTAT |= DISPSTAT_IEN_VBLANK;
unmask(INTR_VBLANK);
REG_DISPSTAT |= DISPSTAT_IEN_VBLANK;
unmask(INTR_VBLANK);
- intr_enable();
-
if(init_screens() == -1) {
panic(get_pc(), "failed to initialize screens");
}
if(init_screens() == -1) {
panic(get_pc(), "failed to initialize screens");
}
@@
-42,19
+40,20
@@
int main(void)
panic(get_pc(), "failed to find game screen");
}
panic(get_pc(), "failed to find game screen");
}
+ intr_enable();
+
for(;;) {
curscr->frame();
}
return 0;
}
for(;;) {
curscr->frame();
}
return 0;
}
+ARM_IWRAM
static void vblank(void)
{
vblperf_count++;
static void vblank(void)
{
vblperf_count++;
- if(curscr && curscr->vblank) {
- curscr->vblank();
- }
+ curscr->vblank();
#ifndef NOSOUND
mmVBlank();
#ifndef NOSOUND
mmVBlank();