dethrace/tools/watcom-dump
Jeff Harris f97a2d4959
Update README.md
2019-11-14 17:42:47 -08:00
..
README.md Update README.md 2019-11-14 17:42:47 -08:00
parse_dump.py Dont forward declare every single struct 2019-11-14 17:37:39 -08:00
split-dump.sh Fixes some functions having incorrect parameters 2019-11-14 13:53:30 -08:00

README.md

Watcom dump tools

parse_dump.py

Takes an exedump output file and generates skeleton "c" project files containing functions, structs, enums and global variables.

Was used to generate the first commits of src directory.

Example output:


typedef enum tPowerup_type {
    ePowerup_dummy = 0,
    ePowerup_instantaneous = 1,
    ePowerup_timed = 2,
    ePowerup_whole_race = 3
} tPowerup_type;

struct tPedestrian_action {
    float danger_level;
    float percentage_chance;
    int number_of_bearings;
    int number_of_sounds;
    int sounds[3];
    tBearing_sequence sequences[7];
    float initial_speed;
    float looping_speed;
    tU32 reaction_time;
};

// Offset: 9548
// Size: 1603
// EAX: c
void CalcEngineForce(tCar_spec *c, br_scalar dt) {
    br_scalar torque;
    br_scalar ts;
    br_scalar ts2;
    br_scalar brake_temp;
    int sign;
    tS32 temp_for_swap;
}

split-dump.sh

Takes a exedump output file and splits it into a single file per module for easier debugging.