aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}