dead game nobody cares

This commit is contained in:
4sval 2023-05-16 23:40:23 +02:00
parent d774fb7664
commit ce4d96bd4a
7 changed files with 16 additions and 19 deletions

@ -1 +1 @@
Subproject commit 215f3dbe910992d65011676e47e395dd9bd189df
Subproject commit a245c88cc360237848c6c1f1b71d514853b57dd6

View File

@ -201,7 +201,7 @@ public class Typefaces
Description = OnTheFly(_SPELLBREAK_BASE_PATH + _MONTSERRAT_SEMIBOLD + _EXT);
break;
}
case FGame.PandaGame:
case FGame.MultiVersus:
{
DisplayName = OnTheFly(_PANDAGAME_BASE_PATH + language switch
{

View File

@ -92,8 +92,10 @@ public enum FGame
Gameface,
[Description("Sea of Thieves")]
Athena,
[Description("Your Beloved ™ Panda")]
[Description("DEPRECATED")]
PandaGame,
[Description("MultiVersus")]
MultiVersus,
[Description("Tower of Fantasy")]
Hotta,
[Description("eFootball 2023")]

View File

@ -16,11 +16,6 @@ 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 string FixKey(string key)
{
if (string.IsNullOrEmpty(key))

View File

@ -271,7 +271,7 @@ namespace FModel.Settings
{FGame.PortalWars, Constants._NO_PRESET_TRIGGER},
{FGame.Gameface, Constants._NO_PRESET_TRIGGER},
{FGame.Athena, Constants._NO_PRESET_TRIGGER},
{FGame.PandaGame, Constants._NO_PRESET_TRIGGER},
{FGame.MultiVersus, Constants._NO_PRESET_TRIGGER},
{FGame.Hotta, Constants._NO_PRESET_TRIGGER},
{FGame.eFootball, Constants._NO_PRESET_TRIGGER}
};
@ -302,7 +302,7 @@ namespace FModel.Settings
{FGame.PortalWars, EGame.GAME_UE4_27},
{FGame.Gameface, EGame.GAME_GTATheTrilogyDefinitiveEdition},
{FGame.Athena, EGame.GAME_SeaOfThieves},
{FGame.PandaGame, EGame.GAME_UE4_26},
{FGame.MultiVersus, EGame.GAME_UE4_26},
{FGame.Hotta, EGame.GAME_TowerOfFantasy},
{FGame.eFootball, EGame.GAME_UE4_26}
};
@ -333,7 +333,7 @@ namespace FModel.Settings
{FGame.PortalWars, null},
{FGame.Gameface, null},
{FGame.Athena, null},
{FGame.PandaGame, null},
{FGame.MultiVersus, null},
{FGame.Hotta, null},
{FGame.eFootball, null}
};
@ -364,7 +364,7 @@ namespace FModel.Settings
{FGame.PortalWars, null},
{FGame.Gameface, null},
{FGame.Athena, null},
{FGame.PandaGame, null},
{FGame.MultiVersus, null},
{FGame.Hotta, null},
{FGame.eFootball, null}
};
@ -390,7 +390,7 @@ namespace FModel.Settings
{FGame.PortalWars, null},
{FGame.Gameface, null},
{FGame.Athena, null},
{FGame.PandaGame, null},
{FGame.MultiVersus, null},
{FGame.Hotta, null},
{FGame.eFootball, null}
};
@ -433,7 +433,7 @@ namespace FModel.Settings
{FGame.PortalWars, new FEndpoint[]{new (), new ()}},
{FGame.Gameface, new FEndpoint[]{new (), new ()}},
{FGame.Athena, new FEndpoint[]{new (), new ()}},
{FGame.PandaGame, new FEndpoint[]{new (), new ()}},
{FGame.MultiVersus, new FEndpoint[]{new (), new ()}},
{FGame.Hotta, new FEndpoint[]{new (), new ()}},
{FGame.eFootball, new FEndpoint[]{new (), new ()}}
};
@ -511,7 +511,7 @@ namespace FModel.Settings
{FGame.PortalWars, new List<CustomDirectory>()},
{FGame.Gameface, new List<CustomDirectory>()},
{FGame.Athena, new List<CustomDirectory>()},
{FGame.PandaGame, new List<CustomDirectory>()},
{FGame.MultiVersus, new List<CustomDirectory>()},
{FGame.Hotta, new List<CustomDirectory>()},
{FGame.eFootball, new List<CustomDirectory>()}
};

View File

@ -150,7 +150,7 @@ public class CUE4ParseViewModel : ViewModel
{
var parent = gameDirectory.SubstringBeforeLast("\\Content").SubstringAfterLast("\\");
if (gameDirectory.Contains("eFootball")) parent = gameDirectory.SubstringBeforeLast("\\pak").SubstringAfterLast("\\");
Game = Helper.IAmThePanda(parent) ? FGame.PandaGame : parent.ToEnum(FGame.Unknown);
Game = 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],
@ -335,7 +335,7 @@ public class CUE4ParseViewModel : ViewModel
file.FileCount = vfs.FileCount;
}
Game = Helper.IAmThePanda(Provider.GameName) ? FGame.PandaGame : Provider.GameName.ToEnum(Game);
Game = Provider.GameName.ToEnum(Game);
}
public void ClearProvider()
@ -345,7 +345,7 @@ public class CUE4ParseViewModel : ViewModel
AssetsFolder.Folders.Clear();
SearchVm.SearchResults.Clear();
Helper.CloseWindow<AdonisWindow>("Search View");
Provider.UnloadAllVfs();
Provider.UnloadNonStreamedVfs();
GC.Collect();
}

View File

@ -26,7 +26,7 @@ public class StringToGameConverter : IValueConverter
"MinecraftDungeons" => FGame.Dungeons,
"shoebill" => FGame.SwGame,
"a99769d95d8f400baad1f67ab5dfe508" => FGame.Platform,
"711c5e95dc094ca58e5f16bd48e751d6" => FGame.PandaGame,
"711c5e95dc094ca58e5f16bd48e751d6" => FGame.MultiVersus,
"9361c8c6d2f34b42b5f2f61093eedf48" => FGame.TslGame,
381210 => FGame.DeadByDaylight,
578080 => FGame.TslGame,