Bind cup reports and linked competition phases to live engine data (by Codex)
This commit is contained in:
1 parent
545e16f153
commit
6b4aa9772d
26 files changed
+402
-33
No files matched your search
@@ -210,7 +210,7 @@ void add_second_leg_and_winner(OtherGamesRow& row, uint16_t second, bool present
|
||||
OtherGamesProjection other_games_from_game(const ModernState& game, const TextDb& texts,
|
||||
int competition, int linked_page, int requested_round,
|
||||
OtherGamesDisplayMode display_mode, int participant_offset,
|
||||
bool source_new_selection) {
|
||||
bool source_new_selection, bool include_rows) {
|
||||
const StaticMemory& memory = game.memory;
|
||||
if (competition < 0 || competition >= 0x14) invalid("unsupported competition selector");
|
||||
if (linked_page < 0 || linked_page >= kCupEntries) invalid("invalid linked-page index");
|
||||
@@ -319,7 +319,7 @@ OtherGamesProjection other_games_from_game(const ModernState& game, const TextDb
|
||||
if (out.descriptor_competition == 12) out.scheduled_day_mode = true;
|
||||
// Source paints TEXTD1186 and returns before touching team/result/schedule arrays for a
|
||||
// blocked future or unfinished stage. Preserve that boundary for incomplete live records.
|
||||
if (!out.fixtures_available) return out;
|
||||
if (!out.fixtures_available || !include_rows) return out;
|
||||
|
||||
const uint32_t team_list = memory.pointer(address);
|
||||
const uint32_t first_results = memory.pointer(address + 0x0c);
|
||||
|
||||
@@ -29,6 +29,7 @@ namespace bmh::modern {
|
||||
// therefore not evidence that the entire Original menu interaction is Native-neutral.
|
||||
// `linked_page` follows the descriptor's Source +0x17 parallel-group link, then +0x16 next-stage
|
||||
// link. `round == -1` selects CupRound's live round; otherwise it is range-checked.
|
||||
// `include_rows=false` returns metadata only, without touching participant/result arrays.
|
||||
// `participant_offset` is Source's low-seven-bit display cursor (multiples of 16). The
|
||||
// displayed-round group row list remains complete; the mode/offset applies to knockout rows.
|
||||
OtherGamesProjection other_games_from_game(const ModernState& game, const TextDb& texts,
|
||||
@@ -36,6 +37,7 @@ OtherGamesProjection other_games_from_game(const ModernState& game, const TextDb
|
||||
int round = -1,
|
||||
OtherGamesDisplayMode display_mode = OtherGamesDisplayMode::detail,
|
||||
int participant_offset = 0,
|
||||
bool source_new_selection = true);
|
||||
bool source_new_selection = true,
|
||||
bool include_rows = true);
|
||||
|
||||
} // namespace bmh::modern
|
||||
Reference in new issue
Block a user