mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 15:49:48 -04:00
strat: prefer os::NativeHandle to Handle/svc::Handle where sensible
This commit is contained in:
parent
597d521f52
commit
d0041a33ac
50 changed files with 193 additions and 190 deletions
|
@ -59,16 +59,16 @@ namespace ams::dd {
|
|||
das->state = DeviceAddressSpaceType::State_NotInitialized;
|
||||
}
|
||||
|
||||
void AttachDeviceAddressSpaceHandle(DeviceAddressSpaceType *das, Handle handle, bool managed) {
|
||||
void AttachDeviceAddressSpaceHandle(DeviceAddressSpaceType *das, DeviceAddressSpaceHandle handle, bool managed) {
|
||||
/* Check pre-conditions. */
|
||||
AMS_ASSERT(handle != svc::InvalidHandle);
|
||||
AMS_ASSERT(handle != os::InvalidNativeHandle);
|
||||
|
||||
das->device_handle = handle;
|
||||
das->is_handle_managed = managed;
|
||||
das->state = DeviceAddressSpaceType::State_Initialized;
|
||||
}
|
||||
|
||||
Handle GetDeviceAddressSpaceHandle(DeviceAddressSpaceType *das) {
|
||||
DeviceAddressSpaceHandle GetDeviceAddressSpaceHandle(DeviceAddressSpaceType *das) {
|
||||
/* Check pre-conditions. */
|
||||
AMS_ASSERT(das->state == DeviceAddressSpaceType::State_Initialized);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue