am: Always pop incoming interactive session data

This commit is contained in:
jduncanator 2019-11-18 09:35:01 +11:00
commit bb66300375

View file

@ -90,16 +90,17 @@ namespace Ryujinx.HLE.HOS.Applets
private void OnInteractiveData(object sender, EventArgs e) 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): // TODO(jduncantor):
// If application rejects our "attempt", submit another attempt, // If application rejects our "attempt", submit another attempt,
// and put the applet back in PendingValidation state. // and put the applet back in PendingValidation state.
// Obtain the validation status response, for now we assume // For now we assume success, so we push the final result
// success and carry on our merry way. // to the standard output buffer and carry on our merry way.
_interactiveSession.Pop();
_normalSession.Push(BuildResponse(_textValue, false)); _normalSession.Push(BuildResponse(_textValue, false));
AppletStateChanged?.Invoke(this, null); AppletStateChanged?.Invoke(this, null);