aboutsummaryrefslogtreecommitdiff
path: root/backends/wince/wince.cpp
diff options
context:
space:
mode:
authorNicolas Bacca2003-07-13 15:11:48 +0000
committerNicolas Bacca2003-07-13 15:11:48 +0000
commitdce546c2410516ee29df8da3a62ee0569701cdcc (patch)
treeb2387f4c7280cabe2e59282fd293d5db03098cc2 /backends/wince/wince.cpp
parent4a3f0b547df4f09cd8032ce746f06d5e8e805cfc (diff)
downloadscummvm-rg350-dce546c2410516ee29df8da3a62ee0569701cdcc.tar.gz
scummvm-rg350-dce546c2410516ee29df8da3a62ee0569701cdcc.tar.bz2
scummvm-rg350-dce546c2410516ee29df8da3a62ee0569701cdcc.zip
Get rid of additional version #define, default is now to disable HPC GameX (does it even work ?)
svn-id: r8986
Diffstat (limited to 'backends/wince/wince.cpp')
-rw-r--r--backends/wince/wince.cpp20
1 files 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;
+}