mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 01:25:33 -07:00
Add an asset path within the AppImage (in case XDG_DATA_DIRS is not the AppImage default)
This commit is contained in:
@@ -1041,12 +1041,19 @@ usage:
|
||||
path_append_filename(temp, exe_path, "assets");
|
||||
asset_add_path(temp);
|
||||
|
||||
#ifdef __APPLE__
|
||||
#if defined(__APPLE__)
|
||||
// Add the standard asset path within the app bundle.
|
||||
if (contents_path[0] != '\0') {
|
||||
path_append_filename(temp, contents_path, "Resources/assets");
|
||||
asset_add_path(temp);
|
||||
}
|
||||
#elif !defined(_WIN32)
|
||||
// Add the standard asset path within the AppImage.
|
||||
p = getenv("APPDIR");
|
||||
if (p && (p[0] != '\0')) {
|
||||
path_append_filename(temp, p, "usr/local/share/" EMU_NAME "/assets");
|
||||
asset_add_path(temp);
|
||||
}
|
||||
#endif
|
||||
|
||||
plat_init_asset_paths();
|
||||
|
||||
Reference in New Issue
Block a user