Skip to content

Commit

Permalink
ContextShared.hx savePrefabDat not implemented on js.
Browse files Browse the repository at this point in the history
  • Loading branch information
clementlandrin committed Jan 2, 2025
1 parent ad049ee commit a194953
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hrt/prefab/ContextShared.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -105,6 +108,7 @@ class ContextShared {
}else{
sys.io.File.saveBytes(file, bytes);
}
#end
}

public function loadShader( path : String ) : Cache.ShaderDef {
Expand Down

0 comments on commit a194953

Please sign in to comment.