public void EnableTweak() { AppSettings.DisableFog = true; var proc = ProcessManager.GetGameProcess(); if (proc != null) { FogRemover.DisableFog(proc); } }
private async Task RemoveFogLoop(Task task, Process ssProc) { while (!task.IsCompleted) { if (!AppSettings.DisableFog || FogRemover.DisableFog(ssProc)) { return; } await Task.Delay(1000); } }