summaryrefslogtreecommitdiff
path: root/setup/mainmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'setup/mainmenu.c')
-rw-r--r--setup/mainmenu.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/setup/mainmenu.c b/setup/mainmenu.c
index d4dfe0db..c7e4f48d 100644
--- a/setup/mainmenu.c
+++ b/setup/mainmenu.c
@@ -18,7 +18,13 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
+
#include <stdlib.h>
+#include <string.h>
+
+#ifdef _WIN32_WCE
+#include "libc_wince.h"
+#endif
#include "config.h"
#include "textscreen.h"
@@ -137,6 +143,8 @@ void MainMenu(void)
static void InitConfig(void)
{
+ M_ApplyPlatformDefaults();
+
SetChatMacroDefaults();
SetPlayerNameDefault();
@@ -212,6 +220,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();