From 228fedece193cf49e0e1ebbe0a2b92aba69f4ea4 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Thu, 19 May 2022 00:20:50 -0700 Subject: [PATCH] fix ep3 meseta command --- src/CommandFormats.hh | 2 +- src/ReceiveCommands.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CommandFormats.hh b/src/CommandFormats.hh index ef996175..98505163 100644 --- a/src/CommandFormats.hh +++ b/src/CommandFormats.hh @@ -1235,7 +1235,7 @@ struct C_Meseta_GC_Ep3_BA { struct S_Meseta_GC_Ep3_BA { le_uint32_t remaining_meseta; - le_uint32_t unknown; // Sylverant documents this as "total meseta ever earned" + le_uint32_t total_meseta_awarded; le_uint32_t request_token; // Should match the token sent by the client }; diff --git a/src/ReceiveCommands.cc b/src/ReceiveCommands.cc index 935dda28..e916e947 100644 --- a/src/ReceiveCommands.cc +++ b/src/ReceiveCommands.cc @@ -399,7 +399,7 @@ void process_ep3_jukebox(shared_ptr s, shared_ptr c, uint16_t command, uint32_t, const string& data) { const auto& in_cmd = check_size_t(data); - S_Meseta_GC_Ep3_BA out_cmd = {1000000, 0x80E8, in_cmd.request_token}; + S_Meseta_GC_Ep3_BA out_cmd = {1000000, 1000000, in_cmd.request_token}; auto l = s->find_lobby(c->lobby_id); if (!l || !(l->flags & Lobby::Flag::EPISODE_3_ONLY)) {