win32: dont screenshot if no rom is open (menu was already disabled, anyway)

This commit is contained in:
zeromus 2011-08-15 01:48:47 +00:00
parent ba2887e700
commit a9bba6473e
1 changed files with 4 additions and 0 deletions

View File

@ -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);