Skip to content

Commit

Permalink
feat: allow generating uicontrols for gfx files
Browse files Browse the repository at this point in the history
  • Loading branch information
Notexe committed Feb 9, 2024
1 parent ee5bfaf commit 1555a9f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion G2GFxDataTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ static void Main(string[] args)
{
foreach (var file in Directory.GetFiles(options.inputPath))
{
string ext = Path.GetExtension(file);
string ext = Path.GetExtension(file).ToLower();
if (ext == ".swf")
{
ScaleformGFxWriter.WriteScaleformGfX(file, options.outputPath, options.gfxexportPath, options.verbose);
UIControlWriter.WriteUIControl(file, options.outputPath, options.verbose);
}
if (ext == ".gfx")
{
UIControlWriter.WriteUIControl(file, options.outputPath, options.verbose);
}
}
}
else
Expand All @@ -46,6 +50,10 @@ static void Main(string[] args)
ScaleformGFxWriter.WriteScaleformGfX(options.inputPath, options.outputPath, options.gfxexportPath, options.verbose);
UIControlWriter.WriteUIControl(options.inputPath, options.outputPath, options.verbose);
}
if (ext == ".gfx")
{
UIControlWriter.WriteUIControl(options.inputPath, options.outputPath, options.verbose);
}
}
}

Expand Down

0 comments on commit 1555a9f

Please sign in to comment.