Merge remote-tracking branch 'upstream/main' into decomp_merge

This commit is contained in:
Yanis42
2023-09-23 13:19:14 +02:00
3 changed files with 18 additions and 5 deletions

View File

@@ -15,11 +15,6 @@
*/
// #define DETERMINISTIC_BUILD
/**
* Skips the N64 logo and boots directly into the game if defined (may already be skipped by the options below)
*/
// #define SKIP_N64_BOOT_LOGO
/**
* Options for booting directly into a scene, the map select or the file select, instead of the title screen.
*/

View File

@@ -84,4 +84,14 @@
// Use the button colors of the N64 version instead of GameCube
#define N64_BTN_COLORS
/**
* Skips the N64 logo and boots directly into the game if defined (may already be skipped by the options below)
*/
// #define SKIP_N64_BOOT_LOGO
/**
* Use Majora's Masks' N64 Logo logic
*/
// #define MM_N64_BOOT_LOGO
#endif

View File

@@ -55,7 +55,11 @@ void ConsoleLogo_Update(ConsoleLogoState* this) {
this->coverAlpha += this->addAlpha;
if (this->coverAlpha <= 0) {
this->coverAlpha = 0;
#ifdef MM_N64_BOOT_LOGO
this->addAlpha = 12;
#else
this->addAlpha = 3;
#endif
} else if (this->coverAlpha >= 255) {
this->coverAlpha = 255;
this->exit = true;
@@ -196,6 +200,10 @@ void ConsoleLogo_Init(GameState* thisx) {
this->ult = 0;
this->timer = 20;
this->coverAlpha = 255;
#ifdef MM_N64_BOOT_LOGO
this->addAlpha = -12;
#else
this->addAlpha = -3;
#endif
this->visibleDuration = 0x3C;
}