Skip to content

Commit dbf7e74

Browse files
committed
Cleanup
Actually names symbol, removes debug logging, updates actions
1 parent 550774d commit dbf7e74

File tree

8 files changed

+8
-18
lines changed

8 files changed

+8
-18
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-20.04
88
timeout-minutes: 20
99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v4
1111

1212
- name: Cache
1313
id: cache-1
14-
uses: actions/cache@v2
14+
uses: actions/cache@v4
1515
with:
1616
path: cache
1717
key: ${{ runner.os }}-cache-33

src/include/racemodeonline.h

-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ typedef struct {
3030
} RaceModeOnlineVs; // Total size 0x174
3131

3232
RaceHeader2VS* GetRaceHeader2Buffer(u32 param_1, u32 playerId);
33-
void unk80653d78(u32 param_1) __attribute__((noreturn));

src/payload/main/trackcheck.S

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
.include "asm_setup.S"
22

3-
.extern DoInsertTrackIdent, unk80653d78
3+
.extern DoInsertTrackIdent, clearSendRH2
44
.global InsertTrackIdent
55

66
InsertTrackIdent:
77
mflr r9
88
stw r0, 0x110(r3) # Original instruction
99
b DoInsertTrackIdent
1010
mtlr r9
11-
b unk80653d78
11+
b clearSendRH2
1212

src/payload/main/trackcheck.c

-9
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ bool finishedTrackCheck;
1111

1212
void DoInsertTrackIdent(RaceModeOnlineVs *RaceModeOnlineVs) {
1313
if(!DWC_IsServerMyself()){
14-
OSReport("ENPTCRC: %x\n", ENPTCRC);
1514
RaceModeOnlineVs->outPacket.minimumRaceFinishTime = ENPTCRC; // Replace unused field with CRC32 of the ENPT section for the current track
1615
}
1716
return;
@@ -20,26 +19,18 @@ void DoInsertTrackIdent(RaceModeOnlineVs *RaceModeOnlineVs) {
2019
void CheckTrackIdent() {
2120
if(DWC_IsServerMyself()){
2221
u8 playerId;
23-
OSReport("Racedata->main.scenarios[0].playerCount: %x\n", Racedata->main.scenarios[0].playerCount);
2422
for (playerId = 0; playerId < Racedata->main.scenarios[0].playerCount; playerId++) {
2523
if (HideNSeekData.players[RKNetController->aidsToPids[playerId]].doneTrackCheck) {
26-
OSReport("Player %x has already checked track ident\n", playerId);
2724
continue;
2825
}
29-
OSReport("Checking Track Ident for %x\n", playerId);
30-
OSReport("Player Type: %x\n", Racedata->main.scenarios->players[playerId].playerType);
3126
if (Racedata->main.scenarios->players[playerId].playerType == PLAYER_REAL_LOCAL) {
32-
OSReport("Player %x is local\n", playerId);
3327
continue;
3428
}
3529
RaceHeader2VS* RH2 = GetRaceHeader2Buffer(ptr_miscPacketHandler, playerId);
36-
OSReport("Player returned %x, expecting %x\n", RH2->minimumRaceFinishTime, ENPTCRC);
3730
if (RH2->minimumRaceFinishTime == 0) {
38-
OSReport("Player %x has not sent track ident\n", playerId);
3931
continue;
4032
}
4133
if (RH2->minimumRaceFinishTime != ENPTCRC) {
42-
OSReport("Player %x has a different track\n", playerId);
4334
bool ret = OSDisableInterrupts();
4435
DWC_CloseConnectionHard(RKNetController->aidsToPids[playerId]);
4536
OSRestoreInterrupts(ret);

src/rmce.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,5 @@ SECTIONS {
358358
/* Track Check */
359359
InsertTrackIdentHook = 0x80538f34;
360360
CheckTrackIdentHook = 0x80539f60;
361-
unk80653d78 = 0x8064f8f0;
361+
clearSendRH2 = 0x8064f8f0;
362362
}

src/rmcj.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,5 @@ SECTIONS {
358358
/* Track Check */
359359
InsertTrackIdentHook = 0x8053ddf0;
360360
CheckTrackIdentHook = 0x8053ee1c;
361-
unk80653d78 = 0x806533e4;
361+
clearSendRH2 = 0x806533e4;
362362
}

src/rmck.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,5 @@ SECTIONS {
358358
/* Track Check */
359359
InsertTrackIdentHook = 0x8052c4c8;
360360
CheckTrackIdentHook = 0x8052d4f4;
361-
unk80653d78 = 0x80642090;
361+
clearSendRH2 = 0x80642090;
362362
}

src/rmcp.ld

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,5 +358,5 @@ SECTIONS {
358358
/* Track Check */
359359
InsertTrackIdentHook = 0x8053e470;
360360
CheckTrackIdentHook = 0x8053f49c;
361-
unk80653d78 = 0x80653d78;
361+
clearSendRH2 = 0x80653d78;
362362
}

0 commit comments

Comments
 (0)