mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-09-09 12:34:06 -04:00
N64 PAL 1.1 Support (#2773)
* Initial PAL 1.1 support * 1.1 Asset Fixes * Fixed issue where N64 builds were being flagged as MQ * Misc fixes * Updated LUS submodule * Fixed up logo strings * Updated readme and linux/mac scripts with new hash
This commit is contained in:
committed by
GitHub
parent
820fdf78cc
commit
7e1ee6e23e
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "z_en_mag.h"
|
||||
#include "objects/object_mag/object_mag.h"
|
||||
#include <GameVersions.h>
|
||||
|
||||
#define FLAGS (ACTOR_FLAG_UPDATE_WHILE_CULLED | ACTOR_FLAG_DRAW_WHILE_CULLED)
|
||||
|
||||
@@ -618,6 +619,29 @@ s16 GetCharArraySize(const char* str) {
|
||||
return length;
|
||||
}
|
||||
|
||||
static char* EnMag_GetCopyrightTex()
|
||||
{
|
||||
uint32_t gameVersion = ResourceMgr_GetGameVersion(0);
|
||||
|
||||
switch (gameVersion) {
|
||||
case OOT_PAL_11:
|
||||
return gTitleCopyrightN64Tex;
|
||||
default:
|
||||
return gTitleCopyrightGCTex;
|
||||
}
|
||||
}
|
||||
|
||||
static int EnMag_GetCopyrightTexWidth() {
|
||||
uint32_t gameVersion = ResourceMgr_GetGameVersion(0);
|
||||
|
||||
switch (gameVersion) {
|
||||
case OOT_PAL_11:
|
||||
return 128;
|
||||
default:
|
||||
return 160;
|
||||
}
|
||||
}
|
||||
|
||||
void EnMag_DrawInnerMq(Actor* thisx, PlayState* play, Gfx** gfxp) {
|
||||
static s16 textAlpha = 0;
|
||||
static s16 textFadeDirection = 0;
|
||||
@@ -701,7 +725,8 @@ void EnMag_DrawInnerMq(Actor* thisx, PlayState* play, Gfx** gfxp) {
|
||||
|
||||
gDPPipeSync(gfx++);
|
||||
gDPSetPrimColor(gfx++, 0, 0, 255, 255, 255, (s16)this->subAlpha);
|
||||
EnMag_DrawImageRGBA32(&gfx, 174, 145, gTitleMasterQuestSubtitleTex, 128, 32);
|
||||
EnMag_DrawImageRGBA32(&gfx, 174, 145, gTitleMasterQuestSubtitleTex,
|
||||
EnMag_GetCopyrightTexWidth(), 32);
|
||||
}
|
||||
|
||||
Gfx_SetupDL_39Ptr(&gfx);
|
||||
@@ -712,8 +737,9 @@ void EnMag_DrawInnerMq(Actor* thisx, PlayState* play, Gfx** gfxp) {
|
||||
gDPSetPrimColor(gfx++, 0, 0, (s16)this->copyrightAlpha, (s16)this->copyrightAlpha, (s16)this->copyrightAlpha,
|
||||
(s16)this->copyrightAlpha);
|
||||
|
||||
if ((s16)this->copyrightAlpha != 0) {
|
||||
gDPLoadTextureBlock(gfx++, gTitleCopyright19982003Tex, G_IM_FMT_IA, G_IM_SIZ_8b, 160, 16, 0,
|
||||
if ((s16)this->copyrightAlpha != 0)
|
||||
{
|
||||
gDPLoadTextureBlock(gfx++, EnMag_GetCopyrightTex(), G_IM_FMT_IA, G_IM_SIZ_8b, 128, 16, 0,
|
||||
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK,
|
||||
G_TX_NOLOD, G_TX_NOLOD);
|
||||
|
||||
@@ -905,7 +931,8 @@ void EnMag_DrawInnerVanilla(Actor* thisx, PlayState* play, Gfx** gfxp) {
|
||||
(s16)this->copyrightAlpha);
|
||||
|
||||
if ((s16)this->copyrightAlpha != 0) {
|
||||
gDPLoadTextureBlock(gfx++, gTitleCopyright19982003Tex, G_IM_FMT_IA, G_IM_SIZ_8b, 160, 16, 0,
|
||||
gDPLoadTextureBlock(gfx++, EnMag_GetCopyrightTex(), G_IM_FMT_IA, G_IM_SIZ_8b, EnMag_GetCopyrightTexWidth(), 16,
|
||||
0,
|
||||
G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMIRROR | G_TX_CLAMP, G_TX_NOMASK, G_TX_NOMASK,
|
||||
G_TX_NOLOD, G_TX_NOLOD);
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <libultraship/libultra.h>
|
||||
#include "global.h"
|
||||
#include "align_asset_macro.h"
|
||||
|
||||
struct EnMag;
|
||||
|
||||
@@ -40,4 +41,10 @@ typedef enum {
|
||||
/* 0x04 */ MAG_STATE_POST_DISPLAY
|
||||
} EnMagGlobalState;
|
||||
|
||||
#define dgTitleCopyrightGCTex "__OTR__objects/object_mag/gTitleCopyright19982003Tex"
|
||||
static const ALIGN_ASSET(2) char gTitleCopyrightGCTex[] = dgTitleCopyrightGCTex;
|
||||
|
||||
#define dgTitleCopyrightN64Tex "__OTR__objects/object_mag/gTitleCopyright1998Tex"
|
||||
static const ALIGN_ASSET(2) char gTitleCopyrightN64Tex[] = dgTitleCopyrightN64Tex;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user