Skip to content

Commit

Permalink
Allow disabling of *Registration address prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Byass committed Jan 22, 2021
1 parent a15cece commit d290cea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cpp2IL/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ internal class Options

[Option("skip-metadata-txts", Required = false, HelpText = "Skip the generation of [classname]_metadata.txt files.")]
public bool SkipMetadataTextFiles { get; set; }

[Option("disable-registration-prompts", Required = false, HelpText = "Disable the prompt if Code or Metadata Registration function addresses cannot be located.")]
public bool DisableRegistrationPrompts { get; set; }
}

private static readonly string[] BlacklistedExecutableFilenames =
Expand Down Expand Up @@ -151,7 +154,7 @@ public static int Main(string[] args)

#endregion

LibCpp2IlMain.Settings.AllowManualMetadataAndCodeRegInput = true;
LibCpp2IlMain.Settings.AllowManualMetadataAndCodeRegInput = !CommandLineOptions.DisableRegistrationPrompts;

if (!LibCpp2IlMain.LoadFromFile(assemblyPath, metadataPath, unityVerUseful))
{
Expand Down

0 comments on commit d290cea

Please sign in to comment.