win32: actually do what my last checkin said it did. but now i no longer think it was necessary, so just ignore the last two revisions
This commit is contained in:
parent
b1bac119bb
commit
6f90eec593
|
@ -100,8 +100,6 @@ void HK_SearchCheats(int, bool justPressed)
|
||||||
}
|
}
|
||||||
void HK_QuickScreenShot(int param, bool justPressed)
|
void HK_QuickScreenShot(int param, bool justPressed)
|
||||||
{
|
{
|
||||||
bool unpause = NDS_Pause(false);
|
|
||||||
|
|
||||||
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);
|
||||||
|
@ -129,13 +127,14 @@ void HK_QuickScreenShot(int param, bool justPressed)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(unpause) NDS_UnPause(false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HK_PrintScreen(int param, bool justPressed)
|
void HK_PrintScreen(int param, bool justPressed)
|
||||||
{
|
{
|
||||||
if(!justPressed) return;
|
if(!justPressed) return;
|
||||||
|
|
||||||
|
bool unpause = NDS_Pause(false);
|
||||||
|
|
||||||
char outFilename[MAX_PATH];
|
char outFilename[MAX_PATH];
|
||||||
|
|
||||||
OPENFILENAME ofn;
|
OPENFILENAME ofn;
|
||||||
|
@ -170,14 +169,17 @@ void HK_PrintScreen(int param, bool justPressed)
|
||||||
}
|
}
|
||||||
|
|
||||||
strcpy(outFilename,filename.c_str());
|
strcpy(outFilename,filename.c_str());
|
||||||
if(!GetSaveFileName(&ofn))
|
if(GetSaveFileName(&ofn))
|
||||||
return;
|
{
|
||||||
filename = outFilename;
|
filename = outFilename;
|
||||||
|
|
||||||
if(toupper(strright(filename,4)) == ".PNG")
|
if(toupper(strright(filename,4)) == ".PNG")
|
||||||
NDS_WritePNG(filename.c_str());
|
NDS_WritePNG(filename.c_str());
|
||||||
else if(toupper(strright(filename,4)) == ".BMP")
|
else if(toupper(strright(filename,4)) == ".BMP")
|
||||||
NDS_WriteBMP(filename.c_str());
|
NDS_WriteBMP(filename.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
|
if(unpause) NDS_UnPause(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void HK_StateSaveSlot(int num, bool justPressed)
|
void HK_StateSaveSlot(int num, bool justPressed)
|
||||||
|
|
Loading…
Reference in New Issue