mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-14 08:30:58 +00:00
When using search paths detected from a Megaton installation, also use the SC-55 oggs included with it.
git-svn-id: https://svn.eduke32.com/eduke32@4887 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
e3de98e2ae
commit
0699a44e4e
3 changed files with 26 additions and 1 deletions
|
@ -620,6 +620,15 @@ static void G_AddSteamPaths(const char *basepath)
|
||||||
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/addons/vacation", basepath);
|
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/addons/vacation", basepath);
|
||||||
addsearchpath_user(buf, SEARCHPATH_REMOVE);
|
addsearchpath_user(buf, SEARCHPATH_REMOVE);
|
||||||
|
|
||||||
|
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/music", basepath);
|
||||||
|
addsearchpath(buf);
|
||||||
|
|
||||||
|
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/music/nwinter", basepath);
|
||||||
|
addsearchpath_user(buf, SEARCHPATH_NWINTER);
|
||||||
|
|
||||||
|
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/music/vacation", basepath);
|
||||||
|
addsearchpath(buf);
|
||||||
|
|
||||||
#if defined __APPLE__
|
#if defined __APPLE__
|
||||||
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Nam/Nam.app/Contents/Resources/Nam.boxer/C.harddisk/NAM", basepath);
|
Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Nam/Nam.app/Contents/Resources/Nam.boxer/C.harddisk/NAM", basepath);
|
||||||
#else
|
#else
|
||||||
|
@ -862,6 +871,15 @@ void G_AddSearchPaths(void)
|
||||||
|
|
||||||
Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/vacation", instpath);
|
Bsnprintf(buf, sizeof(buf), "%s/gameroot/addons/vacation", instpath);
|
||||||
addsearchpath_user(buf, SEARCHPATH_REMOVE);
|
addsearchpath_user(buf, SEARCHPATH_REMOVE);
|
||||||
|
|
||||||
|
Bsnprintf(buf, sizeof(buf), "%s/gameroot/music", instpath);
|
||||||
|
addsearchpath(buf);
|
||||||
|
|
||||||
|
Bsnprintf(buf, sizeof(buf), "%s/gameroot/music/nwinter", instpath);
|
||||||
|
addsearchpath_user(buf, SEARCHPATH_NWINTER);
|
||||||
|
|
||||||
|
Bsnprintf(buf, sizeof(buf), "%s/gameroot/music/vacation", instpath);
|
||||||
|
addsearchpath(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((instpath = G_GetInstallPath(INSTPATH_GOG_DUKE3D)))
|
if ((instpath = G_GetInstallPath(INSTPATH_GOG_DUKE3D)))
|
||||||
|
@ -893,6 +911,9 @@ void G_CleanupSearchPaths(void)
|
||||||
|
|
||||||
if (!(NAM || NAPALM))
|
if (!(NAM || NAPALM))
|
||||||
removesearchpaths_withuser(SEARCHPATH_NAM);
|
removesearchpaths_withuser(SEARCHPATH_NAM);
|
||||||
|
|
||||||
|
if (!(NWINTER))
|
||||||
|
removesearchpaths_withuser(SEARCHPATH_NWINTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////
|
//////////
|
||||||
|
|
|
@ -20,6 +20,7 @@ extern int32_t usecwd;
|
||||||
#define GAMEFLAG_ADDON 0x00000010
|
#define GAMEFLAG_ADDON 0x00000010
|
||||||
#define GAMEFLAG_SHAREWARE 0x00000020
|
#define GAMEFLAG_SHAREWARE 0x00000020
|
||||||
#define GAMEFLAG_DUKEBETA 0x00000060 // includes 0x20 since it's a shareware beta
|
#define GAMEFLAG_DUKEBETA 0x00000060 // includes 0x20 since it's a shareware beta
|
||||||
|
#define GAMEFLAG_NWINTER 0x00000080
|
||||||
|
|
||||||
extern int32_t g_gameType;
|
extern int32_t g_gameType;
|
||||||
|
|
||||||
|
@ -32,6 +33,7 @@ extern int32_t g_dependencyCRC;
|
||||||
#define WW2GI (g_gameType & GAMEFLAG_WW2GI)
|
#define WW2GI (g_gameType & GAMEFLAG_WW2GI)
|
||||||
#define SHAREWARE (g_gameType & GAMEFLAG_SHAREWARE)
|
#define SHAREWARE (g_gameType & GAMEFLAG_SHAREWARE)
|
||||||
#define DUKEBETA ((g_gameType & GAMEFLAG_DUKEBETA) == GAMEFLAG_DUKEBETA)
|
#define DUKEBETA ((g_gameType & GAMEFLAG_DUKEBETA) == GAMEFLAG_DUKEBETA)
|
||||||
|
#define NWINTER (g_gameType & GAMEFLAG_NWINTER)
|
||||||
|
|
||||||
enum Games_t {
|
enum Games_t {
|
||||||
GAME_DUKE = 0,
|
GAME_DUKE = 0,
|
||||||
|
@ -53,6 +55,8 @@ enum instpath_t {
|
||||||
enum searchpathtypes_t {
|
enum searchpathtypes_t {
|
||||||
SEARCHPATH_REMOVE = 1<<0,
|
SEARCHPATH_REMOVE = 1<<0,
|
||||||
SEARCHPATH_NAM = 1<<1,
|
SEARCHPATH_NAM = 1<<1,
|
||||||
|
|
||||||
|
SEARCHPATH_NWINTER = 1<<2,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef enum basepal_ {
|
typedef enum basepal_ {
|
||||||
|
|
|
@ -47,7 +47,7 @@ struct grpfile internalgrpfiles[NUMGRPFILES] =
|
||||||
{ "Duke Nukem 3D Mac Demo", DUKEMD_CRC, 10444391, GAMEFLAG_DUKE|GAMEFLAG_SHAREWARE, 0, NULL, NULL, NULL },
|
{ "Duke Nukem 3D Mac Demo", DUKEMD_CRC, 10444391, GAMEFLAG_DUKE|GAMEFLAG_SHAREWARE, 0, NULL, NULL, NULL },
|
||||||
{ "Duke it out in D.C.", DUKEDC_CRC, 8410183 , GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
{ "Duke it out in D.C.", DUKEDC_CRC, 8410183 , GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
||||||
{ "Duke Caribbean: Life's a Beach", DUKECB_CRC, 22213819, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
{ "Duke Caribbean: Life's a Beach", DUKECB_CRC, 22213819, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, NULL, NULL, NULL },
|
||||||
{ "Duke: Nuclear Winter", DUKENW_CRC, 16169365, GAMEFLAG_DUKE|GAMEFLAG_ADDON, DUKE15_CRC, "NWINTER.CON", NULL, NULL },
|
{ "Duke: Nuclear Winter", DUKENW_CRC, 16169365, GAMEFLAG_DUKE|GAMEFLAG_ADDON|GAMEFLAG_NWINTER, DUKE15_CRC, "NWINTER.CON", NULL, NULL },
|
||||||
{ "NAM", NAM_CRC, 43448927, GAMEFLAG_NAM, 0, NULL, NULL, NULL },
|
{ "NAM", NAM_CRC, 43448927, GAMEFLAG_NAM, 0, NULL, NULL, NULL },
|
||||||
{ "NAPALM", NAPALM_CRC, 44365728, GAMEFLAG_NAM|GAMEFLAG_NAPALM, 0, NULL, NULL, NULL },
|
{ "NAPALM", NAPALM_CRC, 44365728, GAMEFLAG_NAM|GAMEFLAG_NAPALM, 0, NULL, NULL, NULL },
|
||||||
{ "WWII GI", WW2GI_CRC, 77939508, GAMEFLAG_WW2GI|GAMEFLAG_NAM, 0, NULL, NULL, NULL },
|
{ "WWII GI", WW2GI_CRC, 77939508, GAMEFLAG_WW2GI|GAMEFLAG_NAM, 0, NULL, NULL, NULL },
|
||||||
|
|
Loading…
Reference in a new issue