mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 19:39:24 +01:00
Slightly faster, save prefs
This commit is contained in:
parent
5b5669eb8c
commit
e071d84a5c
@ -20,7 +20,7 @@
|
|||||||
#define SAVES_PATH "saves"
|
#define SAVES_PATH "saves"
|
||||||
#define IMAGE_PATH "images"
|
#define IMAGE_PATH "images"
|
||||||
#endif
|
#endif
|
||||||
#define MS_PER_FRAME 25
|
#define MS_PER_FRAME 24
|
||||||
|
|
||||||
static struct timeval tv_start;
|
static struct timeval tv_start;
|
||||||
static int MENU_SIZE_X, MENU_SIZE_Y;
|
static int MENU_SIZE_X, MENU_SIZE_Y;
|
||||||
@ -465,7 +465,6 @@ void C64::VBlank(bool draw_frame)
|
|||||||
break;
|
break;
|
||||||
case 9: /* Quit */
|
case 9: /* Quit */
|
||||||
quit_thyself = true;
|
quit_thyself = true;
|
||||||
ThePrefs.Save(PREFS_PATH);
|
|
||||||
break;
|
break;
|
||||||
case -1:
|
case -1:
|
||||||
default:
|
default:
|
||||||
@ -478,6 +477,7 @@ void C64::VBlank(bool draw_frame)
|
|||||||
|
|
||||||
this->NewPrefs(np);
|
this->NewPrefs(np);
|
||||||
ThePrefs = *np;
|
ThePrefs = *np;
|
||||||
|
ThePrefs.Save(PREFS_PATH);
|
||||||
TheDisplay->FakeKeyPress(-1, false, TheCIA1->KeyMatrix,
|
TheDisplay->FakeKeyPress(-1, false, TheCIA1->KeyMatrix,
|
||||||
TheCIA1->RevMatrix);
|
TheCIA1->RevMatrix);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user