summaryrefslogtreecommitdiff
path: root/src/i_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_main.c')
-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.