mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 14:18:37 +00:00
ANDROID: Use the manufacturer string for workarounds
Some fingerprints don't contain it, so this should be more reliable.
This commit is contained in:
parent
507bff8233
commit
811b1fcc2a
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user