aboutsummaryrefslogtreecommitdiff
path: root/common/util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/util.cpp')
-rw-r--r--common/util.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/common/util.cpp b/common/util.cpp
index 6f0fdcb233..51bd8bcad6 100644
--- a/common/util.cpp
+++ b/common/util.cpp
@@ -481,6 +481,34 @@ uint32 getEnabledSpecialDebugLevels() {
return gDebugLevelsEnabled;
}
+const char *getHostPlatformString() {
+
+#if defined(__SYMBIAN32__)
+ return "symbian";
+#elif defined(_WIN32_WCE) || defined(_MSC_VER) || defined(__MINGW32__) || defined(UNIX)
+ return "pc";
+#elif defined(__PALMOS_TRAPS__) || defined (__PALMOS_ARMLET__)
+ return "palmos";
+#elif defined(__DC__)
+ return "dc";
+#elif defined(__GP32__)
+ return "gp32";
+#elif defined(__PLAYSTATION2__)
+ return "ps2";
+#elif defined(__PSP__)
+ return "psp";
+#elif defined(__amigaos4__)
+ return "amigaos";
+#elif defined (__DS__) //NeilM
+ return "nds";
+#elif defined(__WII__)
+ return "wii";
+#else
+ return "";
+#endif
+
+}
+
} // End of namespace Common
@@ -694,3 +722,4 @@ Common::String tag2string(uint32 tag) {
str[4] = '\0';
return Common::String(str);
}
+