mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Use Common::ToLower and Common::ToUpper
This commit is contained in:
@ -10,7 +10,6 @@
|
||||
#ifdef USE_DISCORD_PRESENCE
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
#include <ctime>
|
||||
#include <set>
|
||||
#include <string>
|
||||
@ -19,6 +18,7 @@
|
||||
#include <fmt/format.h>
|
||||
|
||||
#include "Common/Hash.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#endif
|
||||
|
||||
@ -167,8 +167,7 @@ std::string ArtworkForGameId(const std::string& gameid)
|
||||
if (REGISTERED_GAMES.count(region_neutral_gameid) != 0)
|
||||
{
|
||||
// Discord asset keys can only be lowercase.
|
||||
std::transform(region_neutral_gameid.begin(), region_neutral_gameid.end(),
|
||||
region_neutral_gameid.begin(), tolower);
|
||||
Common::ToLower(®ion_neutral_gameid);
|
||||
return "game_" + region_neutral_gameid;
|
||||
}
|
||||
return "";
|
||||
|
Reference in New Issue
Block a user