service: Remove remaining uses of BufferDescriptor*.

This commit is contained in:
bunnei 2018-02-13 23:16:19 -05:00
parent f09dbaee17
commit 6fe712735f
5 changed files with 8 additions and 14 deletions

View file

@ -14,9 +14,8 @@ namespace Nvidia {
void NVDRV::Open(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_NVDRV, "called");
auto buffer = ctx.BufferDescriptorA()[0];
std::string device_name = Memory::ReadCString(buffer.Address(), buffer.Size());
const auto& buffer = ctx.ReadBuffer();
std::string device_name(buffer.begin(), buffer.end());
u32 fd = nvdrv->Open(device_name);
IPC::ResponseBuilder rb{ctx, 4};