diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 00:03:12 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-19 00:03:46 +0100 |
commit | f3f99d56ad6cd66e74e6958d46a12cc56f584984 (patch) | |
tree | 4206d13f3091f822d7ee3b34ced82163ed7f50cf /loader | |
parent | 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (diff) |
move some deserialize path's asserts to soft asserts
Diffstat (limited to 'loader')
-rw-r--r-- | loader/atlas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index a87d4ec1..0a5afd7b 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -44,10 +44,10 @@ ArrayView<String> loader_impl::anim_atlas_list() std::shared_ptr<anim_atlas> loader_impl::anim_atlas(StringView name, StringView dir) noexcept(false) { - fm_assert(dir && dir[dir.size()-1] == '/'); + fm_soft_assert(dir && dir[dir.size()-1] == '/'); char path_buf[FILENAME_MAX]; name = Path::splitExtension(name).first(); - fm_assert(dir.size() + name.size() + 1 + 1 < FILENAME_MAX); + fm_soft_assert(dir.size() + name.size() + 1 + 1 < FILENAME_MAX); std::memcpy(path_buf, dir.data(), dir.size()); path_buf[dir.size()] = '/'; std::memcpy(&path_buf[dir.size() + 1], name.data(), name.size()); |