diff options
author | Filippos Karapetis | 2013-07-05 13:10:04 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-07-05 13:10:04 +0300 |
commit | 4a12c691620de09011fda6f06b3a389566a4823c (patch) | |
tree | b16c8e096afda70b561f1af50a84fe2b22ac8fc7 | |
parent | 701e6401849207c0dd76e20288a5621026329dd1 (diff) | |
download | scummvm-rg350-4a12c691620de09011fda6f06b3a389566a4823c.tar.gz scummvm-rg350-4a12c691620de09011fda6f06b3a389566a4823c.tar.bz2 scummvm-rg350-4a12c691620de09011fda6f06b3a389566a4823c.zip |
CREATE_PROJECT: Don't allow the keymapper and the event recorder to be enabled simultaneously
-rw-r--r-- | devtools/create_project/create_project.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devtools/create_project/create_project.cpp b/devtools/create_project/create_project.cpp index 129e9f2367..480f6a926a 100644 --- a/devtools/create_project/create_project.cpp +++ b/devtools/create_project/create_project.cpp @@ -310,6 +310,17 @@ int main(int argc, char *argv[]) { cout << " " << i->description << '\n'; } + // Check if the keymapper and the event recorder are enabled simultaneously + bool keymapperEnabled = false; + for (FeatureList::const_iterator i = setup.features.begin(); i != setup.features.end(); ++i) { + if (i->enable && !strcmp(i->name, "keymapper")) + keymapperEnabled = true; + if (i->enable && !strcmp(i->name, "eventrecorder") && keymapperEnabled) { + std::cerr << "ERROR: The keymapper and the event recorder cannot be enabled simultaneously currently, please disable one of the two\n"; + return -1; + } + } + // Setup defines and libraries setup.defines = getEngineDefines(setup.engines); setup.libraries = getFeatureLibraries(setup.features); |