Standardize logs a bit

This commit is contained in:
Al Azif
2025-06-10 14:36:49 -07:00
parent bca8c9ac74
commit 88a6b3cfe6
2 changed files with 11 additions and 8 deletions

View File

@@ -60,7 +60,7 @@ const [is_ps4, version] = (() => {
throw RangeError(`invalid config.target: ${hex(value)}`);
}
log(`Console: PS${is_ps4 ? "4" : "5"} | Firmware: ${hex(version)}`);
log(`console: PS${is_ps4 ? "4" : "5"} | firmware: ${hex(version)}`);
return [is_ps4, version];
})();
@@ -81,7 +81,7 @@ const ssv_len = (() => {
if (0x900 <= version) {
return 0x50;
}
throw new RangeError(`unsupported console/firmware: ps${is_ps4 ? "4" : "5"}, version: ${hex(version)}`);
throw new RangeError(`unsupported: PS${is_ps4 ? "4" : "5"} | firmware ${hex(version)}`);
})();
// these constants are expected to be divisible by 2