ref: 2fa44c883eaf727a95f00257c0997bd63c66f7f6
parent: 9310110448087364729bafc9c54a553f55395be3
author: cinap_lenrek <cinap_lenrek@cirno>
date: Fri Jun 3 23:59:08 EDT 2011
games/doom: add /sys/games/lib/doom as default wad path
--- a/sys/src/games/doom/i_system.c
+++ b/sys/src/games/doom/i_system.c
@@ -140,12 +140,14 @@
{
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;