parent
6268b16e12
commit
3ed8d79000
2
Makefile
2
Makefile
|
@ -10,7 +10,7 @@ DEPS := $(OBJS:.o=.d)
|
|||
INC_DIRS := $(shell find $(SRC_DIRS) -type d)
|
||||
INC_FLAGS := $(addprefix -I,$(INC_DIRS))
|
||||
|
||||
CFLAGS ?= $(INC_FLAGS) -Wno-return-type -Wno-missing-declarations
|
||||
CFLAGS ?= $(INC_FLAGS) -Wno-return-type -Wno-missing-declarations -Werror=implicit-function-declaration
|
||||
|
||||
$(BUILD_DIR)/$(TARGET_EXEC): $(OBJS)
|
||||
$(CC) $(OBJS) -o $@ $(LDFLAGS)
|
||||
|
|
|
@ -21,7 +21,7 @@ void DOSMouseEnd() {
|
|||
br_error DOSMouseRead(br_int_32 *mouse_x, br_int_32 *mouse_y, br_uint_32 *mouse_buttons) {
|
||||
br_int_16 mx;
|
||||
br_int_16 my;
|
||||
br_int_16 ox;
|
||||
br_int_16 oy;
|
||||
static br_int_16 ox;
|
||||
static br_int_16 oy;
|
||||
}
|
||||
|
||||
|
|
|
@ -450,8 +450,8 @@ void BrNullOther() {
|
|||
// Offset: 13512
|
||||
// Size: 168
|
||||
int DfFileIdentify(br_uint_8 *magics, br_size_t n_magics) {
|
||||
char text_magics[8];
|
||||
char binary_magics[8];
|
||||
static char text_magics[8];
|
||||
static char binary_magics[8];
|
||||
}
|
||||
|
||||
// Offset: 13687
|
||||
|
|
|
@ -6,7 +6,7 @@ char rscid[53];
|
|||
// Size: 112
|
||||
br_error AddRequestedDrivers() {
|
||||
char devstr[256];
|
||||
br_boolean bAlreadyDone;
|
||||
static br_boolean bAlreadyDone;
|
||||
}
|
||||
|
||||
// Offset: 139
|
||||
|
|
|
@ -235,7 +235,7 @@ void BrTokenValueDump(br_token_value *tv, char *prefix, br_putline_cbfn *putline
|
|||
br_error BrStringToTokenValue(br_token_value *buffer, br_size_t buffer_size, char *str) {
|
||||
br_lexer *l;
|
||||
br_error r;
|
||||
br_lexer_keyword keywords[4];
|
||||
static br_lexer_keyword keywords[4];
|
||||
}
|
||||
|
||||
// Offset: 10672
|
||||
|
@ -247,7 +247,7 @@ br_error parseTokenValue(br_lexer *l, br_token_value *tv, br_size_t size) {
|
|||
int len;
|
||||
char name[40];
|
||||
br_token type;
|
||||
br_token real_types[2];
|
||||
static br_token real_types[2];
|
||||
br_error r;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,6 @@ char rscid[52];
|
|||
// Offset: 21
|
||||
// Size: 224
|
||||
br_material* SetupDefaultMaterial() {
|
||||
br_material *default_mat;
|
||||
static br_material *default_mat;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ br_matrix34* BrModelFitMap(br_model *model, int axis_0, int axis_1, br_matrix34
|
|||
br_vector3 tr;
|
||||
br_vector3 sc;
|
||||
int i;
|
||||
br_vector3 axis_vectors[6];
|
||||
static br_vector3 axis_vectors[6];
|
||||
}
|
||||
|
||||
// Offset: 1442
|
||||
|
|
|
@ -297,7 +297,7 @@ int IsCarInTheSea() {
|
|||
// EAX: car
|
||||
// EDX: pTime
|
||||
void RememberSafePosition(tCar_spec *car, tU32 pTime) {
|
||||
tU32 time_count;
|
||||
static tU32 time_count;
|
||||
int j;
|
||||
br_vector3 r;
|
||||
br_scalar ts;
|
||||
|
@ -310,7 +310,7 @@ void ControlOurCar(tU32 pTime_difference) {
|
|||
br_scalar ts;
|
||||
br_vector3 minus_k;
|
||||
tCar_spec *car;
|
||||
int steering_locked;
|
||||
static int steering_locked;
|
||||
int i;
|
||||
tU32 time;
|
||||
}
|
||||
|
@ -333,7 +333,7 @@ void CalcEngineForce(tCar_spec *c, br_scalar dt) {
|
|||
void PrepareCars(tU32 pFrame_start_time) {
|
||||
tCar_spec *car;
|
||||
int i;
|
||||
tU32 last_frame_start;
|
||||
static tU32 last_frame_start;
|
||||
}
|
||||
|
||||
// Offset: 11668
|
||||
|
@ -363,7 +363,7 @@ void ResetOldmat() {
|
|||
tCar_spec *car;
|
||||
int i;
|
||||
br_matrix34 mat;
|
||||
int normalise_count;
|
||||
static int normalise_count;
|
||||
}
|
||||
|
||||
// Offset: 13768
|
||||
|
@ -392,7 +392,7 @@ void ApplyPhysicsToCars(tU32 last_frame_time, tU32 pTime_difference) {
|
|||
int old_num_cars;
|
||||
int step_number;
|
||||
int dam_index;
|
||||
int steering_locked;
|
||||
static int steering_locked;
|
||||
tCar_spec *car;
|
||||
tCollision_info *car_info;
|
||||
tNon_car_spec *non_car;
|
||||
|
@ -542,7 +542,7 @@ void RotateCarFirstOrder(tCollision_info *c, br_scalar dt) {
|
|||
br_scalar rad;
|
||||
br_scalar e1;
|
||||
br_scalar e2;
|
||||
br_scalar max_rad;
|
||||
static br_scalar max_rad;
|
||||
}
|
||||
|
||||
// Offset: 25312
|
||||
|
@ -657,8 +657,8 @@ void CalcForce(tCar_spec *c, br_scalar dt) {
|
|||
br_scalar rr_oil_factor;
|
||||
br_matrix34 *mat;
|
||||
tMaterial_modifiers *mat_list;
|
||||
br_scalar stop_timer;
|
||||
br_scalar slide_dist;
|
||||
static br_scalar stop_timer;
|
||||
static br_scalar slide_dist;
|
||||
tDamage_type dam;
|
||||
br_scalar v;
|
||||
tSpecial_volume *vol;
|
||||
|
@ -736,7 +736,7 @@ int CollCheck(tCollision_info *c, br_scalar dt) {
|
|||
int k;
|
||||
int material;
|
||||
int noise_defeat;
|
||||
int oldk;
|
||||
static int oldk;
|
||||
br_scalar min;
|
||||
br_scalar max;
|
||||
br_vector3 edges[3];
|
||||
|
@ -787,8 +787,8 @@ void AddFrictionCarToCar(tCollision_info *car1, tCollision_info *car2, br_vector
|
|||
// Size: 233
|
||||
void ScrapeNoise(br_scalar vel, br_vector3 *position, int material) {
|
||||
tS3_volume vol;
|
||||
tS3_sound_tag scrape_tag;
|
||||
tS3_volume last_scrape_vol;
|
||||
static tS3_sound_tag scrape_tag;
|
||||
static tS3_volume last_scrape_vol;
|
||||
br_vector3 velocity;
|
||||
br_vector3 position_in_br;
|
||||
}
|
||||
|
@ -803,7 +803,7 @@ void SkidNoise(tCar_spec *pC, int pWheel_num, br_scalar pV, int material) {
|
|||
br_vector3 wv;
|
||||
br_vector3 wvw;
|
||||
br_scalar ts;
|
||||
tS3_volume last_skid_vol[2];
|
||||
static tS3_volume last_skid_vol[2];
|
||||
int i;
|
||||
}
|
||||
|
||||
|
@ -819,8 +819,8 @@ void StopSkid(tCar_spec *pC) {
|
|||
// EDX: position
|
||||
// EBX: material
|
||||
void CrashNoise(br_vector3 *pForce, br_vector3 *position, int material) {
|
||||
tS3_sound_tag crunch_tag;
|
||||
tS3_volume last_crunch_vol;
|
||||
static tS3_sound_tag crunch_tag;
|
||||
static tS3_volume last_crunch_vol;
|
||||
tS3_volume vol;
|
||||
br_vector3 velocity;
|
||||
}
|
||||
|
@ -871,7 +871,7 @@ void CrushBoundingBox(tCar_spec *c, int crush_only) {
|
|||
// Offset: 56728
|
||||
// Size: 279
|
||||
void AddCollPoint(br_scalar dist, br_vector3 *p, br_vector3 *norm, br_vector3 *r, br_vector3 *n, br_vector3 *dir, int num, tCollision_info *c) {
|
||||
br_scalar d[4];
|
||||
static br_scalar d[4];
|
||||
int i;
|
||||
int furthest;
|
||||
}
|
||||
|
@ -1137,7 +1137,7 @@ void SetAmbientPratCam(tCar_spec *pCar) {
|
|||
br_scalar abs_omega_y;
|
||||
br_scalar abs_omega_z;
|
||||
tU32 the_time;
|
||||
tU32 last_time_on_ground;
|
||||
static tU32 last_time_on_ground;
|
||||
}
|
||||
|
||||
// Offset: 67700
|
||||
|
@ -1194,8 +1194,8 @@ tCar_spec* GetRaceLeader() {
|
|||
// Offset: 71688
|
||||
// Size: 555
|
||||
void AmIGettingBoredWatchingCameraSpin() {
|
||||
tU32 time_of_death;
|
||||
tU32 headup_timer;
|
||||
static tU32 time_of_death;
|
||||
static tU32 headup_timer;
|
||||
tCar_spec *car;
|
||||
char s[256];
|
||||
}
|
||||
|
@ -1256,7 +1256,7 @@ void CheckDisablePlingMaterials(tCar_spec *pCar) {
|
|||
// EAX: c
|
||||
// EDX: pTime
|
||||
void PositionExternalCamera(tCar_spec *c, tU32 pTime) {
|
||||
int old_camera_mode;
|
||||
static int old_camera_mode;
|
||||
br_camera *camera_ptr;
|
||||
}
|
||||
|
||||
|
@ -1302,12 +1302,12 @@ int IncidentCam(tCar_spec *c, tU32 pTime) {
|
|||
br_vector3 murderer_pos;
|
||||
br_scalar ts;
|
||||
tCar_spec *car2;
|
||||
tU32 next_incident_time;
|
||||
tIncident_type type;
|
||||
float severity;
|
||||
tIncident_info info;
|
||||
int random;
|
||||
int count;
|
||||
static tU32 next_incident_time;
|
||||
static tIncident_type type;
|
||||
static float severity;
|
||||
static tIncident_info info;
|
||||
static int random;
|
||||
static int count;
|
||||
br_scalar temp;
|
||||
br_vector3 old_cam_pos;
|
||||
int removed;
|
||||
|
@ -1344,7 +1344,7 @@ void PanningExternalCamera(tCar_spec *c, tU32 pTime) {
|
|||
br_matrix34 *m1;
|
||||
br_vector3 tv;
|
||||
br_scalar ts;
|
||||
int inside_camera_zone;
|
||||
static int inside_camera_zone;
|
||||
}
|
||||
|
||||
// Offset: 78640
|
||||
|
@ -1430,7 +1430,7 @@ void NormalPositionExternalCamera(tCar_spec *c, tU32 pTime) {
|
|||
void MoveWithWheels(tCar_spec *c, br_vector3 *vn, int manual_swing) {
|
||||
br_angle yaw;
|
||||
br_angle theta;
|
||||
int move_with_wheels;
|
||||
static int move_with_wheels;
|
||||
}
|
||||
|
||||
// Offset: 82916
|
||||
|
@ -1449,9 +1449,9 @@ void SwingCamera(tCar_spec *c, br_matrix34 *m1, br_matrix34 *m2, br_vector3 *vn,
|
|||
br_scalar cos_dtheta;
|
||||
br_scalar sign;
|
||||
int manual_swing;
|
||||
br_angle omega;
|
||||
int elapsed_time;
|
||||
br_vector3 old_vn;
|
||||
static br_angle omega;
|
||||
static int elapsed_time;
|
||||
static br_vector3 old_vn;
|
||||
}
|
||||
|
||||
// Offset: 84744
|
||||
|
@ -1561,7 +1561,7 @@ void FlyCar(tCar_spec *c, br_scalar dt) {
|
|||
br_vector3 step;
|
||||
br_matrix34 *mat;
|
||||
br_angle theta;
|
||||
br_scalar vel;
|
||||
static br_scalar vel;
|
||||
tFace_ref faces[20];
|
||||
tBounds bnds;
|
||||
}
|
||||
|
@ -1678,11 +1678,11 @@ int CollideTwoCars(tCollision_info *car1, tCollision_info *car2, int pPass) {
|
|||
br_vector3 sep;
|
||||
br_vector3 tv;
|
||||
int add_point;
|
||||
br_vector3 oldr1;
|
||||
br_vector3 oldr2;
|
||||
br_vector3 oldn1;
|
||||
br_vector3 oldn2;
|
||||
int is_old_point_available;
|
||||
static br_vector3 oldr1;
|
||||
static br_vector3 oldr2;
|
||||
static br_vector3 oldn1;
|
||||
static br_vector3 oldn2;
|
||||
static int is_old_point_available;
|
||||
}
|
||||
|
||||
// Offset: 99720
|
||||
|
@ -1847,7 +1847,7 @@ int TestForNan(float *f) {
|
|||
// Offset: 116696
|
||||
// Size: 89
|
||||
void CheckCameraHither() {
|
||||
int old_hither;
|
||||
static int old_hither;
|
||||
}
|
||||
|
||||
// Offset: 116788
|
||||
|
@ -1929,7 +1929,7 @@ int DoPullActorFromWorld(br_actor *pActor) {
|
|||
// Size: 904
|
||||
// EAX: pTime
|
||||
void CheckForDeAttachmentOfNonCars(tU32 pTime) {
|
||||
tU32 total_time;
|
||||
static tU32 total_time;
|
||||
br_bounds bnds;
|
||||
int i;
|
||||
int j;
|
||||
|
|
|
@ -374,7 +374,7 @@ int HasCarFallenOffWorld(tCar_spec *pCar) {
|
|||
// Offset: 5824
|
||||
// Size: 250
|
||||
void CheckForBeingOutOfThisWorld() {
|
||||
tU32 sLast_check;
|
||||
static tU32 sLast_check;
|
||||
int time_step;
|
||||
}
|
||||
|
||||
|
@ -450,12 +450,12 @@ void CheckOtherRacingKeys() {
|
|||
int flip_up_flag;
|
||||
tCar_spec *car;
|
||||
float bodywork_repair_amount;
|
||||
tU32 total_repair_cost;
|
||||
tS3_sound_tag sound_tag;
|
||||
br_scalar amount;
|
||||
int NeedToExpandBoundingBox;
|
||||
int total_difference;
|
||||
int stopped_repairing;
|
||||
static tU32 total_repair_cost;
|
||||
static tS3_sound_tag sound_tag;
|
||||
static br_scalar amount;
|
||||
static int NeedToExpandBoundingBox;
|
||||
static int total_difference;
|
||||
static int stopped_repairing;
|
||||
}
|
||||
|
||||
// Offset: 10508
|
||||
|
@ -469,7 +469,7 @@ int CheckRecoverCost() {
|
|||
void SortOutRecover(tCar_spec *pCar) {
|
||||
int the_time;
|
||||
int val;
|
||||
int old_time;
|
||||
static int old_time;
|
||||
}
|
||||
|
||||
// Offset: 11048
|
||||
|
@ -544,7 +544,7 @@ void PollCameraControls(tU32 pTime_difference) {
|
|||
int swirl_mode;
|
||||
int up_and_down_mode;
|
||||
int going_up;
|
||||
int last_swirl_mode;
|
||||
static int last_swirl_mode;
|
||||
}
|
||||
|
||||
// Offset: 15008
|
||||
|
@ -591,7 +591,7 @@ void LoseDosh() {
|
|||
// Offset: 15688
|
||||
// Size: 301
|
||||
void ToggleMap() {
|
||||
int was_in_cockpit;
|
||||
static int was_in_cockpit;
|
||||
}
|
||||
|
||||
// Offset: 15992
|
||||
|
@ -706,8 +706,8 @@ void UserSendMessage() {
|
|||
// Offset: 18460
|
||||
// Size: 815
|
||||
void EnterUserMessage() {
|
||||
int about_to_die;
|
||||
tU32 next_time;
|
||||
static int about_to_die;
|
||||
static tU32 next_time;
|
||||
char *the_message;
|
||||
char *p;
|
||||
int len;
|
||||
|
|
|
@ -29,10 +29,10 @@ void SetJoystickArrays(int *pKeys, int pMark) {
|
|||
int i;
|
||||
tS32 joyX;
|
||||
tS32 joyY;
|
||||
tS32 old_joy1X;
|
||||
tS32 old_joy1Y;
|
||||
tS32 old_joy2X;
|
||||
tS32 old_joy2Y;
|
||||
static tS32 old_joy1X;
|
||||
static tS32 old_joy1Y;
|
||||
static tS32 old_joy2X;
|
||||
static tS32 old_joy2Y;
|
||||
}
|
||||
|
||||
// Offset: 996
|
||||
|
@ -98,13 +98,13 @@ int AnyKeyDown() {
|
|||
// Offset: 2248
|
||||
// Size: 451
|
||||
tU32* KevKeyService() {
|
||||
tU32 sum;
|
||||
tU32 code;
|
||||
tU32 code2;
|
||||
int last_key;
|
||||
int last_single_key;
|
||||
tU32 last_time;
|
||||
tU32 return_val[2];
|
||||
static tU32 sum;
|
||||
static tU32 code;
|
||||
static tU32 code2;
|
||||
static int last_key;
|
||||
static int last_single_key;
|
||||
static tU32 last_time;
|
||||
static tU32 return_val[2];
|
||||
tU32 keys;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ void ToggleInfo() {
|
|||
// Size: 220
|
||||
void CalculateFrameRate() {
|
||||
tU32 new_time;
|
||||
int last_rates[30];
|
||||
static int last_rates[30];
|
||||
int new_rate;
|
||||
int i;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ void MungeHeadups() {
|
|||
float bearing;
|
||||
br_material *nearby;
|
||||
tPixelmap_user_data *user;
|
||||
tU32 last_rattle_time;
|
||||
static tU32 last_rattle_time;
|
||||
}
|
||||
|
||||
// Offset: 3384
|
||||
|
@ -70,7 +70,7 @@ void UpdateFramePeriod(tU32 *pCamera_period) {
|
|||
tU32 new_tick_count;
|
||||
tU32 new_camera_tick_count;
|
||||
int error;
|
||||
int last_AR_mode;
|
||||
static int last_AR_mode;
|
||||
}
|
||||
|
||||
// Offset: 3972
|
||||
|
@ -82,8 +82,8 @@ tU32 GetLastTickCount() {
|
|||
// Size: 192
|
||||
void CheckTimer() {
|
||||
tS32 time_left;
|
||||
tU32 last_time_in_seconds;
|
||||
tU32 last_demo_time_in_seconds;
|
||||
static tU32 last_time_in_seconds;
|
||||
static tU32 last_demo_time_in_seconds;
|
||||
}
|
||||
|
||||
// Offset: 4212
|
||||
|
|
|
@ -35,16 +35,16 @@ void StartMainMenu() {
|
|||
// EAX: pTime_out
|
||||
// EDX: pContinue_allowed
|
||||
int DoMainMenuInterface(tU32 pTime_out, int pContinue_allowed) {
|
||||
tFlicette flicker_on1[8];
|
||||
tFlicette flicker_off1[8];
|
||||
tFlicette push1[8];
|
||||
tMouse_area mouse_areas1[8];
|
||||
tInterface_spec interface_spec1;
|
||||
tFlicette flicker_on2[5];
|
||||
tFlicette flicker_off2[5];
|
||||
tFlicette push2[5];
|
||||
tMouse_area mouse_areas2[5];
|
||||
tInterface_spec interface_spec2;
|
||||
static tFlicette flicker_on1[8];
|
||||
static tFlicette flicker_off1[8];
|
||||
static tFlicette push1[8];
|
||||
static tMouse_area mouse_areas1[8];
|
||||
static tInterface_spec interface_spec1;
|
||||
static tFlicette flicker_on2[5];
|
||||
static tFlicette flicker_off2[5];
|
||||
static tFlicette push2[5];
|
||||
static tMouse_area mouse_areas2[5];
|
||||
static tInterface_spec interface_spec2;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -74,11 +74,11 @@ int QuitVerifyDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pE
|
|||
// Size: 333
|
||||
// EAX: pReplace_background
|
||||
int DoVerifyQuit(int pReplace_background) {
|
||||
tFlicette flicker_on[2];
|
||||
tFlicette flicker_off[2];
|
||||
tFlicette push[2];
|
||||
tMouse_area mouse_areas[2];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[2];
|
||||
static tFlicette flicker_off[2];
|
||||
static tFlicette push[2];
|
||||
static tMouse_area mouse_areas[2];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
int switched_res;
|
||||
int woz_in_race;
|
||||
|
|
|
@ -19,7 +19,7 @@ void SendCarData(tU32 pNext_frame_time) {
|
|||
tCollision_info *ncar;
|
||||
int i;
|
||||
int j;
|
||||
tU32 last_time;
|
||||
static tU32 last_time;
|
||||
tU32 time;
|
||||
int damaged_wheels;
|
||||
}
|
||||
|
@ -140,8 +140,8 @@ void EnableCar(tCar_spec *pCar) {
|
|||
void DoNetworkHeadups(int pCredits) {
|
||||
char s[256];
|
||||
char s2[256];
|
||||
tU32 last_flash;
|
||||
int flash_state;
|
||||
static tU32 last_flash;
|
||||
static int flash_state;
|
||||
}
|
||||
|
||||
// Offset: 8932
|
||||
|
@ -180,8 +180,8 @@ void DoNetScores2(int pOnly_sort_scores) {
|
|||
int len;
|
||||
int ascending_order;
|
||||
char s[256];
|
||||
tU32 last_flash;
|
||||
int flash_state;
|
||||
static tU32 last_flash;
|
||||
static int flash_state;
|
||||
tHeadup_pair headup_pairs[6];
|
||||
}
|
||||
|
||||
|
@ -345,7 +345,7 @@ void ReceivedGameplay(tNet_contents *pContents, tNet_message *pMessage, tU32 pRe
|
|||
int gPixel_buffer_size;
|
||||
char *gPixels_copy;
|
||||
char *gPalette_copy;
|
||||
int pause_semaphore;
|
||||
static int pause_semaphore;
|
||||
}
|
||||
|
||||
// Offset: 18696
|
||||
|
|
|
@ -66,21 +66,21 @@ void FrankAnneDraw(int pCurrent_choice, int pCurrent_mode) {
|
|||
// Offset: 1032
|
||||
// Size: 123
|
||||
int FrankieOrAnnie() {
|
||||
tFlicette flicker_off[3];
|
||||
tFlicette push[3];
|
||||
tMouse_area mouse_areas[3];
|
||||
tRectile recopy_areas[2];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[3];
|
||||
static tFlicette push[3];
|
||||
static tMouse_area mouse_areas[3];
|
||||
static tRectile recopy_areas[2];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
// Offset: 1156
|
||||
// Size: 88
|
||||
int SelectSkillLevel() {
|
||||
tFlicette flicker_off[4];
|
||||
tFlicette push[4];
|
||||
tMouse_area mouse_areas[4];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[4];
|
||||
static tFlicette push[4];
|
||||
static tMouse_area mouse_areas[4];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -205,12 +205,12 @@ int NewNetGoAhead(int *pCurrent_choice, int *pCurrent_mode) {
|
|||
// Size: 287
|
||||
// EAX: pGame_to_join
|
||||
tJoin_or_host_result JoinOrHostGame(tNet_game_details **pGame_to_join) {
|
||||
tFlicette flicker_on[2];
|
||||
tFlicette flicker_off[2];
|
||||
tFlicette push[2];
|
||||
tMouse_area mouse_areas[3];
|
||||
tRectile recopy_areas[1];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[2];
|
||||
static tFlicette flicker_off[2];
|
||||
static tFlicette push[2];
|
||||
static tMouse_area mouse_areas[3];
|
||||
static tRectile recopy_areas[1];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -389,11 +389,11 @@ void DrawNetOptBox(int pCurrent_choice, int pCurrent_mode) {
|
|||
// Size: 111
|
||||
// EAX: pGame_options
|
||||
void DoNetOptions(tNet_game_options *pGame_options) {
|
||||
tFlicette flicker_on[14];
|
||||
tFlicette flicker_off[14];
|
||||
tFlicette push[14];
|
||||
tMouse_area mouse_areas[14];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[14];
|
||||
static tFlicette flicker_off[14];
|
||||
static tFlicette push[14];
|
||||
static tMouse_area mouse_areas[14];
|
||||
static tInterface_spec interface_spec;
|
||||
}
|
||||
|
||||
// Offset: 8560
|
||||
|
@ -464,11 +464,11 @@ void SetGameTarget(tNet_game_type *pGame_type, tNet_game_options *pGame_options)
|
|||
// EDX: pGame_options
|
||||
// EBX: pRace_index
|
||||
int NetGameChoices(tNet_game_type *pGame_type, tNet_game_options *pGame_options, int *pRace_index) {
|
||||
tFlicette flicker_on[11];
|
||||
tFlicette flicker_off[11];
|
||||
tFlicette push[11];
|
||||
tMouse_area mouse_areas[11];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[11];
|
||||
static tFlicette flicker_off[11];
|
||||
static tFlicette push[11];
|
||||
static tMouse_area mouse_areas[11];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
|
|
@ -77,10 +77,10 @@ int SoundClick(int *pCurrent_choice, int *pCurrent_mode, int pX_offset, int pY_o
|
|||
// Offset: 1436
|
||||
// Size: 77
|
||||
void DoSoundOptions() {
|
||||
tFlicette flicker_off[3];
|
||||
tFlicette push[3];
|
||||
tMouse_area mouse_areas[3];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[3];
|
||||
static tFlicette push[3];
|
||||
static tMouse_area mouse_areas[3];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -192,10 +192,10 @@ void DrawGraphBox(int pCurrent_choice, int pCurrent_mode) {
|
|||
// Offset: 4296
|
||||
// Size: 128
|
||||
void DoGraphicsOptions() {
|
||||
tFlicette flicker_off[14];
|
||||
tFlicette push[14];
|
||||
tMouse_area mouse_areas[14];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[14];
|
||||
static tFlicette push[14];
|
||||
static tMouse_area mouse_areas[14];
|
||||
static tInterface_spec interface_spec;
|
||||
}
|
||||
|
||||
// Offset: 4424
|
||||
|
@ -290,7 +290,7 @@ void DrawKeyAssignments(int pCurrent_choice, int pCurrent_mode) {
|
|||
int end_box;
|
||||
tDR_font *font_n;
|
||||
tDR_font *font_k;
|
||||
int on_radios_last_time;
|
||||
static int on_radios_last_time;
|
||||
}
|
||||
|
||||
// Offset: 8452
|
||||
|
@ -360,10 +360,10 @@ void DrawInitialKMRadios() {
|
|||
// Offset: 10796
|
||||
// Size: 366
|
||||
void DoControlOptions() {
|
||||
tFlicette flicker_off[4];
|
||||
tFlicette push[4];
|
||||
tMouse_area mouse_areas[5];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[4];
|
||||
static tFlicette push[4];
|
||||
static tMouse_area mouse_areas[5];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
int swap_font_1;
|
||||
int swap_font_2;
|
||||
|
@ -390,10 +390,10 @@ void DrawDisabledOptions() {
|
|||
// Offset: 11448
|
||||
// Size: 146
|
||||
void DoOptions() {
|
||||
tFlicette flicker_off[4];
|
||||
tFlicette push[4];
|
||||
tMouse_area mouse_areas[4];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[4];
|
||||
static tFlicette push[4];
|
||||
static tMouse_area mouse_areas[4];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
|
|
@ -118,11 +118,11 @@ void StartChangeRace() {
|
|||
// EDX: pNet_mode
|
||||
// EBX: pNet_race_sequence
|
||||
int ChangeRace(int *pRace_index, int pNet_mode, tNet_sequence_type pNet_race_sequence) {
|
||||
tFlicette flicker_on[4];
|
||||
tFlicette flicker_off[4];
|
||||
tFlicette push[4];
|
||||
tMouse_area mouse_areas[5];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[4];
|
||||
static tFlicette flicker_off[4];
|
||||
static tFlicette push[4];
|
||||
static tMouse_area mouse_areas[5];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -191,11 +191,11 @@ int ChangeCarGoAhead(int *pCurrent_choice, int *pCurrent_mode) {
|
|||
// EDX: pCar_index
|
||||
// EBX: pNet_game
|
||||
int ChangeCar(int pNet_mode, int *pCar_index, tNet_game_details *pNet_game) {
|
||||
tFlicette flicker_on[4];
|
||||
tFlicette flicker_off[4];
|
||||
tFlicette push[4];
|
||||
tMouse_area mouse_areas[4];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[4];
|
||||
static tFlicette flicker_off[4];
|
||||
static tFlicette push[4];
|
||||
static tMouse_area mouse_areas[4];
|
||||
static tInterface_spec interface_spec;
|
||||
int i;
|
||||
int result;
|
||||
int power_up_levels[3];
|
||||
|
@ -360,11 +360,11 @@ void DrawPartsShop(int pCurrent_choice, int pCurrent_mode) {
|
|||
// Size: 195
|
||||
// EAX: pFade_away
|
||||
void DoPartsShop(int pFade_away) {
|
||||
tFlicette flicker_on[7];
|
||||
tFlicette flicker_off[7];
|
||||
tFlicette push[7];
|
||||
tMouse_area mouse_areas[7];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[7];
|
||||
static tFlicette flicker_off[7];
|
||||
static tFlicette push[7];
|
||||
static tMouse_area mouse_areas[7];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -380,10 +380,10 @@ int AutoPartsDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEs
|
|||
// Offset: 10152
|
||||
// Size: 166
|
||||
tSO_result DoAutoPartsShop() {
|
||||
tFlicette flicker_off[3];
|
||||
tFlicette push[3];
|
||||
tMouse_area mouse_areas[3];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[3];
|
||||
static tFlicette push[3];
|
||||
static tMouse_area mouse_areas[3];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -487,18 +487,18 @@ void SelectRaceDraw(int pCurrent_choice, int pCurrent_mode) {
|
|||
char *sub_pt;
|
||||
char sub_str[16];
|
||||
tU32 *test;
|
||||
tU32 test2;
|
||||
static tU32 test2;
|
||||
}
|
||||
|
||||
// Offset: 13784
|
||||
// Size: 754
|
||||
// EAX: pSecond_time_around
|
||||
tSO_result DoSelectRace(int *pSecond_time_around) {
|
||||
tFlicette flicker_on[7];
|
||||
tFlicette flicker_off[7];
|
||||
tFlicette push[7];
|
||||
tMouse_area mouse_areas[7];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_on[7];
|
||||
static tFlicette flicker_off[7];
|
||||
static tFlicette push[7];
|
||||
static tMouse_area mouse_areas[7];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
int default_choice;
|
||||
int suggested;
|
||||
|
@ -611,10 +611,10 @@ int ChallengeDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pEs
|
|||
// Offset: 18740
|
||||
// Size: 172
|
||||
void DoChallengeScreen() {
|
||||
tFlicette flicker_off[2];
|
||||
tFlicette push[2];
|
||||
tMouse_area mouse_areas[2];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[2];
|
||||
static tFlicette push[2];
|
||||
static tMouse_area mouse_areas[2];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -717,10 +717,10 @@ void SortOpponents() {
|
|||
// Offset: 20564
|
||||
// Size: 326
|
||||
tSO_result DoGridPosition() {
|
||||
tFlicette flicker_off[3];
|
||||
tFlicette push[3];
|
||||
tMouse_area mouse_areas[5];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[3];
|
||||
static tFlicette push[3];
|
||||
static tMouse_area mouse_areas[5];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -736,7 +736,6 @@ void CheckPlayersAreResponding() {
|
|||
void NetSynchStartStart() {
|
||||
}
|
||||
|
||||
|
||||
// Offset: 21212
|
||||
// Size: 759
|
||||
// EAX: pCurrent_choice
|
||||
|
@ -774,21 +773,21 @@ int ExitWhenReady(int *pCurrent_choice, int *pCurrent_mode) {
|
|||
// Size: 246
|
||||
// EAX: pMode
|
||||
tSO_result NetSynchRaceStart2(tNet_synch_mode pMode) {
|
||||
tFlicette flicker_on_hf[2];
|
||||
tFlicette flicker_off_hf[2];
|
||||
tFlicette push_hf[2];
|
||||
tMouse_area mouse_areas_hf[2];
|
||||
tInterface_spec interface_spec_hf;
|
||||
tFlicette flicker_on_hs[1];
|
||||
tFlicette flicker_off_hs[1];
|
||||
tFlicette push_hs[1];
|
||||
tMouse_area mouse_areas_hs[1];
|
||||
tInterface_spec interface_spec_hs;
|
||||
tFlicette flicker_on_c[1];
|
||||
tFlicette flicker_off_c[1];
|
||||
tFlicette push_c[1];
|
||||
tMouse_area mouse_areas_c[1];
|
||||
tInterface_spec interface_spec_c;
|
||||
static tFlicette flicker_on_hf[2];
|
||||
static tFlicette flicker_off_hf[2];
|
||||
static tFlicette push_hf[2];
|
||||
static tMouse_area mouse_areas_hf[2];
|
||||
static tInterface_spec interface_spec_hf;
|
||||
static tFlicette flicker_on_hs[1];
|
||||
static tFlicette flicker_off_hs[1];
|
||||
static tFlicette push_hs[1];
|
||||
static tMouse_area mouse_areas_hs[1];
|
||||
static tInterface_spec interface_spec_hs;
|
||||
static tFlicette flicker_on_c[1];
|
||||
static tFlicette flicker_off_c[1];
|
||||
static tFlicette push_c[1];
|
||||
static tMouse_area mouse_areas_c[1];
|
||||
static tInterface_spec interface_spec_c;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
|
|
@ -89,8 +89,8 @@ void RampUpRate(float *pRate, tU32 pTime) {
|
|||
// EDX: pCurrent_mode
|
||||
void DrawSummary(int pCurrent_choice, int pCurrent_mode) {
|
||||
tU32 the_time;
|
||||
tU32 last_time;
|
||||
tU32 last_change_time;
|
||||
static tU32 last_time;
|
||||
static tU32 last_change_time;
|
||||
int credit_delta;
|
||||
float old_temp_increase;
|
||||
float rank_delta;
|
||||
|
@ -125,10 +125,10 @@ int SummCheckGameOver(int *pCurrent_choice, int *pCurrent_mode) {
|
|||
// Offset: 2896
|
||||
// Size: 288
|
||||
tSO_result DoEndRaceSummary1() {
|
||||
tFlicette flicker_off[1];
|
||||
tFlicette push[1];
|
||||
tMouse_area mouse_areas[1];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[1];
|
||||
static tFlicette push[1];
|
||||
static tMouse_area mouse_areas[1];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
int completed_already;
|
||||
}
|
||||
|
@ -296,10 +296,10 @@ int DamageScrnDone(int pCurrent_choice, int pCurrent_mode, int pGo_ahead, int pE
|
|||
// Offset: 10780
|
||||
// Size: 286
|
||||
tSO_result DoEndRaceSummary2() {
|
||||
tFlicette flicker_off[3];
|
||||
tFlicette push[3];
|
||||
tMouse_area mouse_areas[3];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[3];
|
||||
static tFlicette push[3];
|
||||
static tMouse_area mouse_areas[3];
|
||||
static tInterface_spec interface_spec;
|
||||
int result;
|
||||
}
|
||||
|
||||
|
@ -328,10 +328,10 @@ void NetSumDraw(int pCurrent_choice, int pCurrent_mode) {
|
|||
// Offset: 12104
|
||||
// Size: 188
|
||||
void DoNetRaceSummary() {
|
||||
tFlicette flicker_off[1];
|
||||
tFlicette push[1];
|
||||
tMouse_area mouse_areas[1];
|
||||
tInterface_spec interface_spec;
|
||||
static tFlicette flicker_off[1];
|
||||
static tFlicette push[1];
|
||||
static tMouse_area mouse_areas[1];
|
||||
static tInterface_spec interface_spec;
|
||||
int i;
|
||||
int result;
|
||||
tS32 start_time;
|
||||
|
|
|
@ -85,7 +85,7 @@ br_scalar SkidLen(int pSkid) {
|
|||
// EBX: pPos
|
||||
// ECX: pMaterial_index
|
||||
void SkidSection(tCar_spec *pCar, int pWheel_num, br_vector3 *pPos, int pMaterial_index) {
|
||||
tU16 skid;
|
||||
static tU16 skid;
|
||||
br_material *material;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Watcom dump tools
|
||||
# Watcom symbol dump codegen tools
|
||||
|
||||
### parse_dump.py
|
||||
### codegen.py
|
||||
|
||||
Takes an [exedump](https://github.com/jeff-1amstudios/open-watcom-v2/tree/master/bld/exedump) output file and generates skeleton "c" project files containing functions, structs, enums and global variables.
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
# Writes c code into "./_generated" directory
|
||||
#
|
||||
# Usage: parse_dump.py <path to dump file>
|
||||
# Usage: codegen.py <path to dump file>
|
||||
#######################################################
|
||||
import sys
|
||||
import re
|
||||
|
@ -662,8 +662,9 @@ def generate_c_file(module):
|
|||
# print module['types'][fn['type']]
|
||||
for v in fn['local_vars'][arg_count:]:
|
||||
c_file.write(' ' * INDENT_SPACES)
|
||||
str = resolve_type_str(module, v['type'], v['name'])
|
||||
c_file.write(str)
|
||||
if 'CONST' in v['addr_type']:
|
||||
c_file.write('static ')
|
||||
c_file.write(resolve_type_str(module, v['type'], v['name']))
|
||||
c_file.write(';\n')
|
||||
c_file.write('}\n\n')
|
||||
|
Loading…
Reference in New Issue