mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Win32: Not really appropriate to call exit() on a bad filename. Fixes #11030
This commit is contained in:
1 parent
701c2c0294
commit
3c066de158
1 file changed
+10
@@ -500,12 +500,22 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
||||
std::unique_ptr<FileLoader> fileLoader(ConstructFileLoader(boot_filename));
|
||||
if (!fileLoader->Exists()) {
|
||||
fprintf(stderr, "File not found: %s\n", boot_filename.c_str());
|
||||
#ifdef _WIN32
|
||||
// Ignore and proceed.
|
||||
#else
|
||||
// Bail.
|
||||
exit(1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "Can only boot one file");
|
||||
#ifdef _WIN32
|
||||
// Ignore and proceed.
|
||||
#else
|
||||
// Bail.
|
||||
exit(1);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user