Sfoglia il codice sorgente

fixed when resourcePath defined + prevent cache issues

ncannasse 11 anni fa
parent
commit
8544c0cf12
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      hxd/res/DynamicText.hx

+ 2 - 1
hxd/res/DynamicText.hx

@@ -112,7 +112,8 @@ class DynamicText {
 
 	public static function build( file : String, ?withDict : Bool ) {
 		var path = FileTree.resolvePath();
-		var x = Xml.parse(sys.io.File.getContent("res/" + file));
+		var x = Xml.parse(sys.io.File.getContent(path + "/" + file));
+		Context.registerModuleDependency(Context.getLocalModule(), path + "/" + file);
 		var fields = Context.getBuildFields();
 		var pos = Context.currentPos();
 		var tdict = new Map();