Skip to content

Commit

Permalink
Set the core_id preferences item at game launch.
Browse files Browse the repository at this point in the history
The id of the used core is set and saved if given as a command line
interface.

This commit makes use of the new "core" command line option.
  • Loading branch information
Fabian Müller committed Nov 7, 2014
1 parent c6e118f commit 632ce4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game_launcher.cpp
Expand Up @@ -139,6 +139,9 @@ game_launcher::game_launcher(const commandline_options& cmdline_opts, const char
const std::string app_basename = filesystem::base_name(appname);
jump_to_editor_ = app_basename.find("editor") != std::string::npos;

if (cmdline_opts_.core_id) {
preferences::set_core_id(*cmdline_opts_.core_id);
}
if (cmdline_opts_.campaign) {
jump_to_campaign_.jump_ = true;
jump_to_campaign_.campaign_id_ = *cmdline_opts_.campaign;
Expand Down

0 comments on commit 632ce4a

Please sign in to comment.