Skip to content

Commit

Permalink
AnimateLibraryExporter: fix wrong case used for package directory nam…
Browse files Browse the repository at this point in the history
…es when generating classes (closes #31)

Co-authored-by: barisyild <[email protected]>
  • Loading branch information
joshtynjala and barisyild committed Jul 8, 2024
1 parent a8a7fa8 commit 8f4875f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/swf/exporters/AnimateLibraryExporter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1167,6 +1167,7 @@ class AnimateLibraryExporter
if (templateData != null && Reflect.hasField(symbol, "className") && symbol.className != null)
{
var className:String = symbol.className;
className = SymbolUtils.formatClassName(className, prefix);
var hidden = false;

var name = className;
Expand All @@ -1185,8 +1186,6 @@ class AnimateLibraryExporter
name = className.substr(lastIndexOfPeriod + 1);
}

name = SymbolUtils.formatClassName(name, prefix);

// TODO: Is this right? Is this hard-coded in Flash Player for internal classes?
if (packageName == "privatePkg") continue;

Expand Down Expand Up @@ -1289,7 +1288,7 @@ class AnimateLibraryExporter

var template = new Template(templateData);

var templateFile = new Asset("", Path.combine(Path.combine(targetPath, Path.directory(symbol.className.split(".").join("/"))), name + ".hx"),
var templateFile = new Asset("", Path.combine(Path.combine(targetPath, Path.directory(className.split(".").join("/"))), name + ".hx"),
cast AssetType.TEMPLATE);
templateFile.embed = false;
templateFile.data = template.execute(context);
Expand Down

0 comments on commit 8f4875f

Please sign in to comment.