瀏覽代碼

ContextShared.hx savePrefabDat not implemented on js.

clementlandrin 8 月之前
父節點
當前提交
a194953901
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 ) {
+		#if js
+		throw "not implemented";
+		#else
 		var datDir = getFolderDatPath();
 		var instanceDir = datDir + "/" + prefab;
 
@@ -105,6 +108,7 @@ class ContextShared {
 		}else{
 			sys.io.File.saveBytes(file, bytes);
 		}
+		#end
 	}
 
 	public function loadShader( path : String ) : Cache.ShaderDef {