about summary refs log tree commit diff
path: root/pkgs/games/build-support/monogame-patcher/src/options.cs
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2018-07-18 11:47:03 +0200
committeraszlig <aszlig@nix.build>2018-07-19 06:35:24 +0200
commitec65da1fbc93bd4fcdbdf20cb41c085ece53473c (patch)
treec73242ef0680067486de97f5ddca30fdd06bcc16 /pkgs/games/build-support/monogame-patcher/src/options.cs
parentbe80103bd659e922569deb9c52982a8c081fb698 (diff)
monogame-patcher: Allow specifying extra assembly
If we want to replace a call with one that's not in a module which is
currently referenced by the target file we now have another command line
flag for replace-call (-a) where we can specify the additional DLL file.

Signed-off-by: aszlig <aszlig@nix.build>
Diffstat (limited to 'pkgs/games/build-support/monogame-patcher/src/options.cs')
-rw-r--r--pkgs/games/build-support/monogame-patcher/src/options.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/games/build-support/monogame-patcher/src/options.cs b/pkgs/games/build-support/monogame-patcher/src/options.cs
index 32a8403e..73add8d6 100644
--- a/pkgs/games/build-support/monogame-patcher/src/options.cs
+++ b/pkgs/games/build-support/monogame-patcher/src/options.cs
@@ -27,4 +27,8 @@ class ReplaceCallCmd : GenericOptions {
 
     [Value(2, Required=true, MetaName = "type", HelpText = "Types to patch.")]
     public IEnumerable<string> typesToPatch { get; set; }
+
+    [Option('a', "assembly",
+            HelpText="Look up replacement from the specified assembly.")]
+    public string assemblyFile { get; set; }
 };