mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-03 00:57:03 -04:00
Bump LUS version (#2849)
* Bump LUS version * Removes the "now" boolean from the LUS resource bridge functions. * Bump LUS * More LUS bump * Update soh/soh/resource/importer/AudioSampleFactory.cpp --------- Co-authored-by: briaguya <70942617+briaguya-ai@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include "global.h"
|
||||
#include "vt.h"
|
||||
#include "stdio.h"
|
||||
#include <soh/Enhancements/bootcommands.h>
|
||||
#include "soh/OTRGlobals.h"
|
||||
|
||||
|
||||
@@ -413,7 +413,7 @@ void Map_InitData(PlayState* play, s16 room) {
|
||||
//gMapData->owMinimapTexSize[mapIndex], __FILE__, __LINE__);
|
||||
|
||||
if (sEntranceIconMapIndex < 24) {
|
||||
play->interfaceCtx.mapSegment[0] = GetResourceDataByName(minimapTableOW[sEntranceIconMapIndex], true);
|
||||
play->interfaceCtx.mapSegment[0] = GetResourceDataByName(minimapTableOW[sEntranceIconMapIndex]);
|
||||
play->interfaceCtx.mapSegmentName[0] = minimapTableOW[sEntranceIconMapIndex];
|
||||
}
|
||||
|
||||
@@ -447,7 +447,8 @@ void Map_InitData(PlayState* play, s16 room) {
|
||||
//((gMapData->dgnMinimapTexIndexOffset[mapIndex] + room) * 0xFF0),
|
||||
//0xFF0, __FILE__, __LINE__);
|
||||
|
||||
play->interfaceCtx.mapSegment[0] = GetResourceDataByName(minimapTableDangeon[gMapData->dgnMinimapTexIndexOffset[mapIndex] + room], true);
|
||||
play->interfaceCtx.mapSegment[0] = GetResourceDataByName(
|
||||
minimapTableDangeon[gMapData->dgnMinimapTexIndexOffset[mapIndex] + room]);
|
||||
play->interfaceCtx.mapSegmentName[0] = minimapTableDangeon[gMapData->dgnMinimapTexIndexOffset[mapIndex] + room];
|
||||
R_COMPASS_OFFSET_X = gMapData->roomCompassOffsetX[mapIndex][room];
|
||||
R_COMPASS_OFFSET_Y = gMapData->roomCompassOffsetY[mapIndex][room];
|
||||
|
||||
@@ -332,8 +332,8 @@ void Player_SetBootData(PlayState* play, Player* this) {
|
||||
|
||||
// Custom method used to determine if we're using a custom model for link
|
||||
uint8_t Player_IsCustomLinkModel() {
|
||||
return (LINK_IS_ADULT && GetResourceIsCustomByName(gLinkAdultSkel, true)) ||
|
||||
(LINK_IS_CHILD && GetResourceIsCustomByName(gLinkChildSkel, true));
|
||||
return (LINK_IS_ADULT && GetResourceIsCustomByName(gLinkAdultSkel)) ||
|
||||
(LINK_IS_CHILD && GetResourceIsCustomByName(gLinkChildSkel));
|
||||
}
|
||||
|
||||
s32 Player_InBlockingCsMode(PlayState* play, Player* this) {
|
||||
|
||||
@@ -273,7 +273,7 @@ void func_8009638C(Gfx** displayList, void* source, void* tlut, u16 width, u16 h
|
||||
bg->b.imageFlip = 0;
|
||||
|
||||
if (ResourceMgr_ResourceIsBackground((char*) source)) {
|
||||
char* blob = (char*) GetResourceDataByName((char*) source, true);
|
||||
char* blob = (char*) GetResourceDataByName((char *) source);
|
||||
swapAndConvertJPEG(blob);
|
||||
bg->b.imagePtr = (uintptr_t) blob;
|
||||
}
|
||||
|
||||
@@ -87,7 +87,7 @@ void func_808C12C4(u8* arg1, s16 arg2) {
|
||||
|
||||
void func_808C1554(void* arg0, void* floorTex, s32 arg2, f32 arg3) {
|
||||
arg0 = GetResourceDataByNameHandlingMQ(arg0);
|
||||
floorTex = GetResourceDataByName(floorTex, false);
|
||||
floorTex = GetResourceDataByName(floorTex);
|
||||
|
||||
u16* temp_s3 = SEGMENTED_TO_VIRTUAL(arg0);
|
||||
u16* temp_s1 = SEGMENTED_TO_VIRTUAL(floorTex);
|
||||
@@ -186,8 +186,8 @@ void BossDodongo_Init(Actor* thisx, PlayState* play) {
|
||||
Collider_SetJntSph(play, &this->collider, &this->actor, &sJntSphInit, this->items);
|
||||
|
||||
if (Flags_GetClear(play, play->roomCtx.curRoom.num)) { // KD is dead
|
||||
u16* LavaFloorTex = GetResourceDataByName(gDodongosCavernBossLavaFloorTex, false);
|
||||
u16* LavaFloorRockTex = GetResourceDataByName(sLavaFloorRockTex, false);
|
||||
u16* LavaFloorTex = GetResourceDataByName(gDodongosCavernBossLavaFloorTex);
|
||||
u16* LavaFloorRockTex = GetResourceDataByName(sLavaFloorRockTex);
|
||||
temp_s1_3 = SEGMENTED_TO_VIRTUAL(LavaFloorTex);
|
||||
temp_s2 = SEGMENTED_TO_VIRTUAL(LavaFloorRockTex);
|
||||
Actor_Kill(&this->actor);
|
||||
@@ -1018,8 +1018,8 @@ void BossDodongo_Update(Actor* thisx, PlayState* play2) {
|
||||
}
|
||||
|
||||
if (this->unk_1C6 != 0) {
|
||||
u16* ptr1 = GetResourceDataByName(sLavaFloorLavaTex, false);
|
||||
u16* ptr2 = GetResourceDataByName(sLavaFloorRockTex, false);
|
||||
u16* ptr1 = GetResourceDataByName(sLavaFloorLavaTex);
|
||||
u16* ptr2 = GetResourceDataByName(sLavaFloorRockTex);
|
||||
s16 i2;
|
||||
|
||||
for (i2 = 0; i2 < 20; i2++) {
|
||||
|
||||
@@ -1220,7 +1220,7 @@ void BossGanon_SetupTowerCutscene(BossGanon* this, PlayState* play) {
|
||||
|
||||
void BossGanon_ShatterWindows(u8 windowShatterState) {
|
||||
s16 i;
|
||||
u8* templateTex = GetResourceDataByName(SEGMENTED_TO_VIRTUAL(gGanondorfWindowShatterTemplateTex), false);
|
||||
u8* templateTex = GetResourceDataByName(SEGMENTED_TO_VIRTUAL(gGanondorfWindowShatterTemplateTex));
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(sWindowShatterTex); i++) {
|
||||
if ((sWindowShatterTex[i] != 1) && (Rand_ZeroOne() < 0.03f)) {
|
||||
|
||||
@@ -397,7 +397,7 @@ void EnJsjutan_Draw(Actor* thisx, PlayState* play2) {
|
||||
|
||||
if (this->unk_164) {
|
||||
this->unk_164 = false;
|
||||
u8* carpTex = GetResourceDataByName(sCarpetTex, false);
|
||||
u8* carpTex = GetResourceDataByName(sCarpetTex);
|
||||
u8* shadTex = sShadowTex;
|
||||
for (i = 0; i < ARRAY_COUNT(sShadowTex); i++) {
|
||||
if (((u16*)carpTex)[i] != 0) { // Hack to bypass ZAPD exporting textures as u64.
|
||||
|
||||
@@ -3173,8 +3173,8 @@ void KaleidoScope_LoadDungeonMap(PlayState* play) {
|
||||
|
||||
interfaceCtx->mapSegmentName[0] = sDungeonMapTexs[R_MAP_TEX_INDEX];
|
||||
interfaceCtx->mapSegmentName[1] = sDungeonMapTexs[R_MAP_TEX_INDEX + 1];
|
||||
interfaceCtx->mapSegment[0] = GetResourceDataByName(sDungeonMapTexs[R_MAP_TEX_INDEX], true);
|
||||
interfaceCtx->mapSegment[1] = GetResourceDataByName(sDungeonMapTexs[R_MAP_TEX_INDEX + 1], true);
|
||||
interfaceCtx->mapSegment[0] = GetResourceDataByName(sDungeonMapTexs[R_MAP_TEX_INDEX]);
|
||||
interfaceCtx->mapSegment[1] = GetResourceDataByName(sDungeonMapTexs[R_MAP_TEX_INDEX + 1]);
|
||||
}
|
||||
|
||||
void KaleidoScope_UpdateDungeonMap(PlayState* play) {
|
||||
|
||||
Reference in New Issue
Block a user