summaryrefslogtreecommitdiffhomepage
path: root/loader/atlas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'loader/atlas.cpp')
-rw-r--r--loader/atlas.cpp5
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};
}