Core: Use a shared_ptr for i18n categories.

This does not make them thread safe, but it reduces the chances of a crash
a bit (see #12594.)
This commit is contained in:
Unknown W. Brackets committed 2020-02-09 07:35:16 -08:00
1 parent a4ba5d4859
commit 5009698cc0
54 files changed
+244 -240

No files matched your search

+2 -2
View File
@@ -101,7 +101,7 @@ void Discord::SetPresenceGame(const char *gameTitle) {
}
#ifdef ENABLE_DISCORD
I18NCategory *sc = GetI18NCategory("Screen");
auto sc = GetI18NCategory("Screen");
DiscordRichPresence discordPresence{};
discordPresence.state = gameTitle;
@@ -127,7 +127,7 @@ void Discord::SetPresenceMenu() {
}
#ifdef ENABLE_DISCORD
I18NCategory *sc = GetI18NCategory("Screen");
auto sc = GetI18NCategory("Screen");
DiscordRichPresence discordPresence{};
discordPresence.state = sc->T("In menu");