diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 10:04:57 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 10:04:57 +0100 |
commit | 1d8bbb932f0c148f58ecda3ff0d5ab6705fa88c1 (patch) | |
tree | 1fde4300004e8de1ff8536f9cfe2defc4c43a999 /loader/atlas.cpp | |
parent | cf1c5f4dcd59a45b2e03851d2a8e2a640c80d066 (diff) |
a
Diffstat (limited to 'loader/atlas.cpp')
-rw-r--r-- | loader/atlas.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/loader/atlas.cpp b/loader/atlas.cpp index d71b85ad..acc1d069 100644 --- a/loader/atlas.cpp +++ b/loader/atlas.cpp @@ -18,11 +18,10 @@ namespace floormat { StringView loader_::make_atlas_path(char(&buf)[FILENAME_MAX], StringView dir, StringView name) { fm_soft_assert(!dir || dir[dir.size()-1] == '/'); - auto name_noext = Path::splitExtension(name).first(); - const auto dirsiz = dir.size(), namesiz = name_noext.size(); + const auto dirsiz = dir.size(), namesiz = name.size(); fm_soft_assert(dirsiz + namesiz + 1 < FILENAME_MAX); std::memcpy(buf, dir.data(), dirsiz); - std::memcpy(&buf[dirsiz], name_noext.data(), namesiz); + std::memcpy(&buf[dirsiz], name.data(), namesiz); buf[dirsiz + namesiz] = '\0'; return StringView{buf}; } |