diff --git a/Core/PSPLoaders.cpp b/Core/PSPLoaders.cpp index 0a9b314b7b..eeab0755b5 100644 --- a/Core/PSPLoaders.cpp +++ b/Core/PSPLoaders.cpp @@ -328,7 +328,7 @@ bool Load_PSP_ISO(FileLoader *fileLoader, std::string *error_string) { } else { coreState = CORE_BOOT_ERROR; // TODO: This is a crummy way to communicate the error... - PSP_CoreParameter().fileToStart = ""; + PSP_CoreParameter().fileToStart.clear(); } }); return true; @@ -461,7 +461,7 @@ bool Load_PSP_ELF_PBP(FileLoader *fileLoader, std::string *error_string) { } else { coreState = CORE_BOOT_ERROR; // TODO: This is a crummy way to communicate the error... - PSP_CoreParameter().fileToStart = ""; + PSP_CoreParameter().fileToStart.clear(); } }); return true; @@ -485,7 +485,7 @@ bool Load_PSP_GE_Dump(FileLoader *fileLoader, std::string *error_string) { } else { coreState = CORE_BOOT_ERROR; // TODO: This is a crummy way to communicate the error... - PSP_CoreParameter().fileToStart = ""; + PSP_CoreParameter().fileToStart.clear(); } }); return true; diff --git a/Core/System.cpp b/Core/System.cpp index 1aa5076968..3b7abb3416 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -311,7 +311,7 @@ bool CPU_Init() { // Note: this may return before init is complete, which is checked if CPU_IsReady(). if (!LoadFile(&loadedFile, &coreParameter.errorString)) { CPU_Shutdown(); - coreParameter.fileToStart = ""; + coreParameter.fileToStart.clear(); return false; } @@ -426,7 +426,7 @@ bool PSP_InitStart(const CoreParameter &coreParam, std::string *error_string) { } *error_string = coreParameter.errorString; - bool success = coreParameter.fileToStart != ""; + bool success = !coreParameter.fileToStart.empty(); if (!success) { Core_NotifyLifecycle(CoreLifecycle::START_COMPLETE); pspIsIniting = false; @@ -443,7 +443,7 @@ bool PSP_InitUpdate(std::string *error_string) { return false; } - bool success = coreParameter.fileToStart != ""; + bool success = !coreParameter.fileToStart.empty(); *error_string = coreParameter.errorString; if (success && gpu == nullptr) { PSP_SetLoading("Starting graphics...");