I18N: Switch to getting categories by index instead of by string lookup

Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
This commit is contained in:
Henrik Rydgård committed 2023-04-07 10:35:01 +02:00
1 parent 07b8b6f35a
commit ee6234ecb6
65 files changed
+535 -516

No files matched your search

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