(Android) Some slight optimizations

This commit is contained in:
twinaphex 2020-06-24 13:27:32 +02:00
parent 84b53856a4
commit a2b83636d7

View File

@ -1062,11 +1062,7 @@ static void handle_hotplug(android_input_t *android,
*/ */
else if( else if(
( (
strstr(device_model, "R800x") || string_starts_with(device_model, "R800") ||
strstr(device_model, "R800at") ||
strstr(device_model, "R800i") ||
strstr(device_model, "R800a") ||
strstr(device_model, "R800") ||
strstr(device_model, "Xperia Play") || strstr(device_model, "Xperia Play") ||
strstr(device_model, "Play") || strstr(device_model, "Play") ||
strstr(device_model, "SO-01D") strstr(device_model, "SO-01D")
@ -1117,9 +1113,16 @@ static void handle_hotplug(android_input_t *android,
} }
/* Amazon Fire TV & Fire stick */ /* Amazon Fire TV & Fire stick */
else if (strstr(device_model, "AFTB") || strstr(device_model, "AFTT") || else if (
strstr(device_model, "AFTS") || strstr(device_model, "AFTM") || string_starts_with(device_model, "AFT") &&
strstr(device_model, "AFTRS")) (
strstr(device_model, "AFTB") ||
strstr(device_model, "AFTT") ||
strstr(device_model, "AFTS") ||
strstr(device_model, "AFTM") ||
strstr(device_model, "AFTRS")
)
)
{ {
RARCH_LOG("Special Device Detected: %s\n", device_model); RARCH_LOG("Special Device Detected: %s\n", device_model);
{ {