Skip to content

Commit

Permalink
Merge pull request #2935 from Kingcom/AutoBootFix
Browse files Browse the repository at this point in the history
Fix auto boot
  • Loading branch information
hrydgard committed Jul 26, 2013
2 parents 3c86141 + 87f13d9 commit 98c5fba
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions UI/NativeApp.cpp
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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));

This comment has been minimized.

Copy link
@thedax

thedax Jul 26, 2013

Collaborator

Any particular reason it has to be a logo screen? When you're launching from the command-line you generally do so to bypass startup logos and menus..

}

void NativeInitGraphics() {
Expand Down

0 comments on commit 98c5fba

Please sign in to comment.