From a3ad15b295aedf45f083ef7f16bb6c5374dfde4a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 1 Mar 2014 13:31:23 -0800 Subject: [PATCH] Allow screenshot out of game. --- UI/NativeApp.cpp | 3 +++ Windows/WndMainWindow.cpp | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 4eac439207..89165bca85 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -522,6 +522,9 @@ void TakeScreenshot() { int i = 0; std::string gameId = g_paramSFO.GetValueString("DISC_ID"); + if (gameId.empty()) { + gameId = "MENU"; + } char filename[256]; while (i < 10000){ diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 85b076bcef..43fac2d704 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -430,7 +430,6 @@ namespace MainWindow EnableMenuItem(menu, ID_DEBUG_LOADMAPFILE, menuEnable); EnableMenuItem(menu, ID_DEBUG_SAVEMAPFILE, menuEnable); EnableMenuItem(menu, ID_DEBUG_RESETSYMBOLTABLE, menuEnable); - EnableMenuItem(menu, ID_DEBUG_TAKESCREENSHOT, menuEnable); EnableMenuItem(menu, ID_DEBUG_EXTRACTFILE, menuEnable); } @@ -1390,7 +1389,7 @@ namespace MainWindow MessageBox(hwndMain, L"File does not exist.", L"Sorry",0); } else if (info.type == FILETYPE_DIRECTORY) { MessageBox(hwndMain, L"Cannot extract directories.", L"Sorry",0); - } else if (W32Util::BrowseForFileName(false, hWnd, L"Save file as...", 0, L"0All files\0*.*\0\0", L"", fn)) { + } else if (W32Util::BrowseForFileName(false, hWnd, L"Save file as...", 0, L"All files\0*.*\0\0", L"", fn)) { FILE *fp = fopen(fn.c_str(), "wb"); u32 handle = pspFileSystem.OpenFile(filename, FILEACCESS_READ, ""); u8 buffer[4096];