[Kernel] Return device type in XamContentGetDeviceData

This commit is contained in:
emoose 2019-07-19 01:47:20 +01:00
parent 0bed6e565b
commit 5df5ec022b
No known key found for this signature in database
GPG Key ID: 3735C67912F5FF97
1 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,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];
@ -121,7 +121,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::wstring>(&device_data->name[0], device_info.name);