git repos / blockattack-game

commit 2c0f404a

sago007 · 2016-02-01 17:47
2c0f404a3623e3e1c19da006ae6f17dbbfc4863e patch · browse files
parent ad0118c2a69a5c5053d3fbf37272c7e85461cb41

Removed the old theme parameter

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index fbbfc63..9180a2f 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -1789,7 +1789,6 @@ int main(int argc, char* argv[]) {
highPriority = false; //if true the game will take most resources, but increase framerate.
bFullscreen = false;
//Set default Config variables:
- Config::getInstance()->setDefault("themename","default");
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
@@ -1800,13 +1799,11 @@ int main(int argc, char* argv[]) {
const char priorityString[] = "-priority";
const char singlePuzzleString[] = "-SP";
const char noSoundAtAll[] = "-nosound";
- const char selectTheme[] = "-theme";
const char verbose[] = "-v";
if (strequals(argv[argumentNr],helpString)) {
cout << "Block Attack Help" << endl << helpString << " " << _("Displays this message") <<
endl << "-priority " << _("Starts game in high priority") << endl <<
- "-nosound " << _("No sound will be played at all, and sound hardware will not be loaded (use this if game crashes because of sound)") << endl <<
- "-theme <" << _("THEMENAME") << "> " << _("Changes to the theme <THEMENAME> on startup") << endl;
+ "-nosound " << _("No sound will be played at all, and sound hardware will not be loaded (use this if game crashes because of sound)") << endl;
#ifdef WIN32
system("Pause");
#endif
@@ -1835,13 +1832,6 @@ int main(int argc, char* argv[]) {
if (strequals(argv[argumentNr],noSoundAtAll)) {
NoSound = true;
}
- if (strequals(argv[argumentNr],selectTheme)) {
- argumentNr++; //Go to themename (the next argument)
- if (verboseLevel) {
- cout << "Theme set to \"" << argv[argumentNr] << '"' << endl;
- }
- Config::getInstance()->setString("themename",argv[argumentNr]);
- }
if (strequals(argv[argumentNr],verbose)) {
verboseLevel++;
}