From 792af7a6165a28f817fc3a5c0df81d7b5fb33134 Mon Sep 17 00:00:00 2001 From: Ashley Date: Thu, 6 Feb 2020 14:35:59 -0500 Subject: [PATCH] Writing version comparison logic --- Ryujinx.Updater/Program.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Ryujinx.Updater/Program.cs b/Ryujinx.Updater/Program.cs index a2d500dddc..b39d2a14d3 100644 --- a/Ryujinx.Updater/Program.cs +++ b/Ryujinx.Updater/Program.cs @@ -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]);