Skip to content

Commit

Permalink
removed verbose mode - it's always on (#251)
Browse files Browse the repository at this point in the history
  • Loading branch information
amazingalek authored Jul 26, 2020
1 parent fe244c3 commit 1f51289
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion OWML.Common/IOwmlConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public interface IOwmlConfig
string DataPath { get; }
string OWMLPath { get; set; }
string ModsPath { get; }
bool Verbose { get; set; }
bool BlockInput { get; set; }
int SocketPort { get; set; }
}
Expand Down
1 change: 0 additions & 1 deletion OWML.Launcher/OWML.DefaultConfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"gamePath": "C:/Program Files/Epic Games/OuterWilds",
"verbose": true,
"combinationsBlockInput": false,
"socketPort": 0
}
5 changes: 0 additions & 5 deletions OWML.ModHelper.Menus/OwmlConfigMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ namespace OWML.ModHelper.Menus
public class OwmlConfigMenu : ModConfigMenuBase
{
private const string GamePathTitle = "Game path";
private const string VerboseModeTitle = "Verbose mode";
private const string BlockInputTitle = "Mod inputs can block game actions";

private readonly IOwmlConfig _config;
Expand All @@ -22,7 +21,6 @@ protected override void AddInputs()
{
var index = 2;
AddConfigInput(GamePathTitle, _config.GamePath, index++);
AddConfigInput(VerboseModeTitle, _config.Verbose, index++);
AddConfigInput(BlockInputTitle, _config.BlockInput, index++);
UpdateNavigation();
SelectFirst();
Expand All @@ -31,14 +29,12 @@ protected override void AddInputs()
protected override void UpdateUIValues()
{
GetTextInput(GamePathTitle).Value = _config.GamePath;
GetToggleInput(VerboseModeTitle).Value = _config.Verbose;
GetToggleInput(BlockInputTitle).Value = _config.BlockInput;
}

protected override void OnSave()
{
_config.GamePath = (string)GetInputValue(GamePathTitle);
_config.Verbose = (bool)GetInputValue(VerboseModeTitle);
_config.BlockInput = (bool)GetInputValue(BlockInputTitle);
Storage.Save(_config, Constants.OwmlConfigFileName);
Close();
Expand All @@ -47,7 +43,6 @@ protected override void OnSave()
protected override void OnReset()
{
_config.GamePath = _defaultConfig.GamePath;
_config.Verbose = _defaultConfig.Verbose;
_config.BlockInput = _defaultConfig.BlockInput;
UpdateUIValues();
}
Expand Down
3 changes: 1 addition & 2 deletions OWML.ModHelper/Logging/ModSocketOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ public ModSocketOutput(IOwmlConfig config, IModLogger logger, IModManifest manif
ConnectToSocket();
}

if (config.Verbose && manifest.Name == "OWML")
if (manifest.Name == "OWML")
{
WriteLine("Verbose mode is enabled", MessageType.Info);
Application.logMessageReceived += OnLogMessageReceived;
}
}
Expand Down
3 changes: 0 additions & 3 deletions OWML.ModHelper/OwmlConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ public class OwmlConfig : IOwmlConfig
[JsonProperty("gamePath")]
public string GamePath { get; set; }

[JsonProperty("verbose")]
public bool Verbose { get; set; }

[JsonProperty("combinationsBlockInput")]
public bool BlockInput { get; set; }

Expand Down
1 change: 0 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ OWML is configured by OWML.Config.json:
|Key|Description|
|---|-----------|
|gamePath|The path to the game files. OWML will try to locate the game automatically.|
|verbose|If this is true, errors from all of the game will be displayed and logged.|
|combinationsBlockInput|If this is true, mod input combinations will block game input.|

Each mod is defined in a manifest.json file:
Expand Down

0 comments on commit 1f51289

Please sign in to comment.