Implemented missing isguiactive()

This commit is contained in:
Dimitris Panokostas 2020-05-10 23:11:04 +02:00
parent 2f383eeeee
commit ec264b1adb

View file

@ -30,6 +30,7 @@
int emulating = 0;
bool config_loaded = false;
int gui_active;
struct gui_msg
{
@ -480,6 +481,7 @@ void gui_display(int shortcut)
{
if (quit_program != 0)
return;
gui_active++;
emulating = 1;
pause_emulation = 1;
pause_sound();
@ -511,6 +513,7 @@ void gui_display(int shortcut)
fpscounter_reset();
pause_emulation = 0;
gui_active--;
}
static void gui_flicker_led2(int led, int unitnum, int status)
@ -807,3 +810,8 @@ bool hardfile_testrdb(const TCHAR* filename)
zfile_fclose(f);
return isrdb;
}
bool isguiactive(void)
{
return gui_active > 0;
}