shithub: choc

Download patch

ref: 401a3ff69c21c4ec77213ba89590d6243d3d98f1
parent: d0dc5023008c7ae2ce0e1f4e8c91d69d9776f441
author: Fabian Greffrath <[email protected]>
date: Mon Oct 10 05:11:39 EDT 2016

i_iwad: comment out AddXdgDirs() if building on _WIN32 systems

--- a/src/d_iwad.c
+++ b/src/d_iwad.c
@@ -592,6 +592,7 @@
     free(path);
 }
 
+#ifndef _WIN32
 // Add standard directories where IWADs are located on Unix systems.
 // To respect the freedesktop.org specification we support overriding
 // using standard environment variables. See the XDG Base Directory
@@ -647,6 +648,7 @@
     // XDG_DATA_DIRS mechanism, through which it can be overridden.
     AddIWADPath(env, "/games/doom");
 }
+#endif
 
 //
 // Build a list of IWAD files