mirror of
https://github.com/GaryOderNichts/DRXUtil.git
synced 2024-11-30 11:54:21 +01:00
Save instructions
This saves 2 instructions. Not that big of a change considering we run at 1.2GHz but stacking these up shouldn't matter now.
This commit is contained in:
parent
90502b4eee
commit
61c1344a83
@ -64,13 +64,13 @@ bool FlashUtils::CheckVersionSafety(const uint32_t firmver, const uint32_t langv
|
||||
{
|
||||
// Very crude way to do the checks universally, but it works well enough
|
||||
// We take the firmware version as well as the language version (w/o region - am I stupid?) and compare them
|
||||
if ((firmver == 0x190c0117 || firmver == 0xfe000000) && ((langver & 0xFFFF00) ^ 0x170200)==0){ // Only patched firmware uses language v5890
|
||||
if ((firmver == 0x190c0117 || firmver == 0xfe000000) && ((langver & 0xFFFF00) == 0x170200)){ // Only patched firmware uses language v5890
|
||||
return true;
|
||||
} else if (firmver == 0x18140116 && not ((langver & 0xFFFF00) ^ 0x160400)){
|
||||
} else if (firmver == 0x18140116 && ((langver & 0xFFFF00) == 0x160400)){
|
||||
return true;
|
||||
} else if (firmver == 0x17080114 && not ((langver & 0xFFFF00) ^ 0x140000)){
|
||||
} else if (firmver == 0x17080114 && ((langver & 0xFFFF00) == 0x140000)){
|
||||
return true;
|
||||
} else if ((firmver == 0x151e0113 || firmver == 0x15060113 || firmver == 0x14060113) && not ((langver & 0xFFFF00) ^ 0x130000)){ // 3 versions have used language v4864
|
||||
} else if ((firmver == 0x151e0113 || firmver == 0x15060113 || firmver == 0x14060113) && ((langver & 0xFFFF00) == 0x130000)){ // 3 versions have used language v4864
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -206,4 +206,4 @@ bool FlashUtils::AbortUpdate(CCRCDCDestination dest)
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user