mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 01:03:41 +01:00
Stop "messages from java" to leak out to NativeMessageReceived except where explicitly allowed
This commit is contained in:
1 parent
c3d7074e30
commit
ac4506e389
10 files changed
+42
-34
No files matched your search
+1
-9
@@ -1135,15 +1135,7 @@ void NativeRender(GraphicsContext *graphicsContext) {
|
||||
}
|
||||
|
||||
void HandleGlobalMessage(const std::string &msg, const std::string &value) {
|
||||
// A bit ugly, see InputDeviceState.java.
|
||||
static InputDeviceID nextInputDeviceID = DEVICE_ID_ANY;
|
||||
if (msg == "inputDeviceConnectedID") {
|
||||
nextInputDeviceID = (InputDeviceID)parseLong(value);
|
||||
}
|
||||
else if (msg == "inputDeviceConnected") {
|
||||
KeyMap::NotifyPadConnected(nextInputDeviceID, value);
|
||||
}
|
||||
else if (msg == "savestate_displayslot") {
|
||||
if (msg == "savestate_displayslot") {
|
||||
auto sy = GetI18NCategory(I18NCat::SYSTEM);
|
||||
std::string msg = StringFromFormat("%s: %d", sy->T("Savestate Slot"), SaveState::GetCurrentSlot() + 1);
|
||||
// Show for the same duration as the preview.
|
||||
|
||||
Reference in new issue
Block a user