Explorar o código

fixed when resourcePath defined + prevent cache issues

ncannasse %!s(int64=11) %!d(string=hai) anos
pai
achega
8544c0cf12
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 ) {
 	public static function build( file : String, ?withDict : Bool ) {
 		var path = FileTree.resolvePath();
 		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 fields = Context.getBuildFields();
 		var pos = Context.currentPos();
 		var pos = Context.currentPos();
 		var tdict = new Map();
 		var tdict = new Map();