summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdrv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/nvdrv/nvdrv.cpp')
-rw-r--r--src/core/hle/service/nvdrv/nvdrv.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp
index a2d55eaee..7923e1c0d 100644
--- a/src/core/hle/service/nvdrv/nvdrv.cpp
+++ b/src/core/hle/service/nvdrv/nvdrv.cpp
@@ -8,9 +8,13 @@
namespace Service {
namespace NVDRV {
+std::weak_ptr<NVDRV_A> nvdrv_a;
+
void InstallInterfaces(SM::ServiceManager& service_manager) {
- std::make_shared<NVDRV_A>()->InstallAsService(service_manager);
+ auto nvdrv = std::make_shared<NVDRV_A>();
+ nvdrv->InstallAsService(service_manager);
+ nvdrv_a = nvdrv;
}
-} // namespace nvdrv
+} // namespace NVDRV
} // namespace Service