Win32 - stop lua menu item gray if no lua script is running.
This commit is contained in:
parent
4c49d50590
commit
e08f3af8bf
|
@ -1,4 +1,5 @@
|
|||
---version 2.0.4 yet to be released---
|
||||
08-dec-2008 - adelikat - win32 - stop lua menu item gray if no lua script is running
|
||||
08-dec-2008 - adelikat - win32 - fix bug where no sound + mute turbo caused chirps when toggling
|
||||
08-dec-2008 - adelikat - win32 - sound dialog - disabling sound disabled sound options
|
||||
08-dec-2008 - adelikat - win32 - opening a rom runs closerom first, fixes bug where new sav file was not getting loaded
|
||||
|
|
|
@ -83,7 +83,7 @@ extern int EnableAutosave;
|
|||
extern bool frameAdvanceLagSkip;
|
||||
extern bool movieSubtitles;
|
||||
extern bool turbo;
|
||||
|
||||
extern int luaRunning;
|
||||
// Extern functions
|
||||
|
||||
char *md5_asciistr(uint8 digest[16]);
|
||||
|
@ -1454,6 +1454,7 @@ LRESULT FAR PASCAL AppWndProc(HWND hWnd,UINT msg,WPARAM wParam,LPARAM lParam)
|
|||
EnableMenuItem(fceumenu,MENU_LOAD_STATE,MF_BYCOMMAND | (FCEU_IsValidUI(FCEUI_LOADSTATE)?MF_ENABLED:MF_GRAYED));
|
||||
EnableMenuItem(fceumenu,MENU_STOP_AVI,MF_BYCOMMAND | (FCEUI_AviIsRecording()?MF_ENABLED:MF_GRAYED));
|
||||
EnableMenuItem(fceumenu,MENU_STOP_WAV,MF_BYCOMMAND | (loggingSound?MF_ENABLED:MF_GRAYED));
|
||||
EnableMenuItem(fceumenu,ID_FILE_STOPLUASCRIPT,MF_BYCOMMAND | (luaRunning?MF_ENABLED:MF_GRAYED));
|
||||
default:
|
||||
proco:
|
||||
return DefWindowProc(hWnd,msg,wParam,lParam);
|
||||
|
|
|
@ -78,7 +78,7 @@ static lua_State *L;
|
|||
static char *luaScriptName = NULL;
|
||||
|
||||
// Are we running any code right now?
|
||||
static int luaRunning = FALSE;
|
||||
int luaRunning = FALSE;
|
||||
|
||||
// True at the frame boundary, false otherwise.
|
||||
static int frameBoundary = FALSE;
|
||||
|
|
Loading…
Reference in New Issue