diff options
author | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-10 05:56:41 +0100 |
---|---|---|
committer | Chloe Marcec <dmarcecguzman@gmail.com> | 2020-11-10 05:57:36 +0100 |
commit | fc4d692c503ca11a9339f0464520caf88d8474de (patch) | |
tree | 50702eaa2142d8fc39a2d7fb24d09fbed846e577 /src/core/hle/service/nvdrv/nvdrv.cpp | |
parent | core: Make nvservices more standardized (diff) | |
download | yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.gz yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.bz2 yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.lz yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.xz yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.tar.zst yuzu-fc4d692c503ca11a9339f0464520caf88d8474de.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/nvdrv.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp index 69a4b07ba..bdbbedd0d 100644 --- a/src/core/hle/service/nvdrv/nvdrv.cpp +++ b/src/core/hle/service/nvdrv/nvdrv.cpp @@ -62,7 +62,7 @@ Module::Module(Core::System& system) : syncpoint_manager{system.GPU()} { Module::~Module() = default; -NvResult Module::VerifyFd(DeviceFD fd) const { +NvResult Module::VerifyFD(DeviceFD fd) const { if (fd < 0) { LOG_ERROR(Service_NVDRV, "Invalid DeviceFD={}!", fd); return NvResult::InvalidState; @@ -97,7 +97,7 @@ NvResult Module::Ioctl1(DeviceFD fd, Ioctl command, const std::vector<u8>& input return NvResult::InvalidState; } - auto itr = open_files.find(fd); + const auto itr = open_files.find(fd); if (itr == open_files.end()) { LOG_ERROR(Service_NVDRV, "Could not find DeviceFD={}!", fd); @@ -114,7 +114,7 @@ NvResult Module::Ioctl2(DeviceFD fd, Ioctl command, const std::vector<u8>& input return NvResult::InvalidState; } - auto itr = open_files.find(fd); + const auto itr = open_files.find(fd); if (itr == open_files.end()) { LOG_ERROR(Service_NVDRV, "Could not find DeviceFD={}!", fd); @@ -131,7 +131,7 @@ NvResult Module::Ioctl3(DeviceFD fd, Ioctl command, const std::vector<u8>& input return NvResult::InvalidState; } - auto itr = open_files.find(fd); + const auto itr = open_files.find(fd); if (itr == open_files.end()) { LOG_ERROR(Service_NVDRV, "Could not find DeviceFD={}!", fd); @@ -147,7 +147,7 @@ NvResult Module::Close(DeviceFD fd) { return NvResult::InvalidState; } - auto itr = open_files.find(fd); + const auto itr = open_files.find(fd); if (itr == open_files.end()) { LOG_ERROR(Service_NVDRV, "Could not find DeviceFD={}!", fd); |