mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-30 00:16:19 -04:00
1ef592dd6e
Removes the strong dependency on a single header file and moves declarations to their respective header file. This allows for making dependencies explicit in cpp files and other headers, and also makes it much easier to track where everything related to a particular component is. This change also creates a few header files that previously didn't exist, making it much nicer for people implementing things, as they won't need to create the header file, it'll just be there ready to go. Ideally functions.h wouldn't even be a thing, as this header adds a lot of preprocessing overhead due to its size, and will continue to grow significantly larger over the lifespan of the project, which can also impact the performance of editors that do dependency lookups and context-aware syntax highlighting.
45 lines
1.1 KiB
C
45 lines
1.1 KiB
C
#ifndef Z2AUDIOMGR_H_
|
|
#define Z2AUDIOMGR_H_
|
|
|
|
#include "JSystem/JKernel/JKRAramArchive/JKRAramArchive.h"
|
|
#include "JSystem/JKernel/JKRSolidHeap/JKRSolidHeap.h"
|
|
#include "Z2AudioLib/Z2SceneMgr/Z2SceneMgr.h"
|
|
|
|
struct Z2AudioMgr {
|
|
Z2AudioMgr();
|
|
~Z2AudioMgr();
|
|
|
|
void gframeProcess(void);
|
|
Z2AudioMgr* setOutputMode(unsigned long outputMode);
|
|
u32 resetProcess(u32 param_1, bool param_2);
|
|
bool hasReset(void) const;
|
|
void resetRecover(void);
|
|
void init(JKRSolidHeap*, unsigned long, void*, JKRArchive*);
|
|
|
|
u8 unk_1[0x4a4];
|
|
Z2SceneMgr sceneMgr;
|
|
u8 unk_2[0xdad];
|
|
};
|
|
|
|
extern Z2AudioMgr lbl_803DBF4C;
|
|
extern Z2AudioMgr* lbl_80451368;
|
|
|
|
extern "C" {
|
|
void func_802CDCEC(void);
|
|
void func_8036679C(void);
|
|
void func_80362ABC(void);
|
|
void func_802CD7F8(void);
|
|
void func_802CDB1C(void);
|
|
void func_802CDB68(void);
|
|
void func_802CDC08(void);
|
|
|
|
void resetProcess__10Z2AudioMgrFUlb(void);
|
|
void setOutputMode__10Z2AudioMgrFUl(void);
|
|
|
|
void Z2AudioMgr_NS_gframeProcess(void);
|
|
void Z2AudioMgr_NS_init(void);
|
|
void Z2AudioMgr_NS_resetRecover(void);
|
|
void Z2AudioMgr_NS_zeldaGFrameWork(void);
|
|
}
|
|
|
|
#endif // Z2AUDIOMGR_H_
|