mirror of
https://github.com/4sval/FModel.git
synced 2026-03-26 03:35:17 -05:00
eheh
This commit is contained in:
parent
4e6e5448e5
commit
bc276e171b
|
|
@ -16,6 +16,11 @@ public static class Helper
|
|||
internal readonly ulong UlongValue;
|
||||
}
|
||||
|
||||
public static bool IAmThePanda(string key)
|
||||
=> key.Length == 11 &&
|
||||
key.StartsWith("mu", StringComparison.OrdinalIgnoreCase) &&
|
||||
key.EndsWith("sus", StringComparison.OrdinalIgnoreCase);
|
||||
|
||||
public static void OpenWindow<T>(string windowName, Action action) where T : Window
|
||||
{
|
||||
if (!IsWindowOpen<T>(windowName))
|
||||
|
|
@ -84,4 +89,4 @@ public static class Helper
|
|||
var d = (Math.Abs(d1) + Math.Abs(d2) + 10) * 1.0e-15;
|
||||
return -d < n && d > n;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,8 @@ public class CUE4ParseViewModel : ViewModel
|
|||
}
|
||||
default:
|
||||
{
|
||||
Game = gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\").ToEnum(FGame.Unknown);
|
||||
var parent = gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\");
|
||||
Game = Helper.IAmThePanda(parent) ? FGame.PandaGame : parent.ToEnum(FGame.Unknown);
|
||||
var versions = new VersionContainer(UserSettings.Default.OverridedGame[Game], UserSettings.Default.OverridedPlatform,
|
||||
customVersions: UserSettings.Default.OverridedCustomVersions[Game],
|
||||
optionOverrides: UserSettings.Default.OverridedOptions[Game]);
|
||||
|
|
@ -275,11 +276,7 @@ public class CUE4ParseViewModel : ViewModel
|
|||
file.FileCount = vfs.FileCount;
|
||||
}
|
||||
|
||||
if (Provider.GameName.Length == 11 &&
|
||||
Provider.GameName.StartsWith("mu") &&
|
||||
Provider.GameName.EndsWith("sus"))
|
||||
Game = FGame.PandaGame;
|
||||
else Game = Provider.GameName.ToEnum(Game);
|
||||
Game = Helper.IAmThePanda(Provider.GameName) ? FGame.PandaGame : Provider.GameName.ToEnum(Game);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user