diff options
author | Frederic Meyer <binarynoob96@gmail.com> | 2018-01-17 17:08:46 +0100 |
---|---|---|
committer | Frederic Meyer <binarynoob96@gmail.com> | 2018-01-17 17:08:46 +0100 |
commit | 60d650cc4ec377fc0d3096bb3f9900fc4bc10299 (patch) | |
tree | 43185a8f70a559f3dfc5f6e4200d50ea7f28fb42 /src/core/hle/service/nvdrv/nvdrv.cpp | |
parent | Merge pull request #67 from RiverCityRansomware/gdbstubtypo (diff) | |
download | yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.tar yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.tar.gz yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.tar.bz2 yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.tar.lz yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.tar.xz yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.tar.zst yuzu-60d650cc4ec377fc0d3096bb3f9900fc4bc10299.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/nvdrv/nvdrv.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/hle/service/nvdrv/nvdrv.cpp b/src/core/hle/service/nvdrv/nvdrv.cpp index cf525a875..9b73886bb 100644 --- a/src/core/hle/service/nvdrv/nvdrv.cpp +++ b/src/core/hle/service/nvdrv/nvdrv.cpp @@ -49,5 +49,15 @@ u32 Module::Ioctl(u32 fd, u32 command, const std::vector<u8>& input, std::vector return device->ioctl(command, input, output); } +ResultCode Module::Close(u32 fd) { + auto itr = open_files.find(fd); + ASSERT_MSG(itr != open_files.end(), "Tried to talk to an invalid device"); + + open_files.erase(itr); + + // TODO(flerovium): return correct result code if operation failed. + return RESULT_SUCCESS; +} + } // namespace Nvidia } // namespace Service |