Browse Source

another haxe4 fix

Nicolas Cannasse 6 years ago
parent
commit
c1de44a98a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hxd/res/FileTree.hx

+ 2 - 1
hxd/res/FileTree.hx

@@ -341,7 +341,8 @@ class FileTree {
 		dict.set("loader", "reserved identifier");
 		buildFieldsRec(d, ofields, dict);
 
-		var name = "_" + makeIdent(d.relPath);
+		var name = makeIdent(d.relPath);
+		name = "_" + name.charAt(0).toUpperCase() + name.substr(1);
 		for( f in ofields )
 			f.access.remove(AStatic);
 		var def = macro class {