diff options
author | Bastien Bouclet | 2018-02-04 08:46:12 +0100 |
---|---|---|
committer | Bastien Bouclet | 2018-05-10 09:04:23 +0200 |
commit | faa2534f46611a47913004b55aa0e5ed5b7e4b7a (patch) | |
tree | 80d25039401ee215536ff853c043bfd2e62c4ca6 /gui/massadd.cpp | |
parent | 1de5aca585af3e04a64a4f287dd348c0e7b4b967 (diff) | |
download | scummvm-rg350-faa2534f46611a47913004b55aa0e5ed5b7e4b7a.tar.gz scummvm-rg350-faa2534f46611a47913004b55aa0e5ed5b7e4b7a.tar.bz2 scummvm-rg350-faa2534f46611a47913004b55aa0e5ed5b7e4b7a.zip |
ENGINES: Factor adding games to ConfMan
Diffstat (limited to 'gui/massadd.cpp')
-rw-r--r-- | gui/massadd.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gui/massadd.cpp b/gui/massadd.cpp index 7c54c503a3..56b15ecfd7 100644 --- a/gui/massadd.cpp +++ b/gui/massadd.cpp @@ -28,10 +28,7 @@ #include "common/taskbar.h" #include "common/translation.h" -#include "gui/launcher.h" // For addGameToConf() #include "gui/massadd.h" -#include "gui/widget.h" -#include "gui/widgets/list.h" #ifndef DISABLE_MASS_ADD namespace GUI { @@ -149,7 +146,7 @@ void MassAddDialog::handleCommand(CommandSender *sender, uint32 cmd, uint32 data debug(1, " Added gameid '%s', desc '%s'\n", iter->gameId.c_str(), iter->description.c_str()); - iter->gameId = addGameToConf(*iter); + iter->gameId = EngineMan.createTargetForGame(*iter); } // Write everything to disk |