mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-02-02 16:23:57 +03:00
add credits skip enhancement
This commit is contained in:
parent
28e31cfe3d
commit
95b2b7a930
@ -1027,6 +1027,17 @@ void Ending_Main(void) {
|
||||
gCsFrameCount++;
|
||||
gGameFrameCount++;
|
||||
|
||||
if (CVarGetInteger("gSkipCredits", 0)) {
|
||||
gControllerLock = 0;
|
||||
if (gControllerPress[0].button & START_BUTTON) {
|
||||
D_ending_80196D00 = 7;
|
||||
D_ending_80196D04 = 7200;
|
||||
D_ending_80192E70 = 7200;
|
||||
}
|
||||
} else {
|
||||
gControllerLock = 10000;
|
||||
}
|
||||
|
||||
switch (D_ending_80196D00) {
|
||||
case 0:
|
||||
gRadioState = 0;
|
||||
@ -1150,6 +1161,10 @@ void Ending_Draw(void) {
|
||||
}
|
||||
|
||||
void Ending_8018ABE8(void) {
|
||||
if (CVarGetInteger("gSkipCredits", 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (gControllerPress[3].button & Z_TRIG) {
|
||||
D_ending_80198584 ^= 1;
|
||||
}
|
||||
@ -1357,6 +1372,10 @@ void Ending_8018B174(Vec3f* actorPos, Vec3f* actorRot, f32* actorScale) {
|
||||
Vec3f sp1C = *actorRot;
|
||||
scale = *actorScale;
|
||||
|
||||
if (CVarGetInteger("gSkipCredits", 0)) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (gControllerHold[2].button & Z_TRIG) {
|
||||
if (gControllerHold[2].button & R_CBUTTONS) {
|
||||
var_fa1 += 100.0f;
|
||||
|
@ -1082,7 +1082,9 @@ void Ending_801924EC(u32 arg0) {
|
||||
}
|
||||
|
||||
void Ending_801926D4(void) {
|
||||
gControllerLock = 10000;
|
||||
if (!CVarGetInteger("gSkipCredits", 0)) {
|
||||
gControllerLock = 10000;
|
||||
}
|
||||
|
||||
Matrix_Push(&gGfxMatrix);
|
||||
|
||||
|
@ -450,6 +450,15 @@ void DrawEnhancementsMenu() {
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (UIWidgets::BeginMenu("Cutscenes")) {
|
||||
UIWidgets::CVarCheckbox("Skip Credits", "gSkipCredits", {
|
||||
.tooltip = "Allows skipping credits by pressing the START button",
|
||||
.defaultValue = true
|
||||
});
|
||||
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
if (UIWidgets::BeginMenu("Fixes")) {
|
||||
UIWidgets::CVarCheckbox("Macbeth: Level ending cutscene camera fix", "gMaCameraFix", {
|
||||
.tooltip = "Fixes a camera bug found in the code of the game"
|
||||
|
Loading…
Reference in New Issue
Block a user