diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-07 23:38:31 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-08 08:43:49 +0100 |
| commit | a6514d1a95d0f84f0935866215463ef6aed23e19 (patch) | |
| tree | 639075646b1ea42a3cd4a76ae59af7dda0c4b14a /loader/texture.cpp | |
| parent | 4575194adb4615deeca174044a872093c3664ad4 (diff) | |
loader: work toward removing duplicate atlas code
Diffstat (limited to 'loader/texture.cpp')
| -rw-r--r-- | loader/texture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/texture.cpp b/loader/texture.cpp index 8ac9e793..e93b21af 100644 --- a/loader/texture.cpp +++ b/loader/texture.cpp @@ -4,7 +4,7 @@ #include "compat/defs.hpp" #include "compat/strerror.hpp" #include <cstring> -#include <cstdio> +//#include <cstdio> #include <Corrade/Utility/Path.h> #include <Magnum/Trade/ImageData.h> @@ -19,11 +19,11 @@ Trade::ImageData2D loader_impl::texture(StringView prefix, StringView filename_) const auto N = prefix.size(); if (N > 0) [[likely]] fm_assert(prefix[N-1] == '/'); - fm_soft_assert(filename_.size() + prefix.size() + max_extension_length + 1 < FILENAME_MAX); + fm_soft_assert(filename_.size() + prefix.size() + max_extension_length + 1 < fm_FILENAME_MAX); fm_soft_assert(check_atlas_name(filename_)); fm_soft_assert(tga_importer); - char buf[FILENAME_MAX]; + char buf[fm_FILENAME_MAX]; const auto path_no_ext = make_atlas_path(buf, prefix, filename_); const auto len = path_no_ext.size(); |
