formatting

This commit is contained in:
cathery 2019-11-07 20:23:15 +03:00
parent 9362e2be4d
commit b3e7bf4f5a

View File

@ -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;
}