diff options
author | mailwl <mailwl@gmail.com> | 2018-02-02 12:31:27 +0100 |
---|---|---|
committer | mailwl <mailwl@gmail.com> | 2018-02-03 16:09:51 +0100 |
commit | f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f (patch) | |
tree | b9448ff3ac4263fec4302432222da935f3ab3f65 /src/core/hle/service/nifm/nifm_u.cpp | |
parent | Service/am: Add AppletAE service (#153) (diff) | |
download | yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.tar yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.tar.gz yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.tar.bz2 yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.tar.lz yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.tar.xz yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.tar.zst yuzu-f67a8d87a0d5e2b0b95289af91ea4478b6adbb6f.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nifm/nifm_u.cpp | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/core/hle/service/nifm/nifm_u.cpp b/src/core/hle/service/nifm/nifm_u.cpp new file mode 100644 index 000000000..c6de14744 --- /dev/null +++ b/src/core/hle/service/nifm/nifm_u.cpp @@ -0,0 +1,36 @@ +// Copyright 2018 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/logging/log.h" +#include "core/hle/ipc_helpers.h" +#include "core/hle/service/nifm/nifm.h" +#include "core/hle/service/nifm/nifm_u.h" + +namespace Service { +namespace NIFM { + +void NIFM_U::CreateGeneralServiceOld(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushIpcInterface<IGeneralService>(); + LOG_DEBUG(Service, "called"); +} + +void NIFM_U::CreateGeneralService(Kernel::HLERequestContext& ctx) { + IPC::ResponseBuilder rb{ctx, 2, 0, 1}; + rb.Push(RESULT_SUCCESS); + rb.PushIpcInterface<IGeneralService>(); + LOG_DEBUG(Service, "called"); +} + +NIFM_U::NIFM_U() : ServiceFramework("nifm:u") { + static const FunctionInfo functions[] = { + {4, &NIFM_U::CreateGeneralServiceOld, "CreateGeneralServiceOld"}, + {5, &NIFM_U::CreateGeneralService, "CreateGeneralService"}, + }; + RegisterHandlers(functions); +} + +} // namespace NIFM +} // namespace Service |