-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from Settlers4Modding/feature/s4-configuration
Added S4 Config open button
- Loading branch information
Showing
9 changed files
with
161 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/CommunityPatchLauncher/Commands/Os/StartSettlersConfigCommand.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using CommunityPatchLauncherFramework.Settings.Manager; | ||
|
||
namespace CommunityPatchLauncher.Commands.Os | ||
{ | ||
/// <summary> | ||
/// starts the settlers 4 he configuration file | ||
/// </summary> | ||
class StartSettlersConfigCommand : StartProgramCommand | ||
{ | ||
/// <summary> | ||
/// The settings manager to use | ||
/// </summary> | ||
private SettingManager settingManager; | ||
|
||
/// <summary> | ||
/// Starts the settlers 4 he configuration file | ||
/// </summary> | ||
/// <param name="settingManager"></param> | ||
public StartSettlersConfigCommand(SettingManager settingManager) | ||
{ | ||
string gameFolder = settingManager.GetValue<string>("GameFolder"); | ||
string configPath = gameFolder + Properties.Settings.Default.ConfigBaseFolder + "Settlers4Config.exe"; | ||
|
||
this.settingManager = settingManager; | ||
programPath = configPath; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.