Skip to content

Commit

Permalink
refactor(hwlibs): Use early return in getMatchProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Oct 21, 2024
1 parent f07465f commit ea76bc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NootRX/HWLibs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,8 @@ bool HWLibs::processKext(KernelPatcher &patcher, size_t id, mach_vm_address_t sl
}

const char *HWLibs::wrapGetMatchProperty() {
return NootRXMain::callback->attributes.isNavi21() ? "Load6800" : "Load6810";
if (NootRXMain::callback->attributes.isNavi21()) { return "Load6800"; }
return "Load6810";
}

CAILResult HWLibs::wrapPspCmdKmSubmit(void *ctx, void *cmd, void *outData, void *outResponse) {
Expand Down

0 comments on commit ea76bc6

Please sign in to comment.