Skip to content

Commit 590b568

Browse files
committed
move some testing changes to debug only so they don't affect beta
1 parent ef3c4b7 commit 590b568

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

MassEffectModManagerCore/App.xaml.cs

+5-2
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,14 @@ public static Visibility DebugOnlyVisibility
8383
public static bool SingleInstanceExit = false;
8484

8585
/// <summary>
86-
/// The highest version of ModDesc that this version of Mod Manager can support.
86+
/// The highest version of ModDesc that this version of Mod Manager can support. The maximum precision allowed is tenths, the rest will be truncated.
8787
/// </summary>
88+
#if DEBUG
89+
public const double HighestSupportedModDesc = 9.1;
90+
#else
8891
public const double HighestSupportedModDesc = 9.0;
92+
#endif
8993

90-
//Windows 10 1909
9194
public static readonly Version MIN_SUPPORTED_OS = new Version(@"10.0.19045"); // Windows 10 22H2
9295

9396
internal static readonly string[] SupportedOperatingSystemVersions =

MassEffectModManagerCore/modmanager/objects/alternates/AlternateDLC.cs

+7-1
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,14 @@ public AlternateDLC(Mod mod, string friendlyName, AltDLCCondition condition, Alt
8888

8989
public AlternateDLC(string alternateDLCText, Mod modForValidating, ModJob job)
9090
{
91+
#if !DEBUG
9192
var properties = StringStructParser.GetCommaSplitValues(alternateDLCText);
92-
93+
#else
94+
// 08/01/2024 - ModDesc 9.1 (Mod Manager 9.0.1's parser) uses the new method that better handles value splitting
95+
var properties = modForValidating.ModDescTargetVersion >= 9.1 ?
96+
StringStructParser.GetSplitMapValues(alternateDLCText, false, '(', ')', '[', ']')
97+
: StringStructParser.GetCommaSplitValues(alternateDLCText);
98+
#endif
9399
//todo: if statements to check these.
94100
if (properties.TryGetValue(AlternateKeys.ALTSHARED_KEY_FRIENDLYNAME, out string friendlyName))
95101
{

0 commit comments

Comments
 (0)