diff --git a/desmume/src/windows/hotkey.cpp b/desmume/src/windows/hotkey.cpp index 02f9dba86..863126d68 100644 --- a/desmume/src/windows/hotkey.cpp +++ b/desmume/src/windows/hotkey.cpp @@ -100,6 +100,9 @@ void HK_SearchCheats(int, bool justPressed) } void HK_QuickScreenShot(int param, bool justPressed) { + if(!romloaded) return; + if(!justPressed) return; + char buffer[MAX_PATH]; ZeroMemory(buffer, sizeof(buffer)); path.getpath(path.SCREENSHOTS, buffer); @@ -132,6 +135,7 @@ void HK_QuickScreenShot(int param, bool justPressed) void HK_PrintScreen(int param, bool justPressed) { if(!justPressed) return; + if(!romloaded) return; bool unpause = NDS_Pause(false);