mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 00:29:57 +00:00
Skip the startup logo when loading a game from the command line.
This commit is contained in:
parent
5dbf5da355
commit
d75a007ef3
@ -213,6 +213,7 @@ void NativeGetAppInfo(std::string *app_dir_name, std::string *app_nice_name, boo
|
||||
|
||||
void NativeInit(int argc, const char *argv[],
|
||||
const char *savegame_directory, const char *external_directory, const char *installID) {
|
||||
bool skipLogo = false;
|
||||
EnableFZ();
|
||||
setlocale( LC_ALL, "C" );
|
||||
std::string user_data_path = savegame_directory;
|
||||
@ -299,6 +300,7 @@ void NativeInit(int argc, const char *argv[],
|
||||
} else {
|
||||
if (boot_filename.empty()) {
|
||||
boot_filename = argv[i];
|
||||
skipLogo = true;
|
||||
|
||||
FileInfo info;
|
||||
if (!getFileInfo(boot_filename.c_str(), &info) || info.exists == false) {
|
||||
@ -380,7 +382,11 @@ void NativeInit(int argc, const char *argv[],
|
||||
#endif
|
||||
}
|
||||
|
||||
screenManager->switchScreen(new LogoScreen(boot_filename));
|
||||
if (skipLogo) {
|
||||
screenManager->switchScreen(new EmuScreen(boot_filename));
|
||||
} else {
|
||||
screenManager->switchScreen(new LogoScreen(boot_filename));
|
||||
}
|
||||
}
|
||||
|
||||
void NativeInitGraphics() {
|
||||
|
Loading…
Reference in New Issue
Block a user