binding/wasm: updated save features

- removed the compression option
- added an animation save function.
This commit is contained in:
Hermet Park 2023-11-03 14:24:04 +09:00
parent 4bfdac7140
commit 0819fc9058

View file

@ -185,7 +185,7 @@ public:
updated = true; updated = true;
} }
bool save(bool compress) bool save()
{ {
errorMsg = NoError; errorMsg = NoError;
@ -203,7 +203,7 @@ public:
errorMsg = "duplicate(), fail"; errorMsg = "duplicate(), fail";
return false; return false;
} }
if (saver->save(std::move(duplicate), "output.tvg", compress) != tvg::Result::Success) { if (saver->save(std::move(duplicate), "output.tvg") != tvg::Result::Success) {
errorMsg = "save(), fail"; errorMsg = "save(), fail";
return false; return false;
} }