UPDATES: Fix crash when compiling with updates enabled but without an UpdateManager
This can happen when Sparkle was not found during configure which results in USE_UPDATES being defined but USE_SPARKLE not being defined.
This commit is contained in:
parent
aceff5852e
commit
d98d4bc25d
1 changed files with 1 additions and 1 deletions
|
@ -484,7 +484,7 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
|
|||
setupKeymapper(system);
|
||||
|
||||
#ifdef USE_UPDATES
|
||||
if (!ConfMan.hasKey("updates_check")) {
|
||||
if (!ConfMan.hasKey("updates_check") && g_system->getUpdateManager()) {
|
||||
GUI::UpdatesDialog dlg;
|
||||
dlg.runModal();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue