Skip to content

Commit

Permalink
Try to fix for dotnet4.5 of not being able to build
Browse files Browse the repository at this point in the history
  • Loading branch information
R-YaTian committed Aug 1, 2024
1 parent b5f1a84 commit 0205c32
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
72 changes: 36 additions & 36 deletions Tinke/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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<Error> obj)
Expand Down
2 changes: 1 addition & 1 deletion Tinke/Properties/Settings.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0205c32

Please sign in to comment.