mirror of
https://github.com/Almamu/linux-wallpaperengine.git
synced 2025-07-14 13:22:23 +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 {
|
const ITexture* CContainer::readTexture (const std::filesystem::path& filename) const {
|
||||||
// get the texture's filename (usually .tex)
|
// get the texture's filename (usually .tex)
|
||||||
std::filesystem::path texture = "materials" / filename;
|
std::filesystem::path texture = "materials" / std::filesystem::path (filename.string ().append (".tex"));
|
||||||
texture.replace_extension (".tex");
|
|
||||||
|
|
||||||
const uint8_t* textureContents = this->readFile (texture, nullptr);
|
const uint8_t* textureContents = this->readFile (texture, nullptr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user