Skip to content

Commit

Permalink
Merge pull request #471 from Leo-Corporation/vNext
Browse files Browse the repository at this point in the history
Version 4.5.2.2410
  • Loading branch information
lpeyr authored Oct 13, 2024
2 parents 2c9a4fc + e2682bc commit 4654420
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Gavilya/Gavilya.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Title>Gavilya</Title>
<Version>4.5.1.2409</Version>
<Version>4.5.2.2410</Version>
<Authors>Léo Corporation</Authors>
<Description>Gavilya is a simple game launcher for Windows.</Description>
<Copyright>© 2024</Copyright>
Expand Down
2 changes: 1 addition & 1 deletion Gavilya/Helpers/Context.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
2 changes: 2 additions & 0 deletions Gavilya/Helpers/GameLauncherHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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();

Expand Down

0 comments on commit 4654420

Please sign in to comment.