Browse Source

ContextShared.hx savePrefabDat not implemented on js.

clementlandrin 8 months ago
parent
commit
a194953901
1 changed files with 4 additions and 0 deletions
  1. 4 0
      hrt/prefab/ContextShared.hx

+ 4 - 0
hrt/prefab/ContextShared.hx

@@ -74,6 +74,9 @@ class ContextShared {
 	}
 	}
 
 
 	public function savePrefabDat(file : String, ext : String, prefab : String, bytes : haxe.io.Bytes ) {
 	public function savePrefabDat(file : String, ext : String, prefab : String, bytes : haxe.io.Bytes ) {
+		#if js
+		throw "not implemented";
+		#else
 		var datDir = getFolderDatPath();
 		var datDir = getFolderDatPath();
 		var instanceDir = datDir + "/" + prefab;
 		var instanceDir = datDir + "/" + prefab;
 
 
@@ -105,6 +108,7 @@ class ContextShared {
 		}else{
 		}else{
 			sys.io.File.saveBytes(file, bytes);
 			sys.io.File.saveBytes(file, bytes);
 		}
 		}
+		#end
 	}
 	}
 
 
 	public function loadShader( path : String ) : Cache.ShaderDef {
 	public function loadShader( path : String ) : Cache.ShaderDef {