transition products object in keys.json to add additional information later

confirm windows server 2003 as bink 0x5A
add BINK information for 0x54
This commit is contained in:
Neo
2023-06-04 00:47:21 -07:00
parent e9a10e2882
commit 166a0b5df7
2 changed files with 89 additions and 34 deletions

View File

@@ -34,11 +34,11 @@ int main(int argc, char *argv[]) {
if (options.list) {
for (auto el : keys["Products"].items()) {
int id;
sscanf((el.value()[0]).get<std::string>().c_str(), "%x", &id);
sscanf((el.value()["BINK"][0]).get<std::string>().c_str(), "%x", &id);
if (id >= 0x50) {
continue;
}
std::cout << el.key() << ": " << el.value() << std::endl;
std::cout << el.key() << ": " << el.value()["BINK"] << std::endl;
}
std::cout << std::endl << std::endl