mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Win32: Not really appropriate to call exit() on a bad filename. Fixes #11030
This commit is contained in:
parent
701c2c0294
commit
3c066de158
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue