浏览代码

another haxe4 fix

Nicolas Cannasse 6 年之前
父节点
当前提交
c1de44a98a
共有 1 个文件被更改,包括 2 次插入1 次删除
  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 {