mirror of
https://github.com/4sval/FModel.git
synced 2026-08-22 01:14:27 -05:00
uh
This commit is contained in:
@@ -92,7 +92,7 @@ public enum FGame
|
||||
Gameface,
|
||||
[Description("Sea of Thieves")]
|
||||
Athena,
|
||||
[Description("That Banned Panda")]
|
||||
[Description("Your Beloved ™ Panda")]
|
||||
PandaGame
|
||||
}
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ public class GameSelectorViewModel : ViewModel
|
||||
if (installationList.AppName.Equals(gameName, StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
var pak = Directory.GetDirectories(installationList.InstallLocation, "Paks*", SearchOption.AllDirectories);
|
||||
return new DetectedGame { GameName = installationList.AppName, GameDirectory = pak[0] };
|
||||
if (pak.Length > 0) return new DetectedGame { GameName = installationList.AppName, GameDirectory = pak[0] };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using System.Windows.Data;
|
||||
using FModel.Extensions;
|
||||
|
||||
namespace FModel.Views.Resources.Converters;
|
||||
|
||||
@@ -10,28 +11,29 @@ public class StringToGameConverter : IValueConverter
|
||||
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
{
|
||||
return value switch
|
||||
var ret = value switch
|
||||
{
|
||||
"Newt" => "Spellbreak",
|
||||
"Nebula" => "Days Gone",
|
||||
"Fortnite" => "Fortnite",
|
||||
"VALORANT" => "Valorant",
|
||||
"Pewee" => "Rogue Company",
|
||||
"Catnip" => "Borderlands 3",
|
||||
"AzaleaAlpha" => "The Cycle",
|
||||
"Snoek" => "State of Decay 2",
|
||||
"Rosemallow" => "The Outer Worlds",
|
||||
"WorldExplorersLive" => "Battle Breakers",
|
||||
"MinecraftDungeons" => "Minecraft Dungeons",
|
||||
"shoebill" => "Star Wars: Jedi Fallen Order",
|
||||
"a99769d95d8f400baad1f67ab5dfe508" => "Core",
|
||||
"711c5e95dc094ca58e5f16bd48e751d6" => "That Banned Panda",
|
||||
381210 => "Dead By Daylight",
|
||||
578080 => "PLAYERUNKNOWN'S BATTLEGROUNDS",
|
||||
677620 => "Splitgate",
|
||||
1172620 => "Sea of Thieves",
|
||||
_ => value,
|
||||
"Newt" => FGame.g3,
|
||||
"Nebula" => FGame.BendGame,
|
||||
"Fortnite" => FGame.FortniteGame,
|
||||
"VALORANT" => FGame.ShooterGame,
|
||||
"Pewee" => FGame.RogueCompany,
|
||||
"Catnip" => FGame.OakGame,
|
||||
"AzaleaAlpha" => FGame.Prospect,
|
||||
"Snoek" => FGame.StateOfDecay2,
|
||||
"Rosemallow" => FGame.Indiana,
|
||||
"WorldExplorersLive" => FGame.WorldExplorers,
|
||||
"MinecraftDungeons" => FGame.Dungeons,
|
||||
"shoebill" => FGame.SwGame,
|
||||
"a99769d95d8f400baad1f67ab5dfe508" => FGame.Platform,
|
||||
"711c5e95dc094ca58e5f16bd48e751d6" => FGame.PandaGame,
|
||||
381210 => FGame.DeadByDaylight,
|
||||
578080 => FGame.TslGame,
|
||||
677620 => FGame.PortalWars,
|
||||
1172620 => FGame.Athena,
|
||||
_ => FGame.Unknown
|
||||
};
|
||||
return ret == FGame.Unknown ? value : ret.GetDescription();
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
|
||||
Reference in New Issue
Block a user