support B2 patches on BB

This commit is contained in:
Martin Michelsen
2024-05-05 10:51:13 -07:00
parent 27bbb2c7e4
commit 70413668d8
4 changed files with 83 additions and 12 deletions
+2 -4
View File
@@ -305,10 +305,8 @@ bool specific_version_is_xb(uint32_t specific_version) {
}
bool specific_version_is_bb(uint32_t specific_version) {
// TODO: We should actually find a way to determine BB specific_versions, but
// there are so many mods out there, and there's a patch server anyway, so it
// seems not worth the effort
return specific_version == 0x35303030;
// BB specific_versions are 5XXX, where X is an encoding of the revision number
return (specific_version & 0xFF000000) == 0x35000000;
}
const char* file_path_token_for_version(Version version) {