aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/android.cpp
diff options
context:
space:
mode:
authorathrxx2011-03-22 15:55:17 +0100
committerathrxx2011-03-22 15:55:17 +0100
commitea79336ac90e12fe53242cfd9153db9d7087ca0f (patch)
tree50c74ceb394cf23d845c408659459f3b07192b92 /backends/platform/android/android.cpp
parent92f922aabe5811fcf595697bc1316aa57b4c9b66 (diff)
parent273ba73d5fae0dd0d3b3f7c5f15f03d02c0af1b4 (diff)
downloadscummvm-rg350-ea79336ac90e12fe53242cfd9153db9d7087ca0f.tar.gz
scummvm-rg350-ea79336ac90e12fe53242cfd9153db9d7087ca0f.tar.bz2
scummvm-rg350-ea79336ac90e12fe53242cfd9153db9d7087ca0f.zip
Merge branch 'master' of https://github.com/scummvm/scummvm
Diffstat (limited to 'backends/platform/android/android.cpp')
-rw-r--r--backends/platform/android/android.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index 6bb6de7289..69b3f1e084 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -27,6 +27,7 @@
#include <sys/time.h>
#include <sys/resource.h>
+#include <sys/system_properties.h>
#include <time.h>
#include <unistd.h>
@@ -131,6 +132,11 @@ OSystem_Android::OSystem_Android(int audio_sample_rate, int audio_buffer_size) :
_touchpad_scale(66),
_dpad_scale(4),
_trackball_scale(2) {
+ LOGI("Running on: [%s] [%s] SDK:%s ABI:%s",
+ getSystemProperty("ro.build.fingerprint").c_str(),
+ getSystemProperty("ro.build.display.id").c_str(),
+ getSystemProperty("ro.build.version.sdk").c_str(),
+ getSystemProperty("ro.product.cpu.abi").c_str());
}
OSystem_Android::~OSystem_Android() {
@@ -548,6 +554,20 @@ void OSystem_Android::logMessage(LogMessageType::Type type,
}
}
+Common::String OSystem_Android::getSystemLanguage() const {
+ return Common::String::format("%s_%s",
+ getSystemProperty("persist.sys.language").c_str(),
+ getSystemProperty("persist.sys.country").c_str());
+}
+
+Common::String OSystem_Android::getSystemProperty(const char *name) const {
+ char value[PROP_VALUE_MAX];
+
+ int len = __system_property_get(name, value);
+
+ return Common::String(value, len);
+}
+
#ifdef DYNAMIC_MODULES
void AndroidPluginProvider::addCustomDirectories(Common::FSList &dirs) const {
((OSystem_Android *)g_system)->addPluginDirectories(dirs);