mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
mdx: change init_code instead of security_code for gold cab (#438)
## Link to GitHub Issue, if one exists n/a ## Description of change This changes previous security code change to init code change (#435) ## Testing
This commit is contained in:
@@ -452,15 +452,9 @@ namespace avs {
|
|||||||
security_code << "*";
|
security_code << "*";
|
||||||
}
|
}
|
||||||
security_code << EA3_MODEL;
|
security_code << EA3_MODEL;
|
||||||
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_DEST;
|
||||||
security_code << EA3_SPEC;
|
security_code << EA3_SPEC;
|
||||||
security_code << EA3_REV;
|
security_code << EA3_REV;
|
||||||
}
|
|
||||||
std::string security_code_str = security_code.str();
|
std::string security_code_str = security_code.str();
|
||||||
log_info("avs-ea3", "security code: {}", security_code_str);
|
log_info("avs-ea3", "security code: {}", security_code_str);
|
||||||
|
|
||||||
@@ -490,8 +484,13 @@ namespace avs {
|
|||||||
std::ostringstream init_code;
|
std::ostringstream init_code;
|
||||||
init_code << EA3_MODEL;
|
init_code << EA3_MODEL;
|
||||||
init_code << EA3_DEST;
|
init_code << EA3_DEST;
|
||||||
|
if (strcmp(EA3_MODEL, "MDX") == 0 && strcmp(EA3_SPEC, "I") == 0) {
|
||||||
|
init_code << "G";
|
||||||
|
init_code << "B";
|
||||||
|
} else {
|
||||||
init_code << EA3_SPEC;
|
init_code << EA3_SPEC;
|
||||||
init_code << EA3_REV;
|
init_code << EA3_REV;
|
||||||
|
}
|
||||||
init_code << EA3_EXT;
|
init_code << EA3_EXT;
|
||||||
std::string init_code_str = init_code.str();
|
std::string init_code_str = init_code.str();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user