From 87f13d9b32f7861a5187d514c8af8d81747884e6 Mon Sep 17 00:00:00 2001 From: Kingcom Date: Fri, 26 Jul 2013 14:42:38 +0200 Subject: [PATCH] Fix auto boot --- UI/NativeApp.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 59fa02dc507a..c4948b8c7a6f 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -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() {