used enum for Nfc GetStateOld
This commit is contained in:
@@ -133,6 +133,9 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
enum class NfcStates : u32 {
|
||||
Finalized = 6,
|
||||
};
|
||||
void InitializeOld(Kernel::HLERequestContext& ctx) {
|
||||
IPC::ResponseBuilder rb{ctx, 2, 0};
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
@@ -154,7 +157,7 @@ private:
|
||||
|
||||
IPC::ResponseBuilder rb{ctx, 3};
|
||||
rb.Push(RESULT_SUCCESS);
|
||||
rb.PushRaw<u32>(6); // TODO(ogniK): Figure out if this matches nfp
|
||||
rb.PushEnum(NfcStates::Finalized); // TODO(ogniK): Figure out if this matches nfp
|
||||
}
|
||||
|
||||
void FinalizeOld(Kernel::HLERequestContext& ctx) {
|
||||
|
||||
@@ -190,8 +190,6 @@ private:
|
||||
|
||||
void GetDeviceState(Kernel::HLERequestContext& ctx) {
|
||||
LOG_DEBUG(Service_NFP, "called");
|
||||
|
||||
Core::System& system{Core::System::GetInstance()};
|
||||
const auto event = nfp_interface.GetNFCEvent();
|
||||
|
||||
if (!event->ShouldWait(Kernel::GetCurrentThread()) && !has_attached_handle) {
|
||||
|
||||
Reference in New Issue
Block a user