-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
65 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace Cavern.Format.Common { | ||
/// <summary> | ||
/// Settings related to the entirety of the Cavern.Format library. | ||
/// </summary> | ||
public static class CavernFormatGlobal { | ||
/// <summary> | ||
/// Disables checks for conditions that don't inherently break operation, but are mandated by standards. | ||
/// </summary> | ||
public static bool Unsafe { get; set; } | ||
} | ||
} |
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
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
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
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
27 changes: 10 additions & 17 deletions
27
CavernSamples/CavernizeGUI/CommandLine/HiddenCommands/OverrideBedCommand.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
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
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
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
20 changes: 20 additions & 0 deletions
20
CavernSamples/CavernizeGUI/CommandLine/HiddenCommands/UnsafeCommand.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,20 @@ | ||
using Cavern.Format.Common; | ||
|
||
namespace CavernizeGUI.CommandLine.HiddenCommands { | ||
/// <summary> | ||
/// Disables checks for conditions that don't inherently break operation, but are mandated by standards. | ||
/// </summary> | ||
internal class UnsafeCommand : HiddenCommand { | ||
/// <inheritdoc/> | ||
public override string Name => "--unsafe"; | ||
|
||
/// <inheritdoc/> | ||
public override int Parameters => 0; | ||
|
||
/// <inheritdoc/> | ||
public override string Help => "Disables checks for conditions that are mandated by standards but might don't break decoding."; | ||
|
||
/// <inheritdoc/> | ||
public override void Execute(string[] args, int offset, MainWindow app) => CavernFormatGlobal.Unsafe = true; | ||
} | ||
} |
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
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