summaryrefslogtreecommitdiff
path: root/sys/src/games/doom/i_system.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@cirno>2011-06-04 03:59:08 -0400
committercinap_lenrek <cinap_lenrek@cirno>2011-06-04 03:59:08 -0400
commit2fa44c883eaf727a95f00257c0997bd63c66f7f6 (patch)
treebe09b283d9c82d349fc1e5463c2ca6a62d146c5c /sys/src/games/doom/i_system.c
parent9310110448087364729bafc9c54a553f55395be3 (diff)
games/doom: add /sys/games/lib/doom as default wad path
Diffstat (limited to 'sys/src/games/doom/i_system.c')
-rw-r--r--sys/src/games/doom/i_system.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/src/games/doom/i_system.c b/sys/src/games/doom/i_system.c
index 7e8c8173b..8e17da76b 100644
--- a/sys/src/games/doom/i_system.c
+++ b/sys/src/games/doom/i_system.c
@@ -140,12 +140,14 @@ char* I_IdentifyWAD(char *wadname)
{
char path[1024];
- /* /sys/lib/doom/... */
snprintf(path, sizeof path, "/sys/lib/doom/%s", wadname);
if (I_FileExists (path))
return path;
- /* $home/lib/doom/... */
+ snprintf(path, sizeof path, "/sys/games/lib/doom/%s", wadname);
+ if (I_FileExists (path))
+ return path;
+
snprintf(path, sizeof path, "%s/lib/doom/%s", getenv("home"), wadname);
if (I_FileExists (path))
return path;