On macOS, look for the game dylib in the app bundle

This commit is contained in:
Tom Kidd 2024-07-24 23:00:56 -05:00 committed by Daniel Gibson
parent b34c625798
commit ae6997aef5

View file

@ -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) {