Skip to content

Commit

Permalink
fix: default assets directory wasn't properly detected
Browse files Browse the repository at this point in the history
  • Loading branch information
Almamu committed Jul 12, 2024
1 parent 4bc5205 commit ac117e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/WallpaperEngine/Application/CApplicationContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ void CApplicationContext::validateAssets () {
this->settings.general.assets = Steam::FileSystem::appDirectory (APP_DIRECTORY, "assets");
} catch (std::runtime_error&) {
// set current path as assets' folder
std::filesystem::path directory = std::filesystem::canonical ("/proc/self/exe").parent_path () / "assets";
this->settings.general.assets = std::filesystem::canonical ("/proc/self/exe").parent_path () / "assets";
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/WallpaperEngine/Render/CTextureCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const ITexture* CTextureCache::resolve (const std::string& filename) {
return found->second;

// search for the texture in all the different containers just in case
for (const auto it : this->getContext ().getApp ().getBackgrounds ()) {
for (const auto& it : this->getContext ().getApp ().getBackgrounds ()) {
try {
const ITexture* texture = it.second->getContainer ()->readTexture (filename);

Expand Down

0 comments on commit ac117e3

Please sign in to comment.