fix(gamepad): no retallar el nom del mand a 25 caràcters

This commit is contained in:
JailDesigner committed 2026-04-22 21:20:53 +02:00
1 parent a2b01ba9d5
commit d5abc6343e
2 files changed
+4 -3

No files matched your search

-1
View File
@@ -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;
}