aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authordhewg2011-04-05 19:10:35 +0200
committerdhewg2011-04-05 19:10:35 +0200
commit811b1fcc2a2d8e938c2e06489a04388c97715f48 (patch)
treecabe360e3342c28b1e2d7ba7edc76c901f46c687 /backends
parent507bff8233662019e7b7078b645ce035e796af5b (diff)
downloadscummvm-rg350-811b1fcc2a2d8e938c2e06489a04388c97715f48.tar.gz
scummvm-rg350-811b1fcc2a2d8e938c2e06489a04388c97715f48.tar.bz2
scummvm-rg350-811b1fcc2a2d8e938c2e06489a04388c97715f48.zip
ANDROID: Use the manufacturer string for workarounds
Some fingerprints don't contain it, so this should be more reliable.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/android/android.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/platform/android/android.cpp b/backends/platform/android/android.cpp
index eb0e164109..ab3f1908c4 100644
--- a/backends/platform/android/android.cpp
+++ b/backends/platform/android/android.cpp
@@ -133,19 +133,19 @@ OSystem_Android::OSystem_Android(int audio_sample_rate, int audio_buffer_size) :
_touchpad_scale(66),
_dpad_scale(4),
_trackball_scale(2) {
- Common::String fp = getSystemProperty("ro.build.fingerprint");
+ Common::String mf = getSystemProperty("ro.product.manufacturer");
LOGI("Running on: [%s] [%s] [%s] [%s] [%s] SDK:%s ABI:%s",
- getSystemProperty("ro.product.manufacturer").c_str(),
+ mf.c_str(),
getSystemProperty("ro.product.model").c_str(),
getSystemProperty("ro.product.brand").c_str(),
- fp.c_str(),
+ 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());
- fp.toLowercase();
- _htc_fail = fp.contains("htc");
+ mf.toLowercase();
+ _htc_fail = mf.contains("htc");
if (_htc_fail)
LOGI("Enabling HTC workaround");