diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-11 19:17:13 +0000 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-06-11 19:17:13 +0000 |
| commit | 565570f905be11faa17c1c95c7ac207c641c395d (patch) | |
| tree | 1e68bac85e1bc2d425234ca7444c3eae383cc5a5 /crop-tool/crop-tool.cpp | |
| parent | c0898bed67631ed7da5ea586a2641ce778670cd3 (diff) | |
a
Diffstat (limited to 'crop-tool/crop-tool.cpp')
| -rw-r--r-- | crop-tool/crop-tool.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crop-tool/crop-tool.cpp b/crop-tool/crop-tool.cpp index 8208688e..c0bf9265 100644 --- a/crop-tool/crop-tool.cpp +++ b/crop-tool/crop-tool.cpp @@ -139,6 +139,12 @@ static bool load_directory(anim_group& group, options& opts, anim_atlas& atlas, break; } + if (max == 1) + { + Error{Error::Flag::NoSpace} << "no files in directory " << input_dir << "!"; + return false; + } + if (!opts.nframes) opts.nframes = max-1; else if (opts.nframes != max-1) |
