Implemented missing isguiactive()
This commit is contained in:
parent
2f383eeeee
commit
ec264b1adb
1 changed files with 8 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
int emulating = 0;
|
int emulating = 0;
|
||||||
bool config_loaded = false;
|
bool config_loaded = false;
|
||||||
|
int gui_active;
|
||||||
|
|
||||||
struct gui_msg
|
struct gui_msg
|
||||||
{
|
{
|
||||||
|
@ -480,6 +481,7 @@ void gui_display(int shortcut)
|
||||||
{
|
{
|
||||||
if (quit_program != 0)
|
if (quit_program != 0)
|
||||||
return;
|
return;
|
||||||
|
gui_active++;
|
||||||
emulating = 1;
|
emulating = 1;
|
||||||
pause_emulation = 1;
|
pause_emulation = 1;
|
||||||
pause_sound();
|
pause_sound();
|
||||||
|
@ -511,6 +513,7 @@ void gui_display(int shortcut)
|
||||||
|
|
||||||
fpscounter_reset();
|
fpscounter_reset();
|
||||||
pause_emulation = 0;
|
pause_emulation = 0;
|
||||||
|
gui_active--;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gui_flicker_led2(int led, int unitnum, int status)
|
static void gui_flicker_led2(int led, int unitnum, int status)
|
||||||
|
@ -807,3 +810,8 @@ bool hardfile_testrdb(const TCHAR* filename)
|
||||||
zfile_fclose(f);
|
zfile_fclose(f);
|
||||||
return isrdb;
|
return isrdb;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isguiactive(void)
|
||||||
|
{
|
||||||
|
return gui_active > 0;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue