From b3e7bf4f5a85d12a0b09018ff467c6d067453888 Mon Sep 17 00:00:00 2001 From: cathery Date: Thu, 7 Nov 2019 20:23:15 +0300 Subject: [PATCH] formatting --- nx/source/services/hiddbg.c | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/nx/source/services/hiddbg.c b/nx/source/services/hiddbg.c index 1c9ce114..b2319812 100644 --- a/nx/source/services/hiddbg.c +++ b/nx/source/services/hiddbg.c @@ -403,30 +403,22 @@ Result hiddbgIsHdlsVirtualDeviceAttached(u64 HdlsHandle, bool *isAttached) return MAKERESULT(Module_Libnx, LibnxError_NotInitialized); rc = _hiddbgCmdNoIO(327); - if (R_FAILED(rc)) - return rc; - if (isAttached) - { + if (R_FAILED(rc)) return rc; + if (isAttached) { *isAttached = false; - if (hosversionBefore(9, 0, 0)) - { + if (hosversionBefore(9, 0, 0)) { HiddbgHdlsStateListV7 *stateList = (HiddbgHdlsStateListV7 *)(g_hiddbgHdlsTmem.src_addr); - for (s32 i = 0; i < stateList->total_entries; i++) - { - if (stateList->entries[i].HdlsHandle == HdlsHandle) - { + for (s32 i = 0; i < stateList->total_entries; i++) { + if (stateList->entries[i].HdlsHandle == HdlsHandle) { *isAttached = true; break; } } } - else - { + else { HiddbgHdlsStateList *stateList = (HiddbgHdlsStateList *)(g_hiddbgHdlsTmem.src_addr); - for (s32 i = 0; i < stateList->total_entries; i++) - { - if (stateList->entries[i].HdlsHandle == HdlsHandle) - { + for (s32 i = 0; i < stateList->total_entries; i++) { + if (stateList->entries[i].HdlsHandle == HdlsHandle) { *isAttached = true; break; }