annotate round 3

This commit is contained in:
Dethrace Labs 2025-06-17 08:06:35 +12:00
parent 47b007f6d9
commit fffd355cc7
10 changed files with 32 additions and 0 deletions

View File

@ -65,6 +65,7 @@ br_angle gOld_yaw__car = 0; // suffix added to avoid duplicate symbol
br_angle gOld_zoom = 0; br_angle gOld_zoom = 0;
// GLOBAL: CARM95 0x514cf8 // GLOBAL: CARM95 0x514cf8
br_vector3 gCamera_pos_before_collide = { { 0 } }; br_vector3 gCamera_pos_before_collide = { { 0 } };
// GLOBAL: CARM95 0x514d08
int gMetal_crunch_sound_id__car[5] = { int gMetal_crunch_sound_id__car[5] = {
// suffix added to avoid duplicate symbol // suffix added to avoid duplicate symbol
5000, 5000,

View File

@ -9,6 +9,7 @@ br_allocator gAllocator = { "Death Race", DRStdlibAllocate, DRStdlibFree, DRStdl
// GLOBAL: CARM95 0x513614 // GLOBAL: CARM95 0x513614
int gNon_fatal_allocation_errors = 0; int gNon_fatal_allocation_errors = 0;
// Is 247 in DOS executable, last entry NULL // Is 247 in DOS executable, last entry NULL
// GLOBAL: CARM95 0x513618
char* gMem_names[246] = { char* gMem_names[246] = {
"", "",
"BR_MEMORY_SCRATCH", "BR_MEMORY_SCRATCH",

View File

@ -377,6 +377,7 @@ tFlic_spec gMain_flic_list[372] = {
{ "MAI2OPFL.FLI", 0, 0, 0, 0, 0, 0, NULL, 0u }, { "MAI2OPFL.FLI", 0, 0, 0, 0, 0, 0, NULL, 0u },
{ "MAI2OPGL.FLI", 0, 0, 0, 0, 0, 0, NULL, 0u } { "MAI2OPGL.FLI", 0, 0, 0, 0, 0, 0, NULL, 0u }
}; };
// GLOBAL: CARM95 0x518420
int gFlic_bunch0[29] = { int gFlic_bunch0[29] = {
10, 10,
11, 11,
@ -408,6 +409,7 @@ int gFlic_bunch0[29] = {
135, 135,
45 45
}; };
// GLOBAL: CARM95 0x518498
int gFlic_bunch1[31] = { int gFlic_bunch1[31] = {
140, 140,
141, 141,
@ -441,8 +443,11 @@ int gFlic_bunch1[31] = {
43, 43,
154 154
}; };
// GLOBAL: CARM95 0x518518
int gFlic_bunch2[8] = { 70, 71, 72, 73, 74, 56, 57, 59 }; int gFlic_bunch2[8] = { 70, 71, 72, 73, 74, 56, 57, 59 };
// GLOBAL: CARM95 0x518538
int gFlic_bunch3[13] = { 40, 41, 42, 43, 44, 45, 50, 51, 73, 74, 56, 57, 59 }; int gFlic_bunch3[13] = { 40, 41, 42, 43, 44, 45, 50, 51, 73, 74, 56, 57, 59 };
// GLOBAL: CARM95 0x518570
int gFlic_bunch4[22] = { int gFlic_bunch4[22] = {
80, 80,
81, 81,
@ -467,7 +472,9 @@ int gFlic_bunch4[22] = {
120, 120,
121 121
}; };
// GLOBAL: CARM95 0x5185c8
int gFlic_bunch5[5] = { 100, 101, 42, 43, 45 }; int gFlic_bunch5[5] = { 100, 101, 42, 43, 45 };
// GLOBAL: CARM95 0x5185e0
int gFlic_bunch6[51] = { int gFlic_bunch6[51] = {
190, 190,
191, 191,
@ -521,8 +528,11 @@ int gFlic_bunch6[51] = {
43, 43,
284 284
}; };
// GLOBAL: CARM95 0x5186b0
int gFlic_bunch7[7] = { 130, 131, 132, 42, 43, 135, 45 }; int gFlic_bunch7[7] = { 130, 131, 132, 42, 43, 135, 45 };
// GLOBAL: CARM95 0x5186d0
int gFlic_bunch8[16] = { 290, 291, 292, 293, 294, 295, 296, 297, 42, 43, 154, 301, 42, 43, 304, 305 }; int gFlic_bunch8[16] = { 290, 291, 292, 293, 294, 295, 296, 297, 42, 43, 154, 301, 42, 43, 304, 305 };
// GLOBAL: CARM95 0x518710
tFlic_bunch gFlic_bunch[9] = { tFlic_bunch gFlic_bunch[9] = {
{ COUNT_OF(gFlic_bunch0), gFlic_bunch0 }, { COUNT_OF(gFlic_bunch0), gFlic_bunch0 },
{ COUNT_OF(gFlic_bunch1), gFlic_bunch1 }, { COUNT_OF(gFlic_bunch1), gFlic_bunch1 },

View File

@ -44,6 +44,7 @@ int gPalette_munged;
int gColourValues[1]; int gColourValues[1];
// GLOBAL: CARM95 0x520048 // GLOBAL: CARM95 0x520048
int gNext_transient; int gNext_transient;
// GLOBAL: CARM95 0x520050
int gCursor_x_offsets[8] = { int gCursor_x_offsets[8] = {
6, 6,
8, 8,
@ -54,6 +55,7 @@ int gCursor_x_offsets[8] = {
16, 16,
36, 36,
}; };
// GLOBAL: CARM95 0x520070
int gCursor_y_offsets[8] = { int gCursor_y_offsets[8] = {
26, 26,
19, 19,
@ -86,6 +88,7 @@ int gCursor_gib_y_offsets[8] = {
93, 93,
106, 106,
}; };
// GLOBAL: CARM95 0x5200d0
int gCursor_giblet_sequence0[7] = { int gCursor_giblet_sequence0[7] = {
6, 6,
0, 0,
@ -95,6 +98,7 @@ int gCursor_giblet_sequence0[7] = {
4, 4,
5, 5,
}; };
// GLOBAL: CARM95 0x5200f0
int gCursor_giblet_sequence1[5] = { int gCursor_giblet_sequence1[5] = {
4, 4,
6, 6,
@ -102,6 +106,7 @@ int gCursor_giblet_sequence1[5] = {
8, 8,
9, 9,
}; };
// GLOBAL: CARM95 0x520108
int gCursor_giblet_sequence2[5] = { int gCursor_giblet_sequence2[5] = {
4, 4,
10, 10,
@ -109,6 +114,7 @@ int gCursor_giblet_sequence2[5] = {
12, 12,
13, 13,
}; };
// GLOBAL: CARM95 0x520120
int gCursor_giblet_sequence3[5] = { int gCursor_giblet_sequence3[5] = {
4, 4,
14, 14,
@ -123,6 +129,7 @@ int* gCursor_giblet_sequences[4] = {
gCursor_giblet_sequence2, gCursor_giblet_sequence2,
gCursor_giblet_sequence3, gCursor_giblet_sequence3,
}; };
// GLOBAL: CARM95 0x520148
char* gFont_names[21] = { char* gFont_names[21] = {
"TYPEABLE", "TYPEABLE",
"ORANGHED", "ORANGHED",

View File

@ -117,6 +117,7 @@ char* gRaces_file_names[] = {
"NETRACES.TXT", "NETRACES.TXT",
"NETRACES.TXT" "NETRACES.TXT"
}; };
// GLOBAL: CARM95 0x50a5a0
char* gNet_avail_names[] = { "never", "eagle", "hawk", "all" }; char* gNet_avail_names[] = { "never", "eagle", "hawk", "all" };
// GLOBAL: CARM95 0x50a5b0 // GLOBAL: CARM95 0x50a5b0
char* gFloorpan_names[] = { "GBUNDER.MAT", "BGLUNDER.MAT", "GRIMBOT.MAT", "DDBASE.MAT", "HFUNDER.MAT" }; char* gFloorpan_names[] = { "GBUNDER.MAT", "BGLUNDER.MAT", "GRIMBOT.MAT", "DDBASE.MAT", "HFUNDER.MAT" };

View File

@ -39,6 +39,7 @@ int gNet_service_disable = 0;
int gIn_net_service = 0; int gIn_net_service = 0;
// GLOBAL: CARM95 0x50d230 // GLOBAL: CARM95 0x50d230
int gPlayer_list_batch_number = 0; int gPlayer_list_batch_number = 0;
// GLOBAL: CARM95 0x50d234
int gOnly_receive_guarantee_replies = 0; int gOnly_receive_guarantee_replies = 0;
// GLOBAL: CARM95 0x50d238 // GLOBAL: CARM95 0x50d238
void* gMessage_to_free; void* gMessage_to_free;
@ -75,6 +76,7 @@ tMax_message* gMax_messages;
int gNext_guarantee; int gNext_guarantee;
// GLOBAL: CARM95 0x534c84 // GLOBAL: CARM95 0x534c84
tU32 gAsk_time; tU32 gAsk_time;
// GLOBAL: CARM95 0x551420
int gNet_initialised; int gNet_initialised;
// GLOBAL: CARM95 0x534c60 // GLOBAL: CARM95 0x534c60
int gDont_allow_joiners; int gDont_allow_joiners;
@ -104,6 +106,7 @@ int gReceived_game_scores;
#define MAX_MESAGE_STACK_SIZE 512 #define MAX_MESAGE_STACK_SIZE 512
// IDA: int __cdecl NetInitialise() // IDA: int __cdecl NetInitialise()
// FUNCTION: CARM95 0x4463c0
int NetInitialise(void) { int NetInitialise(void) {
int i; int i;
LOG_TRACE("()"); LOG_TRACE("()");
@ -249,6 +252,7 @@ void NetSendHeadupToPlayer(char* pMessage, tPlayer_ID pPlayer) {
} }
// IDA: void __cdecl InitialisePlayerStati() // IDA: void __cdecl InitialisePlayerStati()
// FUNCTION: CARM95 0x44754e
void InitialisePlayerStati(void) { void InitialisePlayerStati(void) {
int i; int i;
LOG_TRACE("()"); LOG_TRACE("()");
@ -963,6 +967,7 @@ tU32 NetGetContentsSize(tNet_message_type pType, tS32 pSize_decider) {
} }
// IDA: tU32 __usercall NetGetMessageSize@<EAX>(tNet_message_type pType@<EAX>, tS32 pSize_decider@<EDX>) // IDA: tU32 __usercall NetGetMessageSize@<EAX>(tNet_message_type pType@<EAX>, tS32 pSize_decider@<EDX>)
// FUNCTION: CARM95 0x447dd9
tU32 NetGetMessageSize(tNet_message_type pType, tS32 pSize_decider) { tU32 NetGetMessageSize(tNet_message_type pType, tS32 pSize_decider) {
LOG_TRACE("(%d, %d)", pType, pSize_decider); LOG_TRACE("(%d, %d)", pType, pSize_decider);
@ -1162,6 +1167,7 @@ int NetDisposeMessage(tNet_game_details* pDetails, tNet_message* pMessage) {
} }
// IDA: tNet_message* __usercall NetGetNextMessage@<EAX>(tNet_game_details *pDetails@<EAX>, void **pSender_address@<EDX>) // IDA: tNet_message* __usercall NetGetNextMessage@<EAX>(tNet_game_details *pDetails@<EAX>, void **pSender_address@<EDX>)
// FUNCTION: CARM95 0x448475
tNet_message* NetGetNextMessage(tNet_game_details* pDetails, void** pSender_address) { tNet_message* NetGetNextMessage(tNet_game_details* pDetails, void** pSender_address) {
LOG_TRACE("(%p, %p)", pDetails, pSender_address); LOG_TRACE("(%p, %p)", pDetails, pSender_address);

View File

@ -49,6 +49,7 @@ tRadio_bastards gRadio_bastards__newgame[11] = { // suffix added to avoid duplic
// clang-format on // clang-format on
char _name1[] = "xxxxxxxx.TXT"; // keep compiler happy char _name1[] = "xxxxxxxx.TXT"; // keep compiler happy
char _name2[] = "yyyyyyyy.TXT"; // keep compiler happy char _name2[] = "yyyyyyyy.TXT"; // keep compiler happy
// GLOBAL: CARM95 0x51ea80
char* gBasic_car_names[2] = { _name1, _name2 }; char* gBasic_car_names[2] = { _name1, _name2 };
tNet_game_options gNet_settings[8]; tNet_game_options gNet_settings[8];
tJoinable_game gGames_to_join[6]; tJoinable_game gGames_to_join[6];

View File

@ -69,6 +69,7 @@ char* gInstruc_commands[10] = {
"faction", "faction",
"reverse" "reverse"
}; };
// GLOBAL: CARM95 0x511798
float gMin_ped_gib_speeds[4] = { 10000.f, .005f, .002f, .001f }; float gMin_ped_gib_speeds[4] = { 10000.f, .005f, .002f, .001f };
float gPed_gib_distrib[4] = { 0.f, 0.33f, 0.34f, 0.33f }; float gPed_gib_distrib[4] = { 0.f, 0.33f, 0.34f, 0.33f };
float gPed_gib_speeds[4] = { 0.f, 1.f, 1.f, 1.f }; float gPed_gib_speeds[4] = { 0.f, 1.f, 1.f, 1.f };
@ -94,6 +95,7 @@ int gPed_gib_maxes[4][5] = {
{ 3, 3, 2, 3, 3 }, { 3, 3, 2, 3, 3 },
{ 3, 3, 3, 3, 3 }, { 3, 3, 3, 3, 3 },
}; };
// GLOBAL: CARM95 0x5118c8
br_scalar gExploding_ped_scale[3] = { 0.0028f, 0.0033f, 0.0045f }; br_scalar gExploding_ped_scale[3] = { 0.0028f, 0.0033f, 0.0045f };
// GLOBAL: CARM95 0x5118d8 // GLOBAL: CARM95 0x5118d8
br_vector3 gZero_v__pedestrn; // suffix added to avoid duplicate symbol br_vector3 gZero_v__pedestrn; // suffix added to avoid duplicate symbol
@ -143,6 +145,7 @@ br_material* gPath_mat_normal;
// GLOBAL: CARM95 0x536b1c // GLOBAL: CARM95 0x536b1c
br_material* gInit_pos_mat_calc; br_material* gInit_pos_mat_calc;
int gPed_other; int gPed_other;
// GLOBAL: CARM95 0x550a98
int gAttracted_pedestrians; int gAttracted_pedestrians;
// GLOBAL: CARM95 0x536aac // GLOBAL: CARM95 0x536aac
int gPed_ref_num; int gPed_ref_num;

View File

@ -26,6 +26,7 @@
#include "world.h" #include "world.h"
#include <stdlib.h> #include <stdlib.h>
// GLOBAL: CARM95 0x50f198
int gGrid_number_colour[4] = { 49u, 201u, 1u, 201u }; int gGrid_number_colour[4] = { 49u, 201u, 1u, 201u };
// GLOBAL: CARM95 0x50f1a8 // GLOBAL: CARM95 0x50f1a8
int gJust_bought_part; int gJust_bought_part;

View File

@ -27,6 +27,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
// GLOBAL: CARM95 0x50a1b0
char* gReplay_pixie_names[10] = { char* gReplay_pixie_names[10] = {
"REPLAY.PIX", "REPLAY.PIX",
"RBUTTONS.PIX", "RBUTTONS.PIX",