mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
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:
1 parent
07b8b6f35a
commit
ee6234ecb6
65 files changed
+535
-516
No files matched your search
+5
-5
@@ -243,8 +243,8 @@ void ProductView::CreateViews() {
|
||||
Add(new TextView(entry_.name));
|
||||
Add(new TextView(entry_.author));
|
||||
|
||||
auto st = GetI18NCategory("Store");
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
auto st = GetI18NCategory(I18NCat::STORE);
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
wasInstalled_ = IsGameInstalled();
|
||||
bool isDownloading = g_GameManager.IsDownloading(DownloadURL());
|
||||
if (!wasInstalled_) {
|
||||
@@ -441,9 +441,9 @@ void StoreScreen::CreateViews() {
|
||||
|
||||
root_ = new LinearLayout(ORIENT_VERTICAL);
|
||||
|
||||
auto di = GetI18NCategory("Dialog");
|
||||
auto st = GetI18NCategory("Store");
|
||||
auto mm = GetI18NCategory("MainMenu");
|
||||
auto di = GetI18NCategory(I18NCat::DIALOG);
|
||||
auto st = GetI18NCategory(I18NCat::STORE);
|
||||
auto mm = GetI18NCategory(I18NCat::MAINMENU);
|
||||
|
||||
// Top bar
|
||||
LinearLayout *topBar = root_->Add(new LinearLayout(ORIENT_HORIZONTAL));
|
||||
|
||||
Reference in new issue
Block a user