Set the core_id preferences item at game launch.
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.
This commit is contained in:
parent
c6e118f084
commit
632ce4aa44
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue