mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-23 01:05:47 +00:00
misc: chore: Simplify Updater version parsing.
This commit is contained in:
parent
966ca60847
commit
71646c3757
1 changed files with 2 additions and 13 deletions
|
@ -74,14 +74,7 @@ namespace Ryujinx.Ava
|
||||||
_platformExt = $"linux_{arch}.tar.gz";
|
_platformExt = $"linux_{arch}.tar.gz";
|
||||||
}
|
}
|
||||||
|
|
||||||
Version newVersion;
|
if (!Version.TryParse(Program.Version, out Version currentVersion))
|
||||||
Version currentVersion;
|
|
||||||
|
|
||||||
try
|
|
||||||
{
|
|
||||||
currentVersion = Version.Parse(Program.Version);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
{
|
||||||
Logger.Error?.Print(LogClass.Application, $"Failed to convert the current {App.FullAppName} version!");
|
Logger.Error?.Print(LogClass.Application, $"Failed to convert the current {App.FullAppName} version!");
|
||||||
|
|
||||||
|
@ -164,11 +157,7 @@ namespace Ryujinx.Ava
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
if (!Version.TryParse(_buildVer, out Version newVersion))
|
||||||
{
|
|
||||||
newVersion = Version.Parse(_buildVer);
|
|
||||||
}
|
|
||||||
catch
|
|
||||||
{
|
{
|
||||||
Logger.Error?.Print(LogClass.Application, $"Failed to convert the received {App.FullAppName} version from GitHub!");
|
Logger.Error?.Print(LogClass.Application, $"Failed to convert the received {App.FullAppName} version from GitHub!");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue