Build 0.18.4.0
This commit is contained in:
@@ -18,6 +18,23 @@ namespace Barotrauma.IO
|
||||
".bat", ".sh", //shell scripts
|
||||
}.ToIdentifiers().ToImmutableArray();
|
||||
|
||||
public ref struct Skipper
|
||||
{
|
||||
public void Dispose()
|
||||
{
|
||||
SkipValidationInDebugBuilds = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Skips validation for as long as the returned object remains in scope (remember to use using)
|
||||
/// </summary>
|
||||
public static Skipper SkipInDebugBuilds()
|
||||
{
|
||||
SkipValidationInDebugBuilds = true;
|
||||
return new Skipper();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// When set to true, the game is allowed to modify the vanilla content in debug builds. Has no effect in non-debug builds.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user