Skip to content

Commit

Permalink
fix: No need to check if built-in prop exists
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualEhrmanntraut committed Oct 25, 2024
1 parent ea76bc6 commit 9916651
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions NootRX/NootRX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ void NootRXMain::processPatcher(KernelPatcher &patcher) {

PANIC_COND(this->GPU == nullptr, "NootRX", "Failed to find a compatible GPU");

if (this->GPU->getProperty("built-in") == nullptr) {
static UInt8 builtIn[] = {0x00};
this->GPU->setProperty("built-in", builtIn, arrsize(builtIn));
}
UInt8 builtIn[] = {0x00};
this->GPU->setProperty("built-in", builtIn, arrsize(builtIn));

this->deviceID = WIOKit::readPCIConfigValue(this->GPU, WIOKit::kIOPCIConfigDeviceID);
this->pciRevision = WIOKit::readPCIConfigValue(this->GPU, WIOKit::kIOPCIConfigRevisionID);
Expand Down

0 comments on commit 9916651

Please sign in to comment.