-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRaceScene.cpp
More file actions
38 lines (32 loc) · 1.08 KB
/
RaceScene.cpp
File metadata and controls
38 lines (32 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <common/Common.hpp>
#include <game/system/CourseMap.hpp>
#include <game/system/RaceConfig.hpp>
#include <wiimmfi/Delay.hpp>
#include <wiimmfi/Kick.hpp>
#include <wiimmfi/Reporting.hpp>
///////////////////////
// Wiimmfi Telemetry //
///////////////////////
// RaceScene::createSubsystems() patch
// Hash and report various course subfiles
// Credits: Wiimmfi
kmCallDefCpp(0x805543A4, void, CourseMap* self) {
// If we're online, send the data
// We cannot use the isOnline variable since it hasn't been initialized yet
if (RaceConfig::instance->raceScenario.settings.isOnline())
Wiimmfi::Reporting::ReportCourseSubfiles();
// Original call
self->init();
}
/////////////////////
// Wiimmfi Various //
/////////////////////
// RaceScene::createSubsystems() patch
// Reset various values before the race begins
kmBranchDefCpp(0x80554728, NULL, void) {
Wiimmfi::Reporting::sTargetFrameCount = 0;
Wiimmfi::Kick::sMustEndRace = false;
Wiimmfi::Delay::sMatchStartTime = 0;
Wiimmfi::Delay::sCumulativeDelay = 0;
Wiimmfi::Delay::sCurrentDelay = 0;
}