mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
Error handling improvements
This commit is contained in:
1 parent
1da49273b5
commit
d32e10ff0b
4 files changed
+47
-21
No files matched your search
+9
-3
@@ -127,10 +127,16 @@ void CPU_Init() {
|
||||
g_DoubleTextureCoordinates = false;
|
||||
|
||||
std::string filename = coreParameter.fileToStart;
|
||||
EmuFileType type = Identify_File(filename);
|
||||
IdentifiedFileType type = Identify_File(filename);
|
||||
|
||||
if (type == FILETYPE_PSP_ISO || type == FILETYPE_PSP_ISO_NP || type == FILETYPE_PSP_DISC_DIRECTORY) {
|
||||
switch (type) {
|
||||
case FILETYPE_PSP_ISO:
|
||||
case FILETYPE_PSP_ISO_NP:
|
||||
case FILETYPE_PSP_DISC_DIRECTORY:
|
||||
InitMemoryForGameISO(filename);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
Memory::Init();
|
||||
@@ -256,7 +262,7 @@ bool PSP_Init(const CoreParameter &coreParam, std::string *error_string) {
|
||||
}
|
||||
|
||||
bool success = coreParameter.fileToStart != "";
|
||||
*error_string = coreParam.errorString;
|
||||
*error_string = coreParameter.errorString;
|
||||
if (success) {
|
||||
GPU_Init();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user