win32: dont screenshot if no rom is open (menu was already disabled, anyway)
This commit is contained in:
parent
ba2887e700
commit
a9bba6473e
|
@ -100,6 +100,9 @@ void HK_SearchCheats(int, bool justPressed)
|
||||||
}
|
}
|
||||||
void HK_QuickScreenShot(int param, bool justPressed)
|
void HK_QuickScreenShot(int param, bool justPressed)
|
||||||
{
|
{
|
||||||
|
if(!romloaded) return;
|
||||||
|
if(!justPressed) return;
|
||||||
|
|
||||||
char buffer[MAX_PATH];
|
char buffer[MAX_PATH];
|
||||||
ZeroMemory(buffer, sizeof(buffer));
|
ZeroMemory(buffer, sizeof(buffer));
|
||||||
path.getpath(path.SCREENSHOTS, buffer);
|
path.getpath(path.SCREENSHOTS, buffer);
|
||||||
|
@ -132,6 +135,7 @@ void HK_QuickScreenShot(int param, bool justPressed)
|
||||||
void HK_PrintScreen(int param, bool justPressed)
|
void HK_PrintScreen(int param, bool justPressed)
|
||||||
{
|
{
|
||||||
if(!justPressed) return;
|
if(!justPressed) return;
|
||||||
|
if(!romloaded) return;
|
||||||
|
|
||||||
bool unpause = NDS_Pause(false);
|
bool unpause = NDS_Pause(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue