mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-23 16:19:44 +00:00
Receive language change message in another screen
This commit is contained in:
parent
9907f4a740
commit
42c5061e18
@ -212,6 +212,12 @@ void ControlMappingScreen::CreateViews() {
|
||||
}
|
||||
}
|
||||
|
||||
void ControlMappingScreen::sendMessage(const char *message, const char *value) {
|
||||
if (!strcmp(message, "language")) {
|
||||
screenManager()->RecreateAllViews();
|
||||
}
|
||||
}
|
||||
|
||||
UI::EventReturn ControlMappingScreen::OnBack(UI::EventParams &e) {
|
||||
// If we're in-game, return to the game via DR_CANCEL.
|
||||
if(PSP_IsInited()) {
|
||||
|
@ -28,6 +28,7 @@ public:
|
||||
ControlMappingScreen() {}
|
||||
protected:
|
||||
virtual void CreateViews();
|
||||
virtual void sendMessage(const char *message, const char *value);
|
||||
virtual UI::EventReturn OnBack(UI::EventParams &e);
|
||||
|
||||
private:
|
||||
|
@ -93,6 +93,12 @@ void CwCheatScreen::CreateViews() {
|
||||
}
|
||||
}
|
||||
|
||||
void CwCheatScreen::sendMessage(const char *message, const char *value) {
|
||||
if (!strcmp(message, "language")) {
|
||||
screenManager()->RecreateAllViews();
|
||||
}
|
||||
}
|
||||
|
||||
UI::EventReturn CwCheatScreen::OnBack(UI::EventParams ¶ms)
|
||||
{
|
||||
screenManager()->finishDialog(this, DR_OK);
|
||||
|
@ -42,6 +42,7 @@ public:
|
||||
UI::EventReturn OnEnableAll(UI::EventParams ¶ms);
|
||||
protected:
|
||||
virtual void CreateViews();
|
||||
virtual void sendMessage(const char *message, const char *value);
|
||||
|
||||
private:
|
||||
UI::EventReturn OnCheckBox(UI::EventParams ¶ms);
|
||||
|
2
native
2
native
@ -1 +1 @@
|
||||
Subproject commit 67183f5822c3e28b51bb06b754e002c737feeccf
|
||||
Subproject commit df8814e239531ba87a950e278f6236e85ef44b4b
|
Loading…
Reference in New Issue
Block a user