Closed XMNXofficial closed 1 year ago
I know, the assets API is a bit complex. However, there are up to four possible different locations for the assets folder, as shown by computePossibleAssetsFolders(), and they are all tested in succession when trying to look for an asset:
gOverrideAssetsFolder
(valid only if it was filled by manually calling SetAssetsFolder())gAssetsSubfolderFolderName
(gAssetsSubfolderFolderName = "assets" by default)gAssetsSubfolderFolderName
gAssetsSubfolderFolderName
(emscripten only)In practice, it will mainly vary between 3 and 4.
As such, providing GetAssetFolderPath() is not that easy.
Thank you, your solution is very helpful!
An New API
Source(In
hello_imgui_assets.cpp
)How to use
Photo