[Kernel] Return device type in XamContentGetDeviceData

This commit is contained in:
emoose 2019-07-19 01:47:20 +01:00 committed by illusion
parent 76a62d0416
commit b00d1d190e
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ DECLARE_XAM_EXPORT1(XamContentGetDeviceState, kContent, kStub);
typedef struct {
xe::be<uint32_t> device_id;
xe::be<uint32_t> unknown;
xe::be<uint32_t> device_type;
xe::be<uint64_t> total_bytes;
xe::be<uint64_t> free_bytes;
xe::be<uint16_t> name[28];
@ -136,7 +136,7 @@ dword_result_t XamContentGetDeviceData(
device_data.Zero();
const auto& device_info = dummy_device_info_;
device_data->device_id = device_info.device_id;
device_data->unknown = device_id & 0xFFFF; // Fake it.
device_data->device_type = device_info.device_type;
device_data->total_bytes = device_info.total_bytes;
device_data->free_bytes = device_info.free_bytes;
xe::store_and_swap<std::u16string>(&device_data->name[0], device_info.name);