Merge pull request #85 from BDMCGaming/main
Some checks failed
Build CI / build (push) Has been cancelled

Update Friend Code Calculation to have Pokemon Battle Revolution (RPB) use NDS calculation
This commit is contained in:
Palapeli 2025-08-20 21:08:13 -04:00 committed by GitHub
commit 93269e8b8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,7 +46,7 @@ func crc8(data []byte) byte {
func getCRCType(gameId string) (crcType byte, reverse bool) {
reverse = false
if strings.HasPrefix(gameId, "RSB") {
if strings.HasPrefix(gameId, "RSB") || strings.HasPrefix(gameId, "RPB") {
crcType = fcCRC8
return
}