mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
Z2AudioLib: Migrate declarations out of functions.h to respective files (#96)
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.
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#ifndef Z2AUDIOARCLOADER_H_
|
||||
#define Z2AUDIOARCLOADER_H_
|
||||
|
||||
#include "JSystem/JAudio2/JAUAudioArcInterpreter.h"
|
||||
#include "JSystem/JAudio2/JAUAudioArcLoader/JAUAudioArcLoader.h"
|
||||
#include "global.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
class Z2AudioArcLoader {
|
||||
Z2AudioArcLoader(JAUSection*);
|
||||
@@ -13,4 +14,13 @@ class Z2AudioArcLoader {
|
||||
void readBSTN(const void*, u32);
|
||||
};
|
||||
|
||||
extern "C" {
|
||||
void func_802A9B54(void);
|
||||
void func_802A9B58(void);
|
||||
|
||||
void __ct__16Z2AudioArcLoaderFP10JAUSection(void);
|
||||
void readBFCA__16Z2AudioArcLoaderFPCv(void);
|
||||
void readCommandMore__16Z2AudioArcLoaderFUl(void);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user