early-access version 1269

This commit is contained in:
pineappleEA
2020-12-31 11:02:49 +01:00
parent f79987a2cb
commit e4e12386d2
37 changed files with 1012 additions and 819 deletions

View File

@@ -190,6 +190,12 @@ private:
void GetDeviceState(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_NFP, "called");
auto nfc_event = nfp_interface.GetNFCEvent();
if (!nfc_event->ShouldWait(&ctx.GetThread()) && !has_attached_handle) {
device_state = DeviceState::TagFound;
nfc_event->Clear();
}
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(static_cast<u32>(device_state));