mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 15:01:53 -04:00
a072e71c33
* Z2SoundHandles: decomp portions
* start decomping: Z2SpeechMgr2, Z2SoundHandles
* Z2SoundHandles::stopAllSounds(): ok
* Z2SoundHandles::getHandleUserData(): ok
* Z2SoundInfo: header
* Z2SoundObjBase::framework(): ok
* Z2SoundObjBase::Z2SoundObjBase(), Z2SoundObjBase::init(): ok
* Z2SoundObjBase::~Z2SoundObjBase(): ok
* Z2SoundObjBase::stopOK(): ok
* Z2SoundObjBase::stopOK, incomplete Z2SoundObjBase::dispose()
* clang-format
* Z2SoundObjBase::dispose(): ok
* JAISound::operator->(): null assert
* JAIAudience: stub
* Z2SoundObject::{init, deleteObject, isAlive}: ok
* Z2SeMgr: elaborate struct (and decl JAISoundHandles to support this)
* start subclassing Z2SoundObjBase; nonmatching Z2SoundObjSimple::init()
* Z2SeMGr::{incrCrowdSize, decrCrowdSize}: ok
* Z2MultiSeMgr::resetMultiSePos(): ok
* Z2WolfHowlMgr.h: decls
* Z2SoundStarter: move to decls and fix postprocess.py symbol pass
* Z2AudioArcLoader: decls
* Z2SoundObjMgr: ok some fns
- deleteEnemyAll()
- isTwilightBattle()
- setGhostEnemyState()
additionally elaborates parts of the Z2Creature hierarchy
* delete unused .s files and add tool to find them (only runs on linux)
* run clang-format
* postprocess.py: comment out debugging
* add python step to ok-check workflow
* address review comments
* address review comments
Co-authored-by: notyourav <65437533+notyourav@users.noreply.github.com>
Co-authored-by: Pheenoh <pheenoh@gmail.com>
Co-authored-by: notyourav <65437533+notyourav@users.noreply.github.com>
114 lines
3.3 KiB
C++
114 lines
3.3 KiB
C++
/* Z2SpeechMgr2.cpp autogenerated by split.py v0.3 at 2021-01-04 22:38:34.026034 */
|
|
|
|
#include "Z2AudioLib/Z2SpeechMgr2/Z2SpeechMgr2.h"
|
|
#include "Z2AudioLib/Z2EnvSeMgr/Z2EnvSeMgr.h"
|
|
#include "Z2AudioLib/Z2SeqMgr/Z2SeqMgr.h"
|
|
#include "Z2AudioLib/Z2SoundStarter/Z2SoundStarter.h"
|
|
#include "Z2AudioLib/Z2StatusMgr/Z2StatusMgr.h"
|
|
#include "global.h"
|
|
|
|
#ifdef NONMATCHING
|
|
Z2SpeechMgr2::Z2SpeechMgr2()
|
|
: mSound(NULL), field_0x4(0), mRandom(0), mSpeechStarter(), field_0x3f8(0), mTextCount(-1),
|
|
field_0x3fc(0), field_0x3fe(0), field_0x3ff(0), field_0x401(0) {
|
|
// lbl_80450B70 = this;
|
|
// this->sound = NULL;
|
|
// this->field_0x4 = 0;
|
|
// this->random
|
|
for (int i = 0; i < 0x40; i++)
|
|
this->field_0x402[i] = -1;
|
|
}
|
|
#else
|
|
asm Z2SpeechMgr2::Z2SpeechMgr2() {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CBC60.s"
|
|
}
|
|
#endif
|
|
|
|
extern "C" {
|
|
// __dt__15Z2SpeechStarterFv
|
|
// Z2SpeechStarter::~Z2SpeechStarter(void)
|
|
asm void func_802CBCEC(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CBCEC.s"
|
|
}
|
|
|
|
// setString__12Z2SpeechMgr2FPCUssUcUs
|
|
// Z2SpeechMgr2::setString(const unsigned short*, short, unsigned char, unsigned short)
|
|
asm void Z2SpeechMgr2_NS_setString(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CBD88.s"
|
|
}
|
|
|
|
// setTextCount__12Z2SpeechMgr2Fs
|
|
// Z2SpeechMgr2::setTextCount(short)
|
|
asm void Z2SpeechMgr2_NS_setTextCount(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CBF60.s"
|
|
}
|
|
|
|
// speakOneWord__12Z2SpeechMgr2Fb
|
|
// Z2SpeechMgr2::speakOneWord(bool)
|
|
asm void Z2SpeechMgr2_NS_speakOneWord(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CC190.s"
|
|
}
|
|
|
|
// isNonVerbal__12Z2SpeechMgr2Fv
|
|
// Z2SpeechMgr2::isNonVerbal(void)
|
|
asm void Z2SpeechMgr2_NS_isNonVerbal(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CC2FC.s"
|
|
}
|
|
|
|
// selectUnit__12Z2SpeechMgr2Fb
|
|
// Z2SpeechMgr2::selectUnit(bool)
|
|
asm void Z2SpeechMgr2_NS_selectUnit(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CC4C0.s"
|
|
}
|
|
|
|
// selectTail__12Z2SpeechMgr2Fv
|
|
// Z2SpeechMgr2::selectTail(void)
|
|
asm void Z2SpeechMgr2_NS_selectTail(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CC738.s"
|
|
}
|
|
|
|
// framework__12Z2SpeechMgr2Fv
|
|
// Z2SpeechMgr2::framework(void)
|
|
asm void Z2SpeechMgr2_NS_framework(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CC9D0.s"
|
|
}
|
|
|
|
// playOneShotVoice__12Z2SpeechMgr2FUcUsP3VecSc
|
|
// Z2SpeechMgr2::playOneShotVoice(unsigned char, unsigned short, Vec*, char)
|
|
asm void Z2SpeechMgr2_NS_playOneShotVoice(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CCA18.s"
|
|
}
|
|
|
|
// isMidnaSpeak__12Z2SpeechMgr2Fv
|
|
// Z2SpeechMgr2::isMidnaSpeak(void)
|
|
asm void Z2SpeechMgr2_NS_isMidnaSpeak(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CCF88.s"
|
|
}
|
|
|
|
// __ct__15Z2SpeechStarterFv
|
|
// Z2SpeechStarter::Z2SpeechStarter(void)
|
|
asm Z2SpeechStarter::Z2SpeechStarter(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CCFB8.s"
|
|
}
|
|
|
|
// startSound__15Z2SpeechStarterF10JAISoundIDP14JAISoundHandlePCQ29JGeometry8TVec3<f>UlfffffUl
|
|
// Z2SpeechStarter::startSound(JAISoundID, JAISoundHandle*, JGeometry::TVec3<f>, unsigned long,
|
|
// float, float, float, float, float, unsigned long)
|
|
asm void func_802CCFF8(void) {
|
|
nofralloc
|
|
#include "Z2AudioLib/Z2SpeechMgr2/asm/func_802CCFF8.s"
|
|
}
|
|
};
|