Skip to content

Commit

Permalink
Start searching for default asset dir in executable path itself
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfb committed Jul 29, 2024
1 parent f1041a1 commit 32f0a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cinder/app/Platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const vector<fs::path>& Platform::getAssetDirectories() const

void Platform::findAndAddDefaultAssetPath()
{
fs::path assetDir = findAncestorDir( getExecutablePath().parent_path(), "assets", ASSET_SEARCH_DEPTH );
fs::path assetDir = findAncestorDir( getExecutablePath(), "assets", ASSET_SEARCH_DEPTH );
if( ! assetDir.empty() )
addAssetDirectory( assetDir );
}
Expand Down

0 comments on commit 32f0a2c

Please sign in to comment.