mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Log some file reading errors.
This commit is contained in:
1 parent
8e8a18e9b5
commit
9a8cd2c067
2 files changed
+7
-3
No files matched your search
@@ -178,7 +178,7 @@ UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams ¶ms) {
|
||||
memset(&pi, 0, sizeof(pi));
|
||||
UINT retval = CreateProcess(0, command_line, 0, 0, 0, 0, 0, 0, &si, &pi);
|
||||
if (!retval) {
|
||||
ERROR_LOG(BOOT, "Failed creating notepad process");
|
||||
ERROR_LOG(COMMON, "Failed creating notepad process");
|
||||
}
|
||||
#elif defined(__APPLE__) || defined(__linux__)
|
||||
#if defined(__linux__)
|
||||
@@ -188,7 +188,10 @@ UI::EventReturn CwCheatScreen::OnEditCheatFile(UI::EventParams ¶ms) {
|
||||
#endif
|
||||
cheatFile.append(activeCheatFile);
|
||||
NOTICE_LOG(BOOT, "Launching %s", cheatFile.c_str());
|
||||
system(cheatFile.c_str());
|
||||
int retval = system(cheatFile.c_str());
|
||||
if (retval != 0) {
|
||||
ERROR_LOG(COMMON, "Failed to launch cheat file");
|
||||
}
|
||||
#endif
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user