summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/nvdrv.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-09 03:30:22 +0100
committerbunnei <bunneidev@gmail.com>2018-01-11 05:28:29 +0100
commit34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5 (patch)
treeb3b01b63dd0fa4fdc240a549257b685595f277cf /src/core/hle/service/nvdrv/nvdrv.cpp
parentNV: Determine what buffer to draw for each layer of each display. (diff)
downloadyuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.tar
yuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.tar.gz
yuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.tar.bz2
yuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.tar.lz
yuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.tar.xz
yuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.tar.zst
yuzu-34ae2ec644f49b04d6c6b82742812b6a8a3ef8b5.zip
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