From dceb596be33c05d9b6feb7c0cf3f776706b5fcdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Sun, 13 Oct 2024 13:51:18 +0200 Subject: [PATCH 1/2] Fixed UWP games not launching --- Gavilya/Helpers/GameLauncherHelper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gavilya/Helpers/GameLauncherHelper.cs b/Gavilya/Helpers/GameLauncherHelper.cs index f49db17..9975422 100644 --- a/Gavilya/Helpers/GameLauncherHelper.cs +++ b/Gavilya/Helpers/GameLauncherHelper.cs @@ -79,6 +79,7 @@ public bool Launch() // Check location if the game is a Win32 app if (_game.GameType == GameType.Win32 && !File.Exists(_game.Command)) return false; // Abort if (_game.GameType == GameType.Steam && !CanLaunchSteamGame(_game)) return false; + if (_game.GameType == GameType.UWP && _game.Command.Split("!").Length < 2) return false; _game.LastTimePlayed = Sys.UnixTime; OnGameUpdatedEvent?.Invoke(this, new(_game)); @@ -87,6 +88,7 @@ public bool Launch() if (_game.GameType == GameType.Steam) Process.Start("cmd", "/c start " + _game.Command); if (_game.GameType == GameType.Win32) Process.Start(_game.Command); + if (_game.GameType == GameType.UWP) Process.Start("explorer.exe", _game.Command); _dispatcherTimer.Start(); From e2682bc32c3f4f1623012e857b662aec1af25968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Peyronnet?= Date: Sun, 13 Oct 2024 13:55:09 +0200 Subject: [PATCH 2/2] Version 4.5.2.2410 --- Gavilya/Gavilya.csproj | 2 +- Gavilya/Helpers/Context.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gavilya/Gavilya.csproj b/Gavilya/Gavilya.csproj index 2342811..f977f76 100644 --- a/Gavilya/Gavilya.csproj +++ b/Gavilya/Gavilya.csproj @@ -8,7 +8,7 @@ True app.manifest Gavilya - 4.5.1.2409 + 4.5.2.2410 Léo Corporation Gavilya is a simple game launcher for Windows. © 2024 diff --git a/Gavilya/Helpers/Context.cs b/Gavilya/Helpers/Context.cs index 70f8c0a..d375ffb 100644 --- a/Gavilya/Helpers/Context.cs +++ b/Gavilya/Helpers/Context.cs @@ -25,6 +25,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE namespace Gavilya.Helpers; public static class Context { - public static string Version => "4.5.1.2409"; + public static string Version => "4.5.2.2410"; public static string LastVersionLink => "https://raw.githubusercontent.com/Leo-Corporation/LeoCorp-Docs/master/Liens/Update%20System/Gavilya/Version.txt"; }