mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-21 13:36:50 -04:00
Add DUSK_PACKAGE_INSTALL (#1966)
Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
This commit is contained in:
@@ -20,7 +20,11 @@
|
||||
namespace dusk {
|
||||
namespace {
|
||||
std::string GetAssetPath(const char* assetName) {
|
||||
#ifdef DUSK_ASSET_DIR
|
||||
const char* basePath = DUSK_ASSET_DIR;
|
||||
#else
|
||||
const char* basePath = SDL_GetBasePath();
|
||||
#endif
|
||||
if (basePath != nullptr && basePath[0] != '\0') {
|
||||
return std::string(basePath) + "res/" + assetName;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user