diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 11:00:05 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-07 11:00:05 +0200 |
commit | 49d18e6b8a95f6ae4755cacd958248ffbdbf59ff (patch) | |
tree | 910f1c47b71bbd14595750185bffac15a4fdfe48 /anim-crop-tool | |
parent | 7740c71ecedd90f9b465dc35994e64915dbda826 (diff) |
a
Diffstat (limited to 'anim-crop-tool')
-rw-r--r-- | anim-crop-tool/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp index be3f7469..a95d3bae 100644 --- a/anim-crop-tool/main.cpp +++ b/anim-crop-tool/main.cpp @@ -1,5 +1,6 @@ #include "atlas.hpp" #include "serialize/anim.hpp" +#include "serialize/json-helper.hpp" #include "compat/defs.hpp" #include "compat/sysexits.hpp" #include "compat/assert.hpp" @@ -244,7 +245,7 @@ int main(int argc, char** argv) if (!opts_ok) return usage(args); - auto [anim_info, anim_ok] = anim::from_json(opts.input_file); + auto [anim_info, anim_ok] = json_helper::from_json<anim>(opts.input_file); if (!anim_ok) return EX_DATAERR; @@ -285,7 +286,7 @@ int main(int argc, char** argv) << std::strerror(errno); // NOLINT(concurrency-mt-unsafe) return EX_CANTCREAT; } - if (!anim_info.to_json(opts.output_dir/(anim_info.name + ".json"))) + if (!json_helper::to_json<anim>(anim_info, opts.output_dir/(anim_info.name + ".json"))) return EX_CANTCREAT; return 0; |