From bb663003757814d98912f18546fc40cc270b867c Mon Sep 17 00:00:00 2001 From: jduncanator Date: Mon, 18 Nov 2019 09:35:01 +1100 Subject: [PATCH] am: Always pop incoming interactive session data --- .../SoftwareKeyboard/SoftwareKeyboardApplet.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs index beb04e63db..8d0a6bb0a6 100644 --- a/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs +++ b/Ryujinx.HLE/HOS/Applets/SoftwareKeyboard/SoftwareKeyboardApplet.cs @@ -90,16 +90,17 @@ namespace Ryujinx.HLE.HOS.Applets private void OnInteractiveData(object sender, EventArgs e) { - if(_state == SoftwareKeyboardState.ValidationPending) + // Obtain the validation status response, + var data = _interactiveSession.Pop(); + + if (_state == SoftwareKeyboardState.ValidationPending) { // TODO(jduncantor): // If application rejects our "attempt", submit another attempt, // and put the applet back in PendingValidation state. - // Obtain the validation status response, for now we assume - // success and carry on our merry way. - _interactiveSession.Pop(); - + // For now we assume success, so we push the final result + // to the standard output buffer and carry on our merry way. _normalSession.Push(BuildResponse(_textValue, false)); AppletStateChanged?.Invoke(this, null);