Recover exact oddball global state

This commit is contained in:
Jonas Volman committed 2026-08-20 22:45:58 -07:00
1 parent 6efbc916e2
commit 00a9b1d655
2 files changed
+118

No files matched your search

+25
View File
@@ -104,16 +104,41 @@ symbols in this file:
/* ---------- headers */
#include "cseries/cseries.h"
/* ---------- constants */
enum
{
MAXIMUM_ODDBALLS = 16,
};
/* ---------- macros */
/* ---------- structures */
struct oddball_globals
{
long score_to_win;
long team_score[MAXIMUM_ODDBALLS];
long individual_score[MAXIMUM_ODDBALLS];
long ball_spawn_timer[MAXIMUM_ODDBALLS];
long current_ball_owner[MAXIMUM_ODDBALLS];
};
typedef char verify_oddball_globals_size[
sizeof(struct oddball_globals) == 0x104 ? 1 : -1];
typedef char verify_oddball_globals_ball_spawn_timer_offset[
offsetof(struct oddball_globals, ball_spawn_timer) == 0x84 ? 1 : -1];
typedef char verify_oddball_globals_current_ball_owner_offset[
offsetof(struct oddball_globals, current_ball_owner) == 0xC4 ? 1 : -1];
/* ---------- prototypes */
/* ---------- globals */
struct oddball_globals bss_0043eba8 = { 0 };
/* ---------- public code */
void code_000a1630(