From a91a1c60f544d26195c2df9dd9cd1ef042deacf9 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Mon, 8 Jun 2009 18:15:57 +0000 Subject: Use SDL's getenv/putenv implementation, and populate at startup. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1577 --- setup/mainmenu.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'setup') diff --git a/setup/mainmenu.c b/setup/mainmenu.c index d340661b..6a1f01c2 100644 --- a/setup/mainmenu.c +++ b/setup/mainmenu.c @@ -22,6 +22,10 @@ #include #include +#ifdef _WIN32_WCE +#include "libc_wince.h" +#endif + #include "config.h" #include "textscreen.h" @@ -214,6 +218,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 + InitConfig(); RunGUI(); -- cgit v1.2.3