diff --git a/Warframe Fixer/Warframe Fixer/Model/SteamFileManager.cs b/Warframe Fixer/Warframe Fixer/Model/SteamFileManager.cs index 08891b0..88ff6f8 100644 --- a/Warframe Fixer/Warframe Fixer/Model/SteamFileManager.cs +++ b/Warframe Fixer/Warframe Fixer/Model/SteamFileManager.cs @@ -42,9 +42,10 @@ public void FixFile(string steamId) { _fileModel.SteamId64 = steamId; var text = _fileModel.TransformText(); - //ShutdownSteamInstance(); - //System.IO.File.WriteAllText(_filePath, text); - //StartSteamInstance(); + ShutdownSteamInstance(); + Logger.Log("Patching Steam file at [" + _filePath + "]"); + System.IO.File.WriteAllText(_filePath, text); + StartSteamInstance(); } /// @@ -53,6 +54,7 @@ public void FixFile(string steamId) private void ShutdownSteamInstance() { var processes = Process.GetProcessesByName("Steam"); + Logger.Log("Shutting down any Steam running instances"); if (processes.Length > 0) { foreach (var process in processes) @@ -67,6 +69,7 @@ private void ShutdownSteamInstance() private void StartSteamInstance() { + Logger.Log("Trying to restart Steam client"); if (!string.IsNullOrEmpty(_steamExePath)) Process.Start(_steamExePath); } diff --git a/Warframe Fixer/Warframe Fixer/Model/SteamPatcher.cs b/Warframe Fixer/Warframe Fixer/Model/SteamPatcher.cs index 2e87d30..59cbdce 100644 --- a/Warframe Fixer/Warframe Fixer/Model/SteamPatcher.cs +++ b/Warframe Fixer/Warframe Fixer/Model/SteamPatcher.cs @@ -14,6 +14,7 @@ public class SteamPatcher : IPatcher public bool Patch() { + Logger.Log("Trying to fetch SteamID64 for user " + SteamId); Task.Run(() => FetchSteamId64()).Wait(); _fileManager.FixFile(SteamId64); return true; diff --git a/Warframe Fixer/Warframe Fixer/ViewModel/MainViewModel.cs b/Warframe Fixer/Warframe Fixer/ViewModel/MainViewModel.cs index 04ca266..e8871eb 100644 --- a/Warframe Fixer/Warframe Fixer/ViewModel/MainViewModel.cs +++ b/Warframe Fixer/Warframe Fixer/ViewModel/MainViewModel.cs @@ -76,7 +76,7 @@ public MainViewModel(IDataService dataService, IPatcher patcher) WelcomeTitle = item.Title; }); _patcher = patcher; - Logger.Log("Hello, Tenno."); + Logger.Log("Welcome, Tenno."); _cancelToken = _cancelTokenSource.Token; } diff --git a/Warframe Fixer/Warframe Fixer/Warframe Fixer.csproj b/Warframe Fixer/Warframe Fixer/Warframe Fixer.csproj index 539a4b7..7ce9108 100644 --- a/Warframe Fixer/Warframe Fixer/Warframe Fixer.csproj +++ b/Warframe Fixer/Warframe Fixer/Warframe Fixer.csproj @@ -14,6 +14,21 @@ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 true + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true AnyCPU @@ -140,6 +155,13 @@ SteamFileModel.cs + + + False + .NET Framework 3.5 SP1 + false + +