summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Howard2009-06-08 18:15:57 +0000
committerSimon Howard2009-06-08 18:15:57 +0000
commita91a1c60f544d26195c2df9dd9cd1ef042deacf9 (patch)
treececca880c5d57a153f3aed17daa934c00195fae6 /src
parentbdeaec12d0f79c5cd15b49105a11988ac5ec545c (diff)
downloadchocolate-doom-a91a1c60f544d26195c2df9dd9cd1ef042deacf9.tar.gz
chocolate-doom-a91a1c60f544d26195c2df9dd9cd1ef042deacf9.tar.bz2
chocolate-doom-a91a1c60f544d26195c2df9dd9cd1ef042deacf9.zip
Use SDL's getenv/putenv implementation, and populate at startup.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1577
Diffstat (limited to 'src')
-rw-r--r--src/i_main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/i_main.c b/src/i_main.c
index e1de5881..03f8a5ac 100644
--- a/src/i_main.c
+++ b/src/i_main.c
@@ -133,6 +133,15 @@ int main(int argc, char **argv)
myargc = argc;
myargv = argv;
+#ifdef _WIN32_WCE
+
+ // Windows CE has no environment, but SDL provides an implementation.
+ // Populate the environment with the values we normally find.
+
+ PopulateEnvironment();
+
+#endif
+
// Only schedule on a single core, if we have multiple
// cores. This is to work around a bug in SDL_mixer.