mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-27 03:55:42 +00:00
Fix auto boot
This commit is contained in:
parent
61351e4b59
commit
87f13d9b32
@ -299,8 +299,9 @@ void NativeInit(int argc, const char *argv[],
|
||||
} else {
|
||||
if (boot_filename.empty()) {
|
||||
boot_filename = argv[i];
|
||||
if (!File::Exists(boot_filename))
|
||||
{
|
||||
|
||||
FileInfo info;
|
||||
if (!getFileInfo(boot_filename.c_str(), &info) || info.exists == false) {
|
||||
fprintf(stderr, "File not found: %s\n", boot_filename.c_str());
|
||||
exit(1);
|
||||
}
|
||||
@ -376,14 +377,10 @@ void NativeInit(int argc, const char *argv[],
|
||||
if (Atrac3plus_Decoder::CanAutoInstall()) {
|
||||
Atrac3plus_Decoder::DoAutoInstall();
|
||||
}
|
||||
screenManager->switchScreen(new LogoScreen(boot_filename));
|
||||
#else
|
||||
screenManager->switchScreen(new LogoScreen(boot_filename));
|
||||
#endif
|
||||
} else {
|
||||
// Go directly into the game.
|
||||
screenManager->switchScreen(new EmuScreen(boot_filename));
|
||||
}
|
||||
|
||||
screenManager->switchScreen(new LogoScreen(boot_filename));
|
||||
}
|
||||
|
||||
void NativeInitGraphics() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user