Rev 5005 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5005 | Rev 5037 | ||
---|---|---|---|
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 EDUKE32_OSX || defined __linux__ || defined __FreeBSD__ || defined __NetBSD__ || defined __OpenBSD__
|
602 | #if defined EDUKE32_OSX || defined __linux__ || defined EDUKE32_BSD
|
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 801... | Line 801... | ||
801 | }
|
801 | }
|
802 | #endif
|
802 | #endif
|
803 | 803 | ||
804 | void G_AddSearchPaths(void) |
804 | void G_AddSearchPaths(void) |
805 | {
|
805 | {
|
806 | #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
806 | #if defined __linux__ || defined EDUKE32_BSD
|
807 | char buf[BMAX_PATH]; |
807 | char buf[BMAX_PATH]; |
808 | char *homepath = Bgethomedir(); |
808 | char *homepath = Bgethomedir(); |
809 | 809 | ||
810 | Bsnprintf(buf, sizeof(buf), "%s/.steam/steam", homepath); |
810 | Bsnprintf(buf, sizeof(buf), "%s/.steam/steam", homepath); |
811 | G_AddSteamPaths(buf); |
811 | G_AddSteamPaths(buf); |