mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-13 21:02:34 +08:00
fix: filenames with dots were not being handled properly
This commit is contained in:
parent
e69c67f713
commit
c4d365b122
@ -15,8 +15,7 @@ std::filesystem::path CContainer::resolveRealFile (const std::filesystem::path&
|
||||
|
||||
const ITexture* CContainer::readTexture (const std::filesystem::path& filename) const {
|
||||
// get the texture's filename (usually .tex)
|
||||
std::filesystem::path texture = "materials" / filename;
|
||||
texture.replace_extension (".tex");
|
||||
std::filesystem::path texture = "materials" / std::filesystem::path (filename.string ().append (".tex"));
|
||||
|
||||
const uint8_t* textureContents = this->readFile (texture, nullptr);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user