mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-10 21:16:24 +02:00
Windows: Separate Pause and Break actions.
It was confusing that "Pause" made PPSSPP appear to hang. This has the side effect of making "Break on Load" work outside Windows.
This commit is contained in:
1 parent
9f307fd6e9
commit
0d4bd341e9
11 files changed
+39
-32
No files matched your search
+3
-3
@@ -260,7 +260,7 @@ bool Load_PSP_ISO(FileLoader *fileLoader, std::string *error_string) {
|
||||
// TODO: We can't use the initial error_string pointer.
|
||||
bool success = __KernelLoadExec(bootpath.c_str(), 0, &PSP_CoreParameter().errorString);
|
||||
if (success && coreState == CORE_POWERUP) {
|
||||
coreState = PSP_CoreParameter().startPaused ? CORE_STEPPING : CORE_RUNNING;
|
||||
coreState = PSP_CoreParameter().startBreak ? CORE_STEPPING : CORE_RUNNING;
|
||||
} else {
|
||||
coreState = CORE_ERROR;
|
||||
// TODO: This is a crummy way to communicate the error...
|
||||
@@ -375,7 +375,7 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) {
|
||||
std::thread th([finalName] {
|
||||
bool success = __KernelLoadExec(finalName.c_str(), 0, &PSP_CoreParameter().errorString);
|
||||
if (success && coreState == CORE_POWERUP) {
|
||||
coreState = PSP_CoreParameter().startPaused ? CORE_STEPPING : CORE_RUNNING;
|
||||
coreState = PSP_CoreParameter().startBreak ? CORE_STEPPING : CORE_RUNNING;
|
||||
} else {
|
||||
coreState = CORE_ERROR;
|
||||
// TODO: This is a crummy way to communicate the error...
|
||||
@@ -393,7 +393,7 @@ bool Load_PSP_GE_Dump(FileLoader *fileLoader, std::string *error_string) {
|
||||
std::thread th([] {
|
||||
bool success = __KernelLoadGEDump("disc0:/data.ppdmp", &PSP_CoreParameter().errorString);
|
||||
if (success && coreState == CORE_POWERUP) {
|
||||
coreState = PSP_CoreParameter().startPaused ? CORE_STEPPING : CORE_RUNNING;
|
||||
coreState = PSP_CoreParameter().startBreak ? CORE_STEPPING : CORE_RUNNING;
|
||||
} else {
|
||||
coreState = CORE_ERROR;
|
||||
// TODO: This is a crummy way to communicate the error...
|
||||
|
||||
Reference in new issue
Block a user