mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-09 04:55:35 +00:00
Qt: Fix crash on startup with autoboot
This commit is contained in:
parent
d8d18d49eb
commit
49b4e1f0a6
@ -2189,9 +2189,9 @@ bool QtHost::ParseCommandLineParametersAndInitializeConfig(QApplication& app,
|
||||
#undef CHECK_ARG_PARAM
|
||||
}
|
||||
|
||||
if (!autoboot || !autoboot->filename.empty())
|
||||
if (autoboot && !autoboot->filename.empty())
|
||||
autoboot->filename += ' ';
|
||||
autoboot->filename += args[i].toStdString();
|
||||
AutoBoot(autoboot)->filename += args[i].toStdString();
|
||||
}
|
||||
|
||||
// To do anything useful, we need the config initialized.
|
||||
|
Loading…
x
Reference in New Issue
Block a user