Skip to content

Commit 0b053a5

Browse files
committed
Adding a supressing mechanism for the future experimental features.
1 parent 0dae90f commit 0b053a5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Source/ModuleManager/ModuleManager.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ public class ModuleManager : MonoBehaviour
3535
public static bool dumpPostPatch = false;
3636
public static bool DontCopyLogs { get; private set; } = false;
3737

38+
[Obsolete("This attribute is not Standard MM. Do not use it on things to be published on Forum")]
39+
public static bool IsExperimentalActive { get; private set; } = false;
40+
3841
[Obsolete("This attribute is not Standard MM. Do not use it on things to be published on Forum")]
3942
public static bool IsLoadedFromCache { get; internal set; }
4043

@@ -158,6 +161,11 @@ internal void Awake()
158161
DontCopyLogs = Environment.GetCommandLineArgs().Contains("-mm-dont-copy-logs");
159162
IgnoreCache = Environment.GetCommandLineArgs().Contains("-ignore-cache");
160163

164+
#pragma warning disable CS0618 // Type or member is obsolete
165+
// To supress features non Stock.
166+
IsExperimentalActive = Environment.GetCommandLineArgs().Contains("-mm-experimental");
167+
#pragma warning restore CS0618 // Type or member is obsolete
168+
161169
loadedInScene = true;
162170
}
163171

0 commit comments

Comments
 (0)