fix(gamepad): no retallar el nom del mand a 25 caràcters
This commit is contained in:
1 parent
a2b01ba9d5
commit
d5abc6343e
2 files changed
+4
-3
No files matched your search
@@ -56,7 +56,6 @@ auto GamepadManager::prettyName(const char* raw) -> std::string {
|
||||
const auto POS = name.find_first_of("([");
|
||||
if (POS != std::string::npos) { name.erase(POS); }
|
||||
while (!name.empty() && name.back() == ' ') { name.pop_back(); }
|
||||
if (name.size() > 25) { name.resize(25); }
|
||||
if (name.empty()) { name = "Gamepad"; }
|
||||
return name;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user