Fixed again the GS dump creation in the new GUI by adding 2 new accelerator to the global table.

Now the snapshots and gs dumps are correctly created in the snaps folder (or the one choose by the user). (GSDX was missing a check to understand if the directory passed by pcsx2 was or not slashed at the end. :P)

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2655 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
feal87 2010-03-02 10:17:50 +00:00
parent 0c8c01494f
commit 0bac0a6217
2 changed files with 6 additions and 1 deletions

View File

@ -386,6 +386,8 @@ void Pcsx2App::InitDefaultGlobalAccelerators()
GlobalAccels.Map( AAC( WXK_ESCAPE ), "Sys_Suspend");
GlobalAccels.Map( AAC( WXK_F8 ), "Sys_TakeSnapshot");
GlobalAccels.Map( AAC( WXK_F8 ).Shift(), "Sys_TakeSnapshot");
GlobalAccels.Map( AAC( WXK_F8 ).Shift().Cmd(),"Sys_TakeSnapshot");
GlobalAccels.Map( AAC( WXK_F9 ), "Sys_RenderswitchToggle");
GlobalAccels.Map( AAC( WXK_F10 ), "Sys_LoggingToggle");

View File

@ -363,7 +363,10 @@ EXPORT_C GSvsync(int field)
EXPORT_C_(uint32) GSmakeSnapshot(char* path)
{
return s_gs->MakeSnapshot(string(path) + "gsdx");
string str = string(path);
if (str[str.length()] != '\\')
str = str + "\\";
return s_gs->MakeSnapshot(str + "gsdx");
}
EXPORT_C GSkeyEvent(GSKeyEventData* e)