mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
Merge pull request #564 from ZenithMDC/skip-credits
Allow skipping credits for the port
This commit is contained in:
1 file changed
+15
-1
+15
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user