mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-02-18 02:01:33 +00:00
On macOS, look for the game dylib in the app bundle
This commit is contained in:
parent
b34c625798
commit
ae6997aef5
1 changed files with 7 additions and 0 deletions
|
@ -2637,6 +2637,13 @@ void idCommonLocal::LoadGameDLLbyName( const char *dll, idStr& s ) {
|
|||
s.AppendPath(dll);
|
||||
gameDLL = sys->DLL_Load(s);
|
||||
}
|
||||
|
||||
// if not found in the bundle's directory, try in the bundle itself
|
||||
if (!gameDLL && Sys_GetPath(PATH_EXE, s)) {
|
||||
s.AppendPath("Contents/MacOS/base");
|
||||
s.AppendPath(dll);
|
||||
gameDLL = sys->DLL_Load(s);
|
||||
}
|
||||
#else
|
||||
// then the install folder on *nix
|
||||
if (!gameDLL) {
|
||||
|
|
Loading…
Reference in a new issue