Browse Source

allow onInit hook

Nicolas Cannasse 2 months ago
parent
commit
c8b988e1a9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hxd/fmt/pak/Build.hx

+ 3 - 0
hxd/fmt/pak/Build.hx

@@ -149,6 +149,8 @@ class Build {
 		writeRec(pak.root);
 		return out;
 	}
+	
+	public static dynamic function onInit( b : Build ) {}
 
 	function makePak() {
 
@@ -157,6 +159,7 @@ class Build {
 
 		fs = new hxd.fs.LocalFileSystem(resPath, configuration);
 		fs.convert.onConvert = function(c) Sys.println("\tConverting " + c.srcPath);
+		onInit(this);
 
 		var pak = new Data();
 		out = { bytes : [], size : 0 };