From dce546c2410516ee29df8da3a62ee0569701cdcc Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sun, 13 Jul 2003 15:11:48 +0000 Subject: Get rid of additional version #define, default is now to disable HPC GameX (does it even work ?) svn-id: r8986 --- backends/wince/wince.cpp | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/backends/wince/wince.cpp b/backends/wince/wince.cpp index 156a3b1c37..5d8d366dd7 100644 --- a/backends/wince/wince.cpp +++ b/backends/wince/wince.cpp @@ -667,14 +667,11 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLin FILE *test; - test = fopen("NoGameX", "r"); - if (test) { + test = fopen("GameX", "r"); + if (!test) noGAPI = 1; - fclose(test); - } else - if (g_config->getBool("NoGameX", false, "wince")) - noGAPI = 1; + fclose(test); #endif @@ -1908,4 +1905,15 @@ void operator delete(void *ptr) { free(ptr); } +const char* getBuildDate() { + static char buildDate[100]; + int i; + + strcpy(buildDate, __DATE__); + for (i=strlen(buildDate) - 1; buildDate[i] != ' '; i--) + buildDate[i] = '\0'; + strcat(buildDate, __TIME__); + buildDate[strlen(buildDate) - 3] = '\0'; + return buildDate; +} -- cgit v1.2.3