Update board detection

This commit is contained in:
dualshock-tools 2024-04-27 14:50:27 +02:00
parent 5773adfdbd
commit ad38ee688c

View File

@ -61,12 +61,14 @@ function ds4_hw_to_bm(hw_ver) {
return "JDM-011"; return "JDM-011";
} else if(a == 0x54) { } else if(a == 0x54) {
return "JDM-030"; return "JDM-030";
} else if(a == 0x64) { } else if(a == 0x64 || a == 0x74) {
return "JDM-040"; return "JDM-040";
} else if(a > 0x80 && a < 0x84) { } else if((a > 0x80 && a < 0x84) || a == 0x93) {
return "JDM-020"; return "JDM-020";
} else if(a == 0xa4) { } else if(a == 0xa4) {
return "JDM-050"; return "JDM-050";
} else if(a == 0xb0) {
return "JDM-055 (Scuf?)";
} else if(a == 0xb4) { } else if(a == 0xb4) {
return "JDM-055"; return "JDM-055";
} else { } else {
@ -78,7 +80,8 @@ function ds4_hw_to_bm(hw_ver) {
function is_rare(hw_ver) { function is_rare(hw_ver) {
a = hw_ver >> 8; a = hw_ver >> 8;
return (a == 0x74 || a == 0x93 || a == 0xb0 || a == 0xa0); b = a >> 4;
return (b == 7 || b == 9 || a == 0xb0 || a == 0xa0);
} }
async function ds4_info() { async function ds4_info() {