@impeeza
Recommend update to Sys-patch, add function to check the current firmware version:
Example working (tested) function:
Code:
int getFirmwareVersionInt() {
SetSysFirmwareVersion firmware;
Result rc = setsysGetFirmwareVersion(&firmware);
if (R_FAILED(rc)) {
return -1;
}
// Convert to integer format: major * 1000 + minor * 100 + micro
// Example: 12.0.1 -> 12001, 16.1.0 -> 16100, 17.0.0 -> 17000
return (firmware.major * 1000) + (firmware.minor * 100) + firmware.micro;
}
Example Use like this:
Code:
int fwVersion = getFirmwareVersionInt();
if (fwVersion == 21000){
---add code here to set patches
}
Next add menu item to set recommended patches based on detected firmware running. This should be very easy to implement and would help some newer users select the correct patches to use.