Skip to content

Commit

Permalink
Style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed May 4, 2024
1 parent bcd8807 commit a6dbb40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/DayZLauncher.UnixPatcher/Patches/UtilsAssemblyPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ public static AssemblyDefinition PatchAssembly(string sourcePath, string payload

var targetJunctionsTypeDef = targetDef.MainModule.GetType("Utils.IO.Junctions");

PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "Create", new List<OpCode> { OpCodes.Ldarg_0, OpCodes.Ldarg_1, OpCodes.Ldarg_2 });
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "Delete", new List<OpCode> { OpCodes.Ldarg_0 });
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "Exists", new List<OpCode> { OpCodes.Ldarg_0 });
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "GetTarget", new List<OpCode> { OpCodes.Ldarg_0 });
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "Create", [OpCodes.Ldarg_0, OpCodes.Ldarg_1, OpCodes.Ldarg_2]);
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "Delete", [OpCodes.Ldarg_0]);
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "Exists", [OpCodes.Ldarg_0]);
PatchJunctionsMethod(unixJunctionsTypeDef, targetDef, targetJunctionsTypeDef, "GetTarget", [OpCodes.Ldarg_0]);

return targetDef;
}
Expand Down
2 changes: 1 addition & 1 deletion src/DayZLauncher.UnixPatcher/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
string? userInput;
if (gameFound)
{
Common.WriteLine($"Found DayZ installation at '{gameSystemPath}'");
Common.WriteLine($"Found DayZ installation at '{gameSystemPath}'", ConsoleColor.DarkGreen);
userInput = gameSystemPath;
}
else if (args is null || args.Length < 1)
Expand Down

0 comments on commit a6dbb40

Please sign in to comment.