summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nfp/nfp.cpp
diff options
context:
space:
mode:
authorNarr the Reg <juangerman-13@hotmail.com>2023-04-15 01:46:20 +0200
committergerman77 <juangerman-13@hotmail.com>2023-04-24 07:28:09 +0200
commita3fa64fcc489d2cc1776807a37db3464dcc32686 (patch)
tree2ec9e6abd4b588f6584ec41ea6edf816ad25c98c /src/core/hle/service/nfp/nfp.cpp
parentMerge pull request #10074 from Kelebek1/fermi_blit (diff)
downloadyuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar
yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.gz
yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.bz2
yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.lz
yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.xz
yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.tar.zst
yuzu-a3fa64fcc489d2cc1776807a37db3464dcc32686.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nfp/nfp.cpp24
1 files changed, 3 insertions, 21 deletions
diff --git a/src/core/hle/service/nfp/nfp.cpp b/src/core/hle/service/nfp/nfp.cpp
index 2714f4bea..2559fe598 100644
--- a/src/core/hle/service/nfp/nfp.cpp
+++ b/src/core/hle/service/nfp/nfp.cpp
@@ -152,16 +152,10 @@ private:
void CreateUserInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFP, "called");
- if (user_interface == nullptr) {
- user_interface = std::make_shared<IUser>(system);
- }
-
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<IUser>(user_interface);
+ rb.PushIpcInterface<IUser>(system);
}
-
- std::shared_ptr<IUser> user_interface;
};
class ISystemManager final : public ServiceFramework<ISystemManager> {
@@ -180,16 +174,10 @@ private:
void CreateSystemInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFP, "called");
- if (system_interface == nullptr) {
- system_interface = std::make_shared<ISystem>(system);
- }
-
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<ISystem>(system_interface);
+ rb.PushIpcInterface<ISystem>(system);
}
-
- std::shared_ptr<ISystem> system_interface;
};
class IDebugManager final : public ServiceFramework<IDebugManager> {
@@ -208,16 +196,10 @@ private:
void CreateDebugInterface(HLERequestContext& ctx) {
LOG_DEBUG(Service_NFP, "called");
- if (system_interface == nullptr) {
- system_interface = std::make_shared<IDebug>(system);
- }
-
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
rb.Push(ResultSuccess);
- rb.PushIpcInterface<IDebug>(system_interface);
+ rb.PushIpcInterface<IDebug>(system);
}
-
- std::shared_ptr<IDebug> system_interface;
};
void LoopProcess(Core::System& system) {