Compare commits
1 Commits
cleanup/ip
...
linkgap-cl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2401bcb5c0 |
@@ -772,7 +772,7 @@ config.libs = [
|
|||||||
]
|
]
|
||||||
),
|
),
|
||||||
IPLSection("channelTitle", [
|
IPLSection("channelTitle", [
|
||||||
Object(Equivalent, "scene/channelTitle/iplChannelTitle.cpp"),
|
Object(Matching, "scene/channelTitle/iplChannelTitle.cpp"),
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
IPLSection("faceSelect", [
|
IPLSection("faceSelect", [
|
||||||
@@ -1908,7 +1908,7 @@ config.libs = [
|
|||||||
[
|
[
|
||||||
Object(Matching, "core/eggAllocator.cpp"),
|
Object(Matching, "core/eggAllocator.cpp"),
|
||||||
Object(Matching, "core/eggAudioArcPlayerMgr.cpp"),
|
Object(Matching, "core/eggAudioArcPlayerMgr.cpp"),
|
||||||
Object(Equivalent, "core/eggAudioExpMgr.cpp"),
|
Object(Matching, "core/eggAudioExpMgr.cpp"),
|
||||||
Object(Matching, "core/eggAudioFxMgr.cpp"),
|
Object(Matching, "core/eggAudioFxMgr.cpp"),
|
||||||
Object(Matching, "core/eggAudioMgr.cpp"),
|
Object(Matching, "core/eggAudioMgr.cpp"),
|
||||||
Object(Matching, "core/eggAudioHeapMgr.cpp"),
|
Object(Matching, "core/eggAudioHeapMgr.cpp"),
|
||||||
|
|||||||
@@ -34,14 +34,14 @@ namespace gui {
|
|||||||
virtual void draw(Mtx& mtx) {} // 0x14 (0x05)
|
virtual void draw(Mtx& mtx) {} // 0x14 (0x05)
|
||||||
virtual void draw() {} // 0x18 (0x06)
|
virtual void draw() {} // 0x18 (0x06)
|
||||||
|
|
||||||
#if defined(IPL_CHANNEL_TITLE_NOVTABLE) || defined(IPL_GC_SAVEDATA_NOVTABLE) || defined(IPL_MEMORY_CARD_NOVTABLE)
|
#if defined(IPL_GC_SAVEDATA_NOVTABLE) || defined(IPL_MEMORY_CARD_NOVTABLE)
|
||||||
virtual ~Interface(); // 0x1C (0x07)
|
virtual ~Interface(); // 0x1C (0x07)
|
||||||
#else
|
#else
|
||||||
virtual ~Interface() {} // 0x1C (0x07)
|
virtual ~Interface() {} // 0x1C (0x07)
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(IPL_CHANNEL_TITLE_NOVTABLE) || defined(IPL_GC_WINDOW_NOVTABLE) || defined(IPL_GC_SAVEDATA_NOVTABLE) || defined(IPL_MEMORY_CARD_NOVTABLE)
|
#if defined(IPL_GC_WINDOW_NOVTABLE) || defined(IPL_GC_SAVEDATA_NOVTABLE) || defined(IPL_MEMORY_CARD_NOVTABLE)
|
||||||
class __declspec(novtable) EventHandler {
|
class __declspec(novtable) EventHandler {
|
||||||
#else
|
#else
|
||||||
class EventHandler {
|
class EventHandler {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ namespace ipl {
|
|||||||
mbDisableCon(bDisableCon) {}
|
mbDisableCon(bDisableCon) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(IPL_CHANNEL_TITLE_NOVTABLE) || defined(IPL_GC_SAVEDATA_NOVTABLE) || defined(IPL_MEMORY_CARD_NOVTABLE)
|
#if defined(IPL_GC_SAVEDATA_NOVTABLE) || defined(IPL_MEMORY_CARD_NOVTABLE)
|
||||||
virtual ~PaneManager();
|
virtual ~PaneManager();
|
||||||
#else
|
#else
|
||||||
virtual ~PaneManager() {}
|
virtual ~PaneManager() {}
|
||||||
|
|||||||
@@ -103,7 +103,11 @@ namespace ipl {
|
|||||||
*/
|
*/
|
||||||
Object(EGG::Heap* heap, nand::LayoutFile* file, const char* directory, const char* fileName);
|
Object(EGG::Heap* heap, nand::LayoutFile* file, const char* directory, const char* fileName);
|
||||||
|
|
||||||
|
#ifdef IPL_CHANNEL_TITLE_NOVTABLE
|
||||||
|
virtual ~Object() {}
|
||||||
|
#else
|
||||||
virtual ~Object();
|
virtual ~Object();
|
||||||
|
#endif
|
||||||
|
|
||||||
void initLocationAdjust();
|
void initLocationAdjust();
|
||||||
|
|
||||||
|
|||||||
@@ -145,6 +145,13 @@ namespace ipl {
|
|||||||
mpCommonFile = commonFile;
|
mpCommonFile = commonFile;
|
||||||
mpLangFile = langFile;
|
mpLangFile = langFile;
|
||||||
}
|
}
|
||||||
|
#ifdef IPL_CHANNEL_TITLE_NOVTABLE
|
||||||
|
virtual ~LangFile() {}
|
||||||
|
virtual void read() {}
|
||||||
|
virtual bool isFinished() { return false; }
|
||||||
|
virtual int checkData() { return 0; }
|
||||||
|
virtual bool isFatalError() { return false; }
|
||||||
|
#else
|
||||||
virtual ~LangFile(); // 0x08
|
virtual ~LangFile(); // 0x08
|
||||||
|
|
||||||
virtual void read(); // 0x0C
|
virtual void read(); // 0x0C
|
||||||
@@ -152,6 +159,7 @@ namespace ipl {
|
|||||||
virtual bool isFinished(); // 0x14
|
virtual bool isFinished(); // 0x14
|
||||||
virtual int checkData(); // 0x18
|
virtual int checkData(); // 0x18
|
||||||
virtual bool isFatalError(); // 0x1C
|
virtual bool isFatalError(); // 0x1C
|
||||||
|
#endif
|
||||||
|
|
||||||
File* getCmnFile() const { return mpCommonFile; }
|
File* getCmnFile() const { return mpCommonFile; }
|
||||||
File* getLangFile() const { return mpLangFile; }
|
File* getLangFile() const { return mpLangFile; }
|
||||||
@@ -165,7 +173,11 @@ namespace ipl {
|
|||||||
public:
|
public:
|
||||||
LayoutFile(EGG::Heap* heap, const char* dirName, const char* fileName, ARCHandle* arc, bool bIsNandFile);
|
LayoutFile(EGG::Heap* heap, const char* dirName, const char* fileName, ARCHandle* arc, bool bIsNandFile);
|
||||||
LayoutFile(File* commonFile, File* langFile = NULL) : LangFile(commonFile, langFile) {}
|
LayoutFile(File* commonFile, File* langFile = NULL) : LangFile(commonFile, langFile) {}
|
||||||
|
#ifdef IPL_CHANNEL_TITLE_NOVTABLE
|
||||||
|
virtual ~LayoutFile() {} // 0x08
|
||||||
|
#else
|
||||||
virtual ~LayoutFile(); // 0x08
|
virtual ~LayoutFile(); // 0x08
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
} // namespace nand
|
} // namespace nand
|
||||||
} // namespace ipl
|
} // namespace ipl
|
||||||
|
|||||||
@@ -38,6 +38,19 @@ namespace EGG {
|
|||||||
|
|
||||||
virtual void calc(); // 0x30
|
virtual void calc(); // 0x30
|
||||||
|
|
||||||
|
#ifdef EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
|
||||||
|
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, u32 id); // 0x34
|
||||||
|
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, unsigned int id); // 0x38
|
||||||
|
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, const char* pName); // 0x3C
|
||||||
|
|
||||||
|
virtual bool prepareSound(nw4r::snd::SoundHandle* pHandle, u32 id); // 0x44
|
||||||
|
virtual bool prepareSound(nw4r::snd::SoundHandle* pHandle, unsigned int id); // 0x44
|
||||||
|
virtual bool prepareSound(nw4r::snd::SoundHandle* pHandle, const char* pName); // 0x48
|
||||||
|
|
||||||
|
virtual bool holdSound(nw4r::snd::SoundHandle* pHandle, u32 id); // 0x50
|
||||||
|
virtual bool holdSound(nw4r::snd::SoundHandle* pHandle, unsigned int id); // 0x50
|
||||||
|
virtual bool holdSound(nw4r::snd::SoundHandle* pHandle, const char* pName); // 0x58
|
||||||
|
#else
|
||||||
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, u32 id) { return mSoundArchivePlayer.StartSound(pHandle, id); } // 0x34
|
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, u32 id) { return mSoundArchivePlayer.StartSound(pHandle, id); } // 0x34
|
||||||
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, unsigned int id) { return mSoundArchivePlayer.StartSound(pHandle, id); } // 0x38
|
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, unsigned int id) { return mSoundArchivePlayer.StartSound(pHandle, id); } // 0x38
|
||||||
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, const char* pName) NO_INLINE {
|
virtual bool startSound(nw4r::snd::SoundHandle* pHandle, const char* pName) NO_INLINE {
|
||||||
@@ -66,6 +79,7 @@ namespace EGG {
|
|||||||
u32 id = changeNameToId(pName);
|
u32 id = changeNameToId(pName);
|
||||||
return mSoundArchivePlayer.HoldSound(pHandle, id);
|
return mSoundArchivePlayer.HoldSound(pHandle, id);
|
||||||
} // 0x58
|
} // 0x58
|
||||||
|
#endif
|
||||||
|
|
||||||
u32 changeNameToId(const char* pName) { return mpArchive->ConvertLabelStringToSoundId(pName); }
|
u32 changeNameToId(const char* pName) { return mpArchive->ConvertLabelStringToSoundId(pName); }
|
||||||
const char* changeIdToName(u32 id) { return mpArchive->GetSoundLabelString(id); }
|
const char* changeIdToName(u32 id) { return mpArchive->GetSoundLabelString(id); }
|
||||||
|
|||||||
@@ -19,6 +19,10 @@ namespace EGG {
|
|||||||
|
|
||||||
~SoundHeapMgr() { destroySoundHeap(); }
|
~SoundHeapMgr() { destroySoundHeap(); }
|
||||||
|
|
||||||
|
#ifdef EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
|
||||||
|
virtual bool loadState(s32 id); // 0x08
|
||||||
|
virtual s32 getCurrentLevel(); // 0x0C
|
||||||
|
#else
|
||||||
virtual bool loadState(s32 id) {
|
virtual bool loadState(s32 id) {
|
||||||
#ifdef IPL_SOUND_MATCHING
|
#ifdef IPL_SOUND_MATCHING
|
||||||
if (id > 0 && mHeap.GetCurrentLevel() >= id) {
|
if (id > 0 && mHeap.GetCurrentLevel() >= id) {
|
||||||
@@ -35,6 +39,7 @@ namespace EGG {
|
|||||||
} // 0x08
|
} // 0x08
|
||||||
|
|
||||||
virtual s32 getCurrentLevel() { return mHeap.GetCurrentLevel(); } // 0x0C
|
virtual s32 getCurrentLevel() { return mHeap.GetCurrentLevel(); } // 0x0C
|
||||||
|
#endif
|
||||||
|
|
||||||
s32 saveState() { return mHeap.SaveState(); }
|
s32 saveState() { return mHeap.SaveState(); }
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,20 @@
|
|||||||
|
#define EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
|
||||||
|
|
||||||
#include <egg/core.h>
|
#include <egg/core.h>
|
||||||
|
|
||||||
namespace EGG {
|
namespace EGG {
|
||||||
|
class Sample : public SimpleAudioMgrWithFx {
|
||||||
|
public:
|
||||||
|
Sample();
|
||||||
|
virtual ~Sample();
|
||||||
|
};
|
||||||
|
|
||||||
|
Sample::Sample() {
|
||||||
|
}
|
||||||
|
|
||||||
|
Sample::~Sample() {
|
||||||
|
}
|
||||||
|
|
||||||
SimpleAudioMgrWithFx::SimpleAudioMgrWithFx() {
|
SimpleAudioMgrWithFx::SimpleAudioMgrWithFx() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,13 @@ namespace nw4r {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
class AutoLock : private NonCopyable {
|
class AutoLock : private NonCopyable {
|
||||||
public:
|
public:
|
||||||
|
#ifdef EGG_AUDIO_EXPMGR_NO_INLINE_VIRTUALS
|
||||||
|
explicit AutoLock(T& rLockObj);
|
||||||
|
~AutoLock();
|
||||||
|
#else
|
||||||
explicit AutoLock(T& rLockObj) : mLockObj(rLockObj) { Lock(rLockObj); }
|
explicit AutoLock(T& rLockObj) : mLockObj(rLockObj) { Lock(rLockObj); }
|
||||||
~AutoLock() { Unlock(mLockObj); }
|
~AutoLock() { Unlock(mLockObj); }
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T& mLockObj; // 0x00
|
T& mLockObj; // 0x00
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
#include <private/os.h>
|
#include <private/os.h>
|
||||||
#include <private/wpad.h>
|
#include <private/wpad.h>
|
||||||
|
|
||||||
#pragma dont_instantiate ipl::math::HermiteIntp<float>
|
|
||||||
|
|
||||||
#undef IPL_CHANNEL_TITLE_NOVTABLE
|
#undef IPL_CHANNEL_TITLE_NOVTABLE
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user