diff options
| author | jduncanator <1518948+jduncanator@users.noreply.github.com> | 2019-11-18 22:16:26 +1100 |
|---|---|---|
| committer | Ac_K <Acoustik666@gmail.com> | 2019-11-18 12:16:26 +0100 |
| commit | ee81ab547ee35c4f5f3342a6f1e0d6bbc60500e8 (patch) | |
| tree | 76c623089ea56e2b27bcb06608434117086fb371 /Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs | |
| parent | 79abc6ed9375116a08eda6f8e722df56d029c373 (diff) | |
Initial swkbd implementation (#826)
* am: Initial swkbd implementation
Currently only implements the full screen keyboard, inline keyboard will come later.
* Remove unnecessary logging
* Miscellaneous tidy up
* am: Always pop incoming interactive session data
* am: Add a reminder to implement the full config struct
* am: Check for a max length of zero
We should only limit/truncate text when the max length is set to a non-zero value.
* Add documentation
* am: Return IStorage not available when queue is empty
We should be returning the appropriate error code when the FIFO is empty, rather than just throwing an exception and killing the emulator.
* Fix typo
* Code style changes
Diffstat (limited to 'Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs b/Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs index 7658c6db..418f5c10 100644 --- a/Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs +++ b/Ryujinx.HLE/HOS/Applets/PlayerSelect/PlayerSelectApplet.cs @@ -9,8 +9,8 @@ namespace Ryujinx.HLE.HOS.Applets { private Horizon _system; - private AppletFifo<byte[]> _inputData; - private AppletFifo<byte[]> _outputData; + private AppletSession _normalSession; + private AppletSession _interactiveSession; public event EventHandler AppletStateChanged; @@ -19,13 +19,14 @@ namespace Ryujinx.HLE.HOS.Applets _system = system; } - public ResultCode Start(AppletFifo<byte[]> inData, AppletFifo<byte[]> outData) + public ResultCode Start(AppletSession normalSession, + AppletSession interactiveSession) { - _inputData = inData; - _outputData = outData; + _normalSession = normalSession; + _interactiveSession = interactiveSession; // TODO(jduncanator): Parse PlayerSelectConfig from input data - _outputData.Push(BuildResponse()); + _normalSession.Push(BuildResponse()); AppletStateChanged?.Invoke(this, null); |
