[Kernel] Return device type in XamContentGetDeviceData
This commit is contained in:
parent
0bed6e565b
commit
5df5ec022b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue