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);
|
||||
|
||||
Reference in new issue
Block a user