add PSOBB Hangame functions

This commit is contained in:
Martin Michelsen
2024-03-22 22:23:41 -07:00
parent 325f7c6efc
commit 76bc2385ca
6 changed files with 121 additions and 1 deletions
+9
View File
@@ -2285,6 +2285,15 @@ Action a_diff_dol_files(
}
});
Action a_generate_hangame_creds(
"generate-hangame-creds", nullptr, +[](Arguments& args) {
const string& user_id = args.get<string>(1);
const string& token = args.get<string>(2);
const string& unused = args.get<string>(3, false);
string hex = format_data_string(encode_psobb_hangame_credentials(user_id, token, unused));
fprintf(stdout, "psobb.exe 1196310600 %s\n", hex.c_str());
});
Action a_format_ep3_battle_record(
"format-ep3-battle-record", nullptr, +[](Arguments& args) {
string data = read_input_data(args);