Writing version comparison logic
This commit is contained in:
parent
285b72c96f
commit
792af7a616
1 changed files with 2 additions and 6 deletions
|
@ -56,12 +56,8 @@ namespace Ryujinx.Updater
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!File.Exists(Path.Combine(localAppPath, "Version.json")))
|
//Write version comparison logic here
|
||||||
{
|
|
||||||
File.Create(Path.Combine(localAppPath, "Version.json")).Close();
|
|
||||||
File.WriteAllText(Path.Combine(localAppPath, "Version.json"), "Unknown Version");
|
|
||||||
}
|
|
||||||
|
|
||||||
Console.WriteLine($"Updating Ryujinx... | {File.ReadAllText(Path.Combine(localAppPath, "Version.json"))} -> {args[1]}");
|
Console.WriteLine($"Updating Ryujinx... | {File.ReadAllText(Path.Combine(localAppPath, "Version.json"))} -> {args[1]}");
|
||||||
|
|
||||||
File.WriteAllText(Path.Combine(localAppPath, "Version.json"), args[1]);
|
File.WriteAllText(Path.Combine(localAppPath, "Version.json"), args[1]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue