mdx: fix io mode bio2 boot crash (#435)

## Link to GitHub Issue, if one exists
n/a

## Description of change
Currently when 'bio2' specified on 'io' parameter of app-config the game
crashed due to security code check.
These codes changes security code to corresponding one and adds fake
BIO2 entry to satisfy BIO2 check.

## Testing
Tested with MDX-003 and J:I:B ident.
The game boots and A3 now displays gold cab theme and displays MATCHING
GROUP, MATCHING SIDE on NETWORK OPTIONS test mode menu.
This commit is contained in:
duel0213
2025-12-09 03:16:16 +09:00
committed by GitHub
parent 4e86cb16a2
commit 62c30d8895
2 changed files with 40 additions and 13 deletions
+9 -3
View File
@@ -452,9 +452,15 @@ namespace avs {
security_code << "*";
}
security_code << EA3_MODEL;
security_code << EA3_DEST;
security_code << EA3_SPEC;
security_code << EA3_REV;
if (strcmp(EA3_MODEL, "MDX") == 0 && strcmp(EA3_SPEC, "I") == 0) {
security_code << "E";
security_code << "B";
security_code << "B";
} else {
security_code << EA3_DEST;
security_code << EA3_SPEC;
security_code << EA3_REV;
}
std::string security_code_str = security_code.str();
log_info("avs-ea3", "security code: {}", security_code_str);