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