Skip to content

Commit

Permalink
Assets: can search with absolute path or from current working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 4, 2024
1 parent c15f8a7 commit f106b79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hello_imgui/internal/hello_imgui_assets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ std::vector<AssetFolderWithDesignation> computePossibleAssetsFolders()
if (! gOverrideAssetsFolder.empty())
r.push_back({gOverrideAssetsFolder, "folder provided by HelloImGui::SetAssetsFolder()"});

r.push_back({"", "absolute path or current working directory"});

// For apple bundle, search at the bundle resources folder
#ifdef HELLOIMGUI_INSIDE_APPLE_BUNDLE
r.push_back({GetBundlePath() + "/Contents/Resources/" + gAssetsSubfolderFolderName, "AppleAppBundle/Contents/Resources/assets"});
Expand Down

0 comments on commit f106b79

Please sign in to comment.