From 0205c320eeb8a469358ce07c70c9650d4bd640fc Mon Sep 17 00:00:00 2001 From: fangrong Date: Thu, 1 Aug 2024 18:34:28 +0800 Subject: [PATCH] Try to fix for dotnet4.5 of not being able to build --- Tinke/Program.cs | 72 +++++++++++++-------------- Tinke/Properties/Settings.Designer.cs | 2 +- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/Tinke/Program.cs b/Tinke/Program.cs index bb2a5a25..328f2273 100644 --- a/Tinke/Program.cs +++ b/Tinke/Program.cs @@ -155,6 +155,42 @@ static void Main(string[] args) Application.Run(new Sistema()); } + //process ExtractOptions + private static void RunExtract(ExtractOptions opts) + { + extractFilePath = opts.FilePath; + extractOutputPath = opts.OutputPath; + curCommand = 1; + } + + //process ReplaceOptions + private static void RunReplace(ReplaceOptions opts) + { + replaceResPath = opts.ResPath; + replaceInputFile = opts.FilePath; + replaceOutputFile = opts.OutputFile; + safeTrim = opts.SafeTrim; + keepSig = opts.KeepSig; + recompressA9 = opts.Recompress; + blzcueA9 = opts.BlzCue; + curCommand = 2; + } + + //process OpenOptions + private static void RunOpen(OpenOptions opts) + { + if (Environment.GetCommandLineArgs().Length <= 2) + { + bOpenDefault = true; + curCommand = -1; + return; + } + else + curCommand = 3; + tblRoms = opts.Props.ToList(); + bIsFolder = opts.IsFolder; + } + private static void HandleArgs(object obj) { switch (obj) @@ -169,42 +205,6 @@ private static void HandleArgs(object obj) RunOpen(o); break; } - - //process ExtractOptions - void RunExtract(ExtractOptions opts) - { - extractFilePath = opts.FilePath; - extractOutputPath = opts.OutputPath; - curCommand = 1; - } - - //process ReplaceOptions - void RunReplace(ReplaceOptions opts) - { - replaceResPath = opts.ResPath; - replaceInputFile = opts.FilePath; - replaceOutputFile = opts.OutputFile; - safeTrim = opts.SafeTrim; - keepSig = opts.KeepSig; - recompressA9 = opts.Recompress; - blzcueA9 = opts.BlzCue; - curCommand = 2; - } - - //process OpenOptions - void RunOpen(OpenOptions opts) - { - if (Environment.GetCommandLineArgs().Length <= 2) - { - bOpenDefault = true; - curCommand = -1; - return; - } - else - curCommand = 3; - tblRoms = opts.Props.ToList(); - bIsFolder = opts.IsFolder; - } } private static void HandleErrors(IEnumerable obj) diff --git a/Tinke/Properties/Settings.Designer.cs b/Tinke/Properties/Settings.Designer.cs index e9ca55c1..1c54c6bf 100644 --- a/Tinke/Properties/Settings.Designer.cs +++ b/Tinke/Properties/Settings.Designer.cs @@ -12,7 +12,7 @@ namespace Tinke.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.2.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.10.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));