document challenge mode time encoding

This commit is contained in:
Martin Michelsen
2023-07-09 21:04:36 -07:00
parent b1531139c0
commit 73a68911e8
4 changed files with 45 additions and 9 deletions
+1 -1
View File
@@ -725,7 +725,7 @@ static const QuestScriptOpcodeDefinition opcode_defs[] = {
{0xF8B5, "write4", {REG, REG}, {}, V2, V2},
{0xF8B5, "write4", {}, {INT32, REG}, V3, V4},
{0xF8B6, "check_for_hacking", {REG}, {}, V2, V2}, // Returns a bitmask of 5 different types of detectable hacking. But it only works on DCv2 - it crashes on all other versions.
{0xF8B7, nullptr, {REG}, {}, V2, V4}, // TODO (DX) - Challenge mode. Appears to be timing-related; regA is expected to be in [60, 3600]. Encodes the value with some strange masking key, even though it's never sent over the network and is only decoded locally.
{0xF8B7, nullptr, {REG}, {}, V2, V4}, // TODO (DX) - Challenge mode. Appears to be timing-related; regA is expected to be in [60, 3600]. Encodes the value with encrypt_challenge_time even though it's never sent over the network and is only decrypted locally.
{0xF8B8, "disable_retry_menu", {}, {}, V2, V4},
{0xF8B9, "chl_recovery", {}, {}, V2, V4},
{0xF8BA, "load_guild_card_file_creation_time_to_flag_buf", {}, {}, V2, V4},