diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/nfp/nfp.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp index a42c22d44..aa886cd3e 100644 --- a/src/core/hle/service/nfp/nfp.cpp +++ b/src/core/hle/service/nfp/nfp.cpp | |||
| @@ -18,8 +18,8 @@ | |||
| 18 | namespace Service::NFP { | 18 | namespace Service::NFP { |
| 19 | 19 | ||
| 20 | namespace ErrCodes { | 20 | namespace ErrCodes { |
| 21 | constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP, | 21 | [[maybe_unused]] constexpr ResultCode ERR_TAG_FAILED(ErrorModule::NFP, |
| 22 | -1); // TODO(ogniK): Find the actual error code | 22 | -1); // TODO(ogniK): Find the actual error code |
| 23 | constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152); | 23 | constexpr ResultCode ERR_NO_APPLICATION_AREA(ErrorModule::NFP, 152); |
| 24 | } // namespace ErrCodes | 24 | } // namespace ErrCodes |
| 25 | 25 | ||
| @@ -35,7 +35,7 @@ Module::Interface::~Interface() = default; | |||
| 35 | class IUser final : public ServiceFramework<IUser> { | 35 | class IUser final : public ServiceFramework<IUser> { |
| 36 | public: | 36 | public: |
| 37 | IUser(Module::Interface& nfp_interface, Core::System& system) | 37 | IUser(Module::Interface& nfp_interface, Core::System& system) |
| 38 | : ServiceFramework("NFP::IUser"), nfp_interface(nfp_interface), system(system) { | 38 | : ServiceFramework("NFP::IUser"), nfp_interface(nfp_interface) { |
| 39 | static const FunctionInfo functions[] = { | 39 | static const FunctionInfo functions[] = { |
| 40 | {0, &IUser::Initialize, "Initialize"}, | 40 | {0, &IUser::Initialize, "Initialize"}, |
| 41 | {1, &IUser::Finalize, "Finalize"}, | 41 | {1, &IUser::Finalize, "Finalize"}, |
| @@ -183,6 +183,8 @@ private: | |||
| 183 | case DeviceState::TagRemoved: | 183 | case DeviceState::TagRemoved: |
| 184 | device_state = DeviceState::Initialized; | 184 | device_state = DeviceState::Initialized; |
| 185 | break; | 185 | break; |
| 186 | default: | ||
| 187 | break; | ||
| 186 | } | 188 | } |
| 187 | IPC::ResponseBuilder rb{ctx, 2}; | 189 | IPC::ResponseBuilder rb{ctx, 2}; |
| 188 | rb.Push(RESULT_SUCCESS); | 190 | rb.Push(RESULT_SUCCESS); |
| @@ -324,7 +326,6 @@ private: | |||
| 324 | Kernel::EventPair deactivate_event; | 326 | Kernel::EventPair deactivate_event; |
| 325 | Kernel::EventPair availability_change_event; | 327 | Kernel::EventPair availability_change_event; |
| 326 | const Module::Interface& nfp_interface; | 328 | const Module::Interface& nfp_interface; |
| 327 | Core::System& system; | ||
| 328 | }; | 329 | }; |
| 329 | 330 | ||
| 330 | void Module::Interface::CreateUserInterface(Kernel::HLERequestContext& ctx) { | 331 | void Module::Interface::CreateUserInterface(Kernel::HLERequestContext& ctx) { |