diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 00:54:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 00:54:19 +0200 |
commit | b6a42cc53f808c86342d1bcd400ea95e6e7f5762 (patch) | |
tree | cd65334638415d037e5544c9af5142eab3d6bc7a /loader | |
parent | 9954b8b4f5fb95470e127a4f24a0c73289dd49a9 (diff) |
serializer work
Diffstat (limited to 'loader')
-rw-r--r-- | loader/loader-impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp index 8c478161..9e6de31e 100644 --- a/loader/loader-impl.cpp +++ b/loader/loader-impl.cpp @@ -75,6 +75,7 @@ Trade::ImageData2D loader_impl::tile_texture(StringView filename_) static_assert(IMAGE_PATH[sizeof(IMAGE_PATH)-2] == '/'); fm_assert(filename_.size() < 4096); fm_assert(filename_.find('\\') == filename_.end()); + fm_assert(filename_.find('\0') == filename_.end()); fm_assert(tga_importer); constexpr std::size_t max_extension_length = 16; @@ -98,6 +99,10 @@ Trade::ImageData2D loader_impl::tile_texture(StringView filename_) auto ret = std::move(*img); return ret; } + else + { + fm_warn("can't open '%s'", filename); + } } const auto path = Utility::Path::currentDirectory(); filename[len] = '\0'; |