Subversion Repositories eduke32

Rev

Rev 4989 | Rev 5037 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4989 Rev 5005
Line 292... Line 292...
292
292
293
void G_ExtInit(void)
293
void G_ExtInit(void)
294
{
294
{
295
    char cwd[BMAX_PATH];
295
    char cwd[BMAX_PATH];
296
296
297
#ifdef __APPLE__
297
#ifdef EDUKE32_OSX
298
    char *appdir = Bgetappdir();
298
    char *appdir = Bgetappdir();
299
    addsearchpath(appdir);
299
    addsearchpath(appdir);
300
    Bfree(appdir);
300
    Bfree(appdir);
301
#endif
301
#endif
302
302
Line 597... Line 597...
597
            g_defNamePtr = dup_filename(grp->defname);
597
            g_defNamePtr = dup_filename(grp->defname);
598
        }
598
        }
599
    }
599
    }
600
}
600
}
601
601
602
#if defined __APPLE__ || defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
602
#if defined EDUKE32_OSX || defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
603
static void G_AddSteamPaths(const char *basepath)
603
static void G_AddSteamPaths(const char *basepath)
604
{
604
{
605
    char buf[BMAX_PATH];
605
    char buf[BMAX_PATH];
606
606
607
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot", basepath);
607
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot", basepath);
Line 623... Line 623...
623
    addsearchpath_user(buf, SEARCHPATH_NWINTER);
623
    addsearchpath_user(buf, SEARCHPATH_NWINTER);
624
624
625
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/music/vacation", basepath);
625
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Duke Nukem 3D/gameroot/music/vacation", basepath);
626
    addsearchpath(buf);
626
    addsearchpath(buf);
627
627
628
#if defined __APPLE__
628
#if defined EDUKE32_OSX
629
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Nam/Nam.app/Contents/Resources/Nam.boxer/C.harddisk/NAM", basepath);
629
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Nam/Nam.app/Contents/Resources/Nam.boxer/C.harddisk/NAM", basepath);
630
#else
630
#else
631
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Nam/NAM", basepath);
631
    Bsnprintf(buf, sizeof(buf), "%s/steamapps/common/Nam/NAM", basepath);
632
#endif
632
#endif
633
    addsearchpath_user(buf, SEARCHPATH_NAM);
633
    addsearchpath_user(buf, SEARCHPATH_NAM);
Line 817... Line 817...
817
817
818
    addsearchpath("/usr/share/games/jfduke3d");
818
    addsearchpath("/usr/share/games/jfduke3d");
819
    addsearchpath("/usr/local/share/games/jfduke3d");
819
    addsearchpath("/usr/local/share/games/jfduke3d");
820
    addsearchpath("/usr/share/games/eduke32");
820
    addsearchpath("/usr/share/games/eduke32");
821
    addsearchpath("/usr/local/share/games/eduke32");
821
    addsearchpath("/usr/local/share/games/eduke32");
822
#elif defined(__APPLE__)
822
#elif defined EDUKE32_OSX
823
    char buf[BMAX_PATH];
823
    char buf[BMAX_PATH];
824
    int32_t i;
824
    int32_t i;
825
    char *applications[] = { osx_getapplicationsdir(0), osx_getapplicationsdir(1) };
825
    char *applications[] = { osx_getapplicationsdir(0), osx_getapplicationsdir(1) };
826
    char *support[] = { osx_getsupportdir(0), osx_getsupportdir(1) };
826
    char *support[] = { osx_getsupportdir(0), osx_getsupportdir(1) };
827
827