Merge pull request #808 from samuelyuan/fix-load-save-str

Fixed "Saved current state" and "Loaded State"
This commit is contained in:
zilmar 2015-12-07 04:30:08 +11:00
commit 141a8cbb05
1 changed files with 2 additions and 2 deletions

View File

@ -1391,7 +1391,7 @@ bool CN64System::SaveState()
CPath SavedFileName(FileName);
g_Notify->DisplayMessage(5, stdstr_f("%ws %s", SaveMessage.c_str(), SavedFileName.GetNameExtension().c_str()).ToUTF16().c_str());
g_Notify->DisplayMessage(5, stdwstr_f(L"%ws %ws", SaveMessage.c_str(), stdstr(SavedFileName.GetNameExtension()).ToUTF16().c_str()).c_str());
//Notify().RefreshMenu();
WriteTrace(TraceDebug, __FUNCTION__ ": Done");
return true;
@ -1687,7 +1687,7 @@ bool CN64System::LoadState(const char * FileName)
}
WriteTrace(TraceDebug, __FUNCTION__ ": 13");
std::wstring LoadMsg = g_Lang->GetString(MSG_LOADED_STATE);
g_Notify->DisplayMessage(5, stdstr_f("%ws %s", LoadMsg.c_str(), CPath(FileNameStr).GetNameExtension().c_str()).ToUTF16().c_str());
g_Notify->DisplayMessage(5, stdwstr_f(L"%ws %ws", LoadMsg.c_str(), stdstr(CPath(FileNameStr).GetNameExtension()).ToUTF16().c_str()).c_str());
WriteTrace(TraceDebug, __FUNCTION__ ": Done");
return true;
}