Skip to content

Commit

Permalink
Add notice about settings patch
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed Jul 13, 2023
1 parent 41cb912 commit f450aa2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/DayZLauncher.UnixPatcher/Program.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using DayZLauncher.UnixPatcher;
using DayZLauncher.UnixPatcher.Patches;

var gameVersion = "<1.21";
Common.WriteLine($"NOTICE: Latest known supported version: '{gameVersion}'", ConsoleColor.Yellow);
Common.WriteLine("NOTICE: This version will not enable settings saving, but mod installing should still work.", ConsoleColor.Yellow);
Common.WriteLine("Be sure to verify game files and delete compatdata for `221100` before continuing!", ConsoleColor.Red);

string? userInput;
if (args is null || args.Length < 1)
Expand Down Expand Up @@ -31,7 +31,7 @@
}

var backupAssembly = Common.MoveFileToBackup(targetAssembly);
Console.WriteLine("Applying workshop mod fix...");
Common.WriteLine("Applying workshop mods fix...");
try
{
var baseDirectory = Path.GetDirectoryName(AppContext.BaseDirectory + '/');
Expand Down Expand Up @@ -60,6 +60,9 @@
Common.WriteLine("Applying launcher settings fix...");
try
{
Common.WriteLine("TODO: Implement settings patch for 1.21", ConsoleColor.Red);
throw new NotImplementedException("Skipping settings patch for 1.21");

await LauncherConfigPatcher.PatchLauncherConfigFile(userInput);
LauncherConfigPatcher.RemoveOldUserConfig(userInput);
}
Expand Down

0 comments on commit f450aa2

Please sign in to comment.