소스 검색

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 {