Merge pull request #564 from ZenithMDC/skip-credits

Allow skipping credits for the port
This commit is contained in:
fgsfds authored and GitHub committed 2024-12-29 15:05:55 +01:00
commit 49cd478622
1 file changed
+15 -1
+15 -1
View File
@@ -24,6 +24,9 @@
#include "lib/vi.h"
#include "data.h"
#include "types.h"
#ifndef PLATFORM_N64
#include "input.h"
#endif
/**
* Credits
@@ -1876,11 +1879,22 @@ Gfx *creditsDraw(Gfx *gdl)
}
}
// Exit the alternative title if a button is pressed (other than L or R)
#ifdef PLATFORM_N64
#if VERSION >= VERSION_NTSC_1_0
// Exit the alternative title if a button is pressed (other than L or R)
if (g_CreditsUsingAltTitle && joyGetButtonsPressedThisFrame(0, 0xffcf))
#else
if (g_CreditsUsingAltTitle && joyGetButtons(0, 0xffff))
#endif
#else
#if VERSION >= VERSION_NTSC_1_0
// Exit to CI if a button is pressed (other than L or R), for the port
if (joyGetButtonsPressedThisFrame(0, 0xffcf) ||
inputKeyJustPressed(VK_ESCAPE))
#else
if (joyGetButtons(0, 0xffff) ||
inputKeyJustPressed(VK_ESCAPE))
#endif
#endif
{
g_TitleNextStage = STAGE_CITRAINING;