summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgreggameplayer <33609333+greggameplayer@users.noreply.github.com>2018-05-23 14:09:24 +0200
committerGitHub <noreply@github.com>2018-05-23 14:09:24 +0200
commit3c26b7179daf6b1006b43037e22ffcbcdd3ea275 (patch)
treee0c6bb5f36be7051752c81b2d9dcc910749ede8a /src
parentcorrect placement and add size check (diff)
downloadyuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.tar
yuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.tar.gz
yuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.tar.bz2
yuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.tar.lz
yuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.tar.xz
yuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.tar.zst
yuzu-3c26b7179daf6b1006b43037e22ffcbcdd3ea275.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvmap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvmap.cpp b/src/core/hle/service/nvdrv/devices/nvmap.cpp
index d66fb3a9c..23fe98190 100644
--- a/src/core/hle/service/nvdrv/devices/nvmap.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvmap.cpp
@@ -119,25 +119,25 @@ u32 nvmap::IocParam(const std::vector<u8>& input, std::vector<u8>& output) {
IocParamParams params;
std::memcpy(&params, input.data(), sizeof(params));
- NGLOG_WARNING(Service_NVDRV, "(STUBBED) called type={}", params.type);
+ NGLOG_WARNING(Service_NVDRV, "(STUBBED) called type={}", params.param);
auto object = GetObject(params.handle);
ASSERT(object);
ASSERT(object->status == Object::Status::Allocated);
- switch (static_cast<ParamTypes>(params.type)) {
+ switch (static_cast<ParamTypes>(params.param)) {
case ParamTypes::Size:
- params.value = object->size;
+ params.result = object->size;
break;
case ParamTypes::Alignment:
- params.value = object->align;
+ params.result = object->align;
break;
case ParamTypes::Heap:
// TODO(Subv): Seems to be a hardcoded value?
- params.value = 0x40000000;
+ params.result = 0x40000000;
break;
case ParamTypes::Kind:
- params.value = object->kind;
+ params.result = object->kind;
break;
default:
UNIMPLEMENTED();