Switch System_GetName to System_GetProperty

This commit is contained in:
Henrik Rydgard
2013-09-04 11:31:40 +02:00
parent 159e366a16
commit c845da2887
7 changed files with 34 additions and 20 deletions
+1 -1
View File
@@ -676,7 +676,7 @@ void RestoreDefault() {
SetDefaultKeyMap(DEFAULT_MAPPING_PAD, false);
#elif defined(ANDROID)
// Autodetect a few common devices
std::string name = System_GetName();
std::string name = System_GetProperty(SYSPROP_NAME);
if (name == "NVIDIA:SHIELD") {
SetDefaultKeyMap(DEFAULT_MAPPING_SHIELD, true);
} else if (name == "OUYA:OUYA Console") { // TODO: check!