summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/nvdrv/devices/nvmap.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-07-26 06:16:21 +0200
committerbunnei <bunneidev@gmail.com>2020-07-26 06:49:43 +0200
commit05def613980a0e3b723d0d8d38eb68511272bb72 (patch)
treea120a71115533e9f3447ca8716f46d6f4c991f89 /src/core/hle/service/nvdrv/devices/nvmap.h
parentMerge pull request #4417 from lioncash/poll (diff)
downloadyuzu-05def613980a0e3b723d0d8d38eb68511272bb72.tar
yuzu-05def613980a0e3b723d0d8d38eb68511272bb72.tar.gz
yuzu-05def613980a0e3b723d0d8d38eb68511272bb72.tar.bz2
yuzu-05def613980a0e3b723d0d8d38eb68511272bb72.tar.lz
yuzu-05def613980a0e3b723d0d8d38eb68511272bb72.tar.xz
yuzu-05def613980a0e3b723d0d8d38eb68511272bb72.tar.zst
yuzu-05def613980a0e3b723d0d8d38eb68511272bb72.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.h b/src/core/hle/service/nvdrv/devices/nvmap.h
index 73c2e8809..84624be00 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.h
+++ b/src/core/hle/service/nvdrv/devices/nvmap.h
@@ -49,10 +49,10 @@ public:
private:
/// Id to use for the next handle that is created.
- u32 next_handle = 1;
+ u32 next_handle = 0;
/// Id to use for the next object that is created.
- u32 next_id = 1;
+ u32 next_id = 0;
/// Mapping of currently allocated handles to the objects they represent.
std::unordered_map<u32, std::shared_ptr<Object>> handles;
@@ -119,6 +119,8 @@ private:
};
static_assert(sizeof(IocGetIdParams) == 8, "IocGetIdParams has wrong size");
+ u32 CreateObject(u32 size);
+
u32 IocCreate(const std::vector<u8>& input, std::vector<u8>& output);
u32 IocAlloc(const std::vector<u8>& input, std::vector<u8>& output);
u32 IocGetId(const std::vector<u8>& input, std::vector<u8>& output);