From f106b790ddd0586b6fc06c175e41181681a24a4c Mon Sep 17 00:00:00 2001 From: Pascal Thomet Date: Wed, 4 Dec 2024 17:17:42 +0100 Subject: [PATCH] Assets: can search with absolute path or from current working directory --- src/hello_imgui/internal/hello_imgui_assets.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hello_imgui/internal/hello_imgui_assets.cpp b/src/hello_imgui/internal/hello_imgui_assets.cpp index 6d6b4f09..a36671be 100644 --- a/src/hello_imgui/internal/hello_imgui_assets.cpp +++ b/src/hello_imgui/internal/hello_imgui_assets.cpp @@ -141,6 +141,8 @@ std::vector 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"});