Try to fix for dotnet4.5 of not being able to build

This commit is contained in:
fangrong 2024-08-01 18:34:28 +08:00
parent b5f1a84ce3
commit 0205c320ee
2 changed files with 37 additions and 37 deletions

View File

@ -155,6 +155,42 @@ namespace Tinke
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 @@ namespace Tinke
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<Error> obj)

View File

@ -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())));