Decomp ItemManager::PlayItemFanfareSfx

This commit is contained in:
Aetias
2024-04-30 19:10:44 +02:00
parent b046f33b3c
commit 5fed1c8b09
23 changed files with 102 additions and 138 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ enum ItemFlag_ {
typedef s32 ItemId;
enum ItemId_ {
/* 0x00 */ ItemId_Unk_0 = 0,
/* 0x00 */ ItemId_None = 0,
/* 0x01 */ ItemId_SmallKey = 1,
/* 0x02 */ ItemId_GreenRupee = 2,
/* 0x03 */ ItemId_OshusSword = 3,
+3 -2
View File
@@ -15,6 +15,7 @@ extern "C" {
#include "Map/MapManager.hpp"
#include "Player/EquipItem.hpp"
#include "Player/HealthManager.hpp"
#include "Sound/Sfx.hpp"
#include "System/SysNew.hpp"
#include "System/OverlayManager.hpp"
#include "Render/ModelRender.hpp"
@@ -222,7 +223,7 @@ private:
/* 138 */ u32 mSalvagedTreasureFlags;
/* 13c */ ShipPartPricesShown mShipPartPricesShown;
/* 148 */ u32 mTreasurePriceShownFlags[CEIL_DIV(Treasure_COUNT, 32)];
/* 14c */ unk8 mUnk_14c;
/* 14c */ bool mUnk_14c;
/* 14d */ u8 mUnk_14d;
/* 14e */ unk8 mUnk_14e[0x2];
/* 150 */
@@ -278,6 +279,7 @@ public:
void LoadFanfareItem(ItemId id);
bool GetFanfareItemScale(Vec3p *pScale) const;
void LoadDungeonItemModels();
static void PlayItemFanfareSfx(ItemId item);
// Ship
ShipType GetEquippedShipPart(ShipPart part) const;
@@ -327,7 +329,6 @@ public:
// Unknown
void func_ov00_020ae4dc(s32 param1);
void func_ov00_020ae648(unk32 param1, unk32 param2, unk32 param3);
};
extern ItemManager *gItemManager;
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include "global.h"
#include "types.h"
typedef u32 SfxId;
enum SfxId_ {
SfxId_FanfareDefault = 0x28,
SfxId_FanfareRupee = 0x29,
SfxId_FanfareGoldRupee = 0x2a,
SfxId_FanfareRupoor = 0x2b,
SfxId_FanfareNothing = 0x2c,
SfxId_FanfareHeartContainer = 0x2d,
SfxId_FanfareGem = 0x2e,
};