mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-23 06:54:16 -04:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef JASWAVEARCLOADER_H
|
|
#define JASWAVEARCLOADER_H
|
|
|
|
#include "JSystem/JAudio/JASHeapCtrl.h"
|
|
#include "dolphin/os/OSMutex.h"
|
|
|
|
namespace JASystem {
|
|
namespace WaveArcLoader {
|
|
bool init();
|
|
Kernel::THeap* getRootHeap();
|
|
void setCurrentDir(const char*);
|
|
char* getCurrentDir();
|
|
|
|
extern Kernel::THeap sAramHeap;
|
|
extern char sCurrentDir[];
|
|
};
|
|
|
|
class TWaveArc : public Kernel::TDisposer {
|
|
public:
|
|
TWaveArc();
|
|
virtual void onLoadDone() {}
|
|
virtual void onEraseDone() {}
|
|
bool loadSetup(u32);
|
|
bool eraseSetup();
|
|
static s32 loadToAramCallback(void*);
|
|
bool sendLoadCmd();
|
|
bool load(Kernel::THeap*);
|
|
bool erase();
|
|
void onDispose();
|
|
void setEntryNum(s32);
|
|
void setFileName(const char*);
|
|
|
|
/* 0x04 */ Kernel::THeap mHeap;
|
|
/* 0x4C */ int field_0x4c;
|
|
/* 0x50 */ OSMutex mMutex;
|
|
/* 0x68 */ int field_0x68;
|
|
/* 0x6C */ int mFileNo;
|
|
/* 0x70 */ int mSize;
|
|
/* 0x74 */ int field_0x74;
|
|
};
|
|
}
|
|
|
|
#endif /* JASWAVEARCLOADER_H */
|