mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
formatting
This commit is contained in:
parent
9362e2be4d
commit
b3e7bf4f5a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user