mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-04 02:16:03 -04:00
Fix JUT_ASSERT and several other macros (#2711)
* Fix JUT_ASSERT to be a nested define * Switch names that appear in asserts to be constants instead of defines * Replace `0` in asserts with `NULL` or `FALSE` * Fix fpclassify * Fix ARRAY_SIZE * Use G_CM3D_F_INF * More fixes for fpclassify * Remove FLOAT_LABEL * Remove incorrect FLAG_ON macro * Remove UNK_BSS macro * Silence clangd unused header warning for PCH
This commit is contained in:
@@ -186,7 +186,7 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
|
||||
TInst* tinst = header->mOffsets.mInstOffset[i].ptr(header);
|
||||
if (tinst != NULL) {
|
||||
JASBasicInst* instp = new (heap, 0) JASBasicInst();
|
||||
JUT_ASSERT(368, instp != 0);
|
||||
JUT_ASSERT(368, instp != NULL);
|
||||
instp->setVolume(tinst->mVolume);
|
||||
instp->setPitch(tinst->mPitch);
|
||||
|
||||
@@ -199,7 +199,7 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
|
||||
instp->setOsc(osc_idx, osc);
|
||||
} else {
|
||||
osc = new (heap, 0) JASOscillator::Data();
|
||||
JUT_ASSERT(386, osc != 0);
|
||||
JUT_ASSERT(386, osc != NULL);
|
||||
osc->mTarget = tosc->mTarget;
|
||||
osc->_04 = tosc->field_0x4;
|
||||
|
||||
@@ -208,7 +208,7 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
|
||||
const JASOscillator::Point* endPtr = getOscTableEndPtr(points);
|
||||
int size = endPtr - points;
|
||||
JASOscillator::Point* table = new (heap, 0) JASOscillator::Point[size];
|
||||
JUT_ASSERT(396, table != 0);
|
||||
JUT_ASSERT(396, table != NULL);
|
||||
JASCalc::bcopy(points, table, size * sizeof(JASOscillator::Point));
|
||||
osc->mTable = table;
|
||||
} else {
|
||||
@@ -220,7 +220,7 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
|
||||
const JASOscillator::Point* endPtr = getOscTableEndPtr(points);
|
||||
int size = endPtr - points;
|
||||
JASOscillator::Point* table = new (heap, 0) JASOscillator::Point[size];
|
||||
JUT_ASSERT(409, table != 0);
|
||||
JUT_ASSERT(409, table != NULL);
|
||||
JASCalc::bcopy(points, table, size * sizeof(JASOscillator::Point));
|
||||
osc->_0C = table;
|
||||
} else {
|
||||
@@ -255,7 +255,7 @@ JASBasicBank* JASBNKParser::Ver0::createBasicBank(void const* stream, JKRHeap* h
|
||||
TPerc* tperc = header->mOffsets.mPercOffset[i].ptr(header);
|
||||
if (tperc != NULL) {
|
||||
JASDrumSet* setp = new (heap, 0) JASDrumSet();
|
||||
JUT_ASSERT(509, setp != 0);
|
||||
JUT_ASSERT(509, setp != NULL);
|
||||
setp->newPercArray(0x80, heap);
|
||||
|
||||
for (int j = 0; j < 0x80; j++) {
|
||||
|
||||
@@ -40,7 +40,7 @@ void JASBasicWaveBank::setGroupCount(u32 param_0, JKRHeap* param_1) {
|
||||
delete[] mWaveGroupArray;
|
||||
mGroupCount = param_0;
|
||||
mWaveGroupArray = new(param_1, 0) TWaveGroup[param_0];
|
||||
JUT_ASSERT(62, mWaveGroupArray != 0);
|
||||
JUT_ASSERT(62, mWaveGroupArray != NULL);
|
||||
for (int i = 0; i < mGroupCount; i++) {
|
||||
mWaveGroupArray[i].mBank = this;
|
||||
}
|
||||
@@ -51,7 +51,7 @@ void JASBasicWaveBank::setGroupCount(u32 param_0, JKRHeap* param_1) {
|
||||
void JASBasicWaveBank::setWaveTableSize(u32 param_0, JKRHeap* param_1) {
|
||||
delete[] mWaveTable;
|
||||
mWaveTable = new(param_1, 0) TWaveHandle[param_0];
|
||||
JUT_ASSERT(92, mWaveTable != 0);
|
||||
JUT_ASSERT(92, mWaveTable != NULL);
|
||||
mHandleCount = param_0;
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ void JASBasicWaveBank::TWaveGroup::setWaveCount(u32 param_0, JKRHeap* param_1) {
|
||||
delete[] mCtrlWaveArray;
|
||||
mWaveCount = param_0;
|
||||
mCtrlWaveArray = new(param_1, 0) TGroupWaveInfo[param_0];
|
||||
JUT_ASSERT(255, mCtrlWaveArray != 0);
|
||||
JUT_ASSERT(255, mCtrlWaveArray != NULL);
|
||||
}
|
||||
|
||||
/* 80298B04-80298B2C 293444 0028+00 1/0 0/0 0/0 .text
|
||||
|
||||
@@ -32,7 +32,7 @@ void JASHeap::initRootHeap(void* param_0, u32 param_1) {
|
||||
|
||||
/* 8029021C-802903F4 28AB5C 01D8+00 0/0 2/2 0/0 .text alloc__7JASHeapFP7JASHeapUl */
|
||||
bool JASHeap::alloc(JASHeap* mother, u32 param_1) {
|
||||
JUT_ASSERT(120, mother != 0);
|
||||
JUT_ASSERT(120, mother != NULL);
|
||||
JASMutexLock lock(&mMutex);
|
||||
if (isAllocated()) {
|
||||
#ifdef DEBUG
|
||||
@@ -147,8 +147,8 @@ bool JASHeap::free() {
|
||||
* insertChild__7JASHeapFP7JASHeapP7JASHeapPvUlb */
|
||||
// NONMATCHING regalloc
|
||||
void JASHeap::insertChild(JASHeap* heap, JASHeap* next, void* param_2, u32 param_3, bool param_4) {
|
||||
JUT_ASSERT(537, heap != 0);
|
||||
JUT_ASSERT(538, next == 0 || &mTree == next->mTree.getParent());
|
||||
JUT_ASSERT(537, heap != NULL);
|
||||
JUT_ASSERT(538, next == NULL || &mTree == next->mTree.getParent());
|
||||
JASMutexLock lock(&mMutex);
|
||||
if (!param_4) {
|
||||
JSUTreeIterator<JASHeap> it;
|
||||
|
||||
@@ -138,7 +138,7 @@ JAUSoundTable* JAUSection::newSoundTable(void const* bst, u32 param_1, bool para
|
||||
JUT_ASSERT(286, isBuilding());
|
||||
JUT_ASSERT(287, bst);
|
||||
JUT_ASSERT(288, asSectionHeap() == this);
|
||||
JUT_ASSERT(289, sectionHeap_->sectionHeapData_.soundTable == 0);
|
||||
JUT_ASSERT(289, sectionHeap_->sectionHeapData_.soundTable == NULL);
|
||||
{
|
||||
TPushCurrentHeap push(getHeap_());
|
||||
void const* bstDst = bst;
|
||||
@@ -161,7 +161,7 @@ JAUSoundNameTable* JAUSection::newSoundNameTable(void const* bstn, u32 param_1,
|
||||
JUT_ASSERT(316, isBuilding());
|
||||
JUT_ASSERT(317, bstn);
|
||||
JUT_ASSERT(318, asSectionHeap() == this);
|
||||
JUT_ASSERT(319, sectionHeap_->sectionHeapData_.soundNameTable == 0);
|
||||
JUT_ASSERT(319, sectionHeap_->sectionHeapData_.soundNameTable == NULL);
|
||||
{
|
||||
TPushCurrentHeap push(getHeap_());
|
||||
void const* bstnDst = bstn;
|
||||
@@ -183,7 +183,7 @@ JAIStreamDataMgr* JAUSection::newStreamFileTable(void const* param_0, bool param
|
||||
JUT_ASSERT(345, asSectionHeap() == this);
|
||||
JUT_ASSERT(346, isOpen());
|
||||
JUT_ASSERT(347, isBuilding());
|
||||
JUT_ASSERT(348, sectionHeap_->sectionHeapData_.streamDataMgr_ == 0);
|
||||
JUT_ASSERT(348, sectionHeap_->sectionHeapData_.streamDataMgr_ == NULL);
|
||||
{
|
||||
TPushCurrentHeap push(getHeap_());
|
||||
JAIStreamDataMgr* r28 = NULL;
|
||||
@@ -207,7 +207,7 @@ JAIStreamDataMgr* JAUSection::newStreamFileTable(void const* param_0, bool param
|
||||
/* 802A5500-802A5598 29FE40 0098+00 0/0 1/1 0/0 .text newSeSeqCollection__10JAUSectionFPCvUl */
|
||||
JAISeqDataMgr* JAUSection::newSeSeqCollection(void const* bsc, u32 param_1) {
|
||||
// JUT_ASSERT(398, asSectionHeap() == this);
|
||||
JUT_ASSERT(399, sectionHeap_->sectionHeapData_.seSeqDataMgr_ == 0);
|
||||
JUT_ASSERT(399, sectionHeap_->sectionHeapData_.seSeqDataMgr_ == NULL);
|
||||
if (param_1) {
|
||||
bsc = newCopy(bsc, param_1, 4);
|
||||
}
|
||||
@@ -340,7 +340,7 @@ JASBank* JAUSection::newBank(void const* param_0, u32 param_1) {
|
||||
JUT_ASSERT(647, isOpen());
|
||||
JUT_ASSERT(648, isBuilding());
|
||||
JASWaveBank* waveBank = sectionHeap_->getWaveBankTable().getWaveBank(param_1);
|
||||
JUT_ASSERT(650, waveBank != 0);
|
||||
JUT_ASSERT(650, waveBank != NULL);
|
||||
TPushCurrentHeap push(getHeap_());
|
||||
u32 bank_no = JASBNKParser::getBankNumber(param_0);
|
||||
s32 r25 = getHeap_()->getFreeSize();
|
||||
@@ -368,7 +368,7 @@ JASVoiceBank* JAUSection::newVoiceBank(u32 bank_no, u32 param_1) {
|
||||
JUT_ASSERT(685, isOpen());
|
||||
JUT_ASSERT(686, isBuilding());
|
||||
JASWaveBank* waveBank = sectionHeap_->getWaveBankTable().getWaveBank(param_1);
|
||||
JUT_ASSERT(688, waveBank != 0);
|
||||
JUT_ASSERT(688, waveBank != NULL);
|
||||
TPushCurrentHeap push(getHeap_());
|
||||
JASBank* voiceBank = new JASVoiceBank();
|
||||
JASVoiceBank* voiceBank2 = (JASVoiceBank*)voiceBank;
|
||||
@@ -392,7 +392,7 @@ JASVoiceBank* JAUSection::newVoiceBank(u32 bank_no, u32 param_1) {
|
||||
bool JAUSection::beginNewBankTable(u32 param_0, u32 param_1) {
|
||||
JUT_ASSERT(714, isOpen());
|
||||
JUT_ASSERT(715, isBuilding());
|
||||
JUT_ASSERT(716, buildingBankTable_ == 0);
|
||||
JUT_ASSERT(716, buildingBankTable_ == NULL);
|
||||
JAUBankTableLink* bankTableLink = NULL;
|
||||
{
|
||||
TPushCurrentHeap push(getHeap_());
|
||||
|
||||
@@ -66,7 +66,7 @@ u32 JFWSystem::CSetUpParam::exConsoleBufferSize = 0x24FC;
|
||||
|
||||
/* 80271CD0-80271D18 26C610 0048+00 1/1 1/1 0/0 .text firstInit__9JFWSystemFv */
|
||||
void JFWSystem::firstInit() {
|
||||
JUT_ASSERT(80, rootHeap == 0);
|
||||
JUT_ASSERT(80, rootHeap == NULL);
|
||||
OSInit();
|
||||
DVDInit();
|
||||
rootHeap = JKRExpHeap::createRoot(CSetUpParam::maxStdHeaps, false);
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
|
||||
void JOREventCallbackListNode::JORAppend() {
|
||||
JORServer* pServer = JORServer::getInstance();
|
||||
JUT_ASSERT(51, pServer!=0);
|
||||
JUT_ASSERT(51, pServer!=NULL);
|
||||
pServer->appendEventCallbackListNode(this);
|
||||
}
|
||||
|
||||
void JOREventCallbackListNode::JORRemove() {
|
||||
JORServer* pServer = JORServer::getInstance();
|
||||
JUT_ASSERT(57, pServer!=0);
|
||||
JUT_ASSERT(57, pServer!=NULL);
|
||||
pServer->removeEventCallbackListNode(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -286,7 +286,7 @@ u32 JKRAramArchive::fetchResource_subroutine(u32 entryNum, u32 length, JKRHeap*
|
||||
case COMPRESSION_NONE:
|
||||
{
|
||||
buffer = (u8*)(JKRAllocFromHeap(pHeap, alignedLen, 0x20));
|
||||
JUT_ASSERT(677, buffer != 0);
|
||||
JUT_ASSERT(677, buffer != NULL);
|
||||
JKRAramToMainRam(entryNum, buffer, alignedLen, EXPAND_SWITCH_UNKNOWN0, alignedLen, NULL, -1, NULL);
|
||||
*out = buffer;
|
||||
return length;
|
||||
|
||||
@@ -295,7 +295,7 @@ void JKRArchive::removeResourceAll() {
|
||||
|
||||
/* 802D603C-802D609C 2D097C 0060+00 1/0 2/0 0/0 .text removeResource__10JKRArchiveFPv */
|
||||
bool JKRArchive::removeResource(void* resource) {
|
||||
JUT_ASSERT(678, resource != 0);
|
||||
JUT_ASSERT(678, resource != NULL);
|
||||
SDIFileEntry* fileEntry = findPtrResource(resource);
|
||||
if (fileEntry == NULL)
|
||||
return false;
|
||||
@@ -307,7 +307,7 @@ bool JKRArchive::removeResource(void* resource) {
|
||||
|
||||
/* 802D609C-802D60D8 2D09DC 003C+00 1/0 4/0 0/0 .text detachResource__10JKRArchiveFPv */
|
||||
bool JKRArchive::detachResource(void* resource) {
|
||||
JUT_ASSERT(707, resource != 0);
|
||||
JUT_ASSERT(707, resource != NULL);
|
||||
SDIFileEntry* fileEntry = findPtrResource(resource);
|
||||
if (fileEntry == NULL)
|
||||
return false;
|
||||
@@ -318,7 +318,7 @@ bool JKRArchive::detachResource(void* resource) {
|
||||
|
||||
/* 802D60D8-802D610C 2D0A18 0034+00 1/0 4/0 0/0 .text getResSize__10JKRArchiveCFPCv */
|
||||
u32 JKRArchive::getResSize(const void* resource) const {
|
||||
JUT_ASSERT(732, resource != 0);
|
||||
JUT_ASSERT(732, resource != NULL);
|
||||
SDIFileEntry* fileEntry = findPtrResource(resource);
|
||||
if (fileEntry == NULL)
|
||||
return -1;
|
||||
|
||||
@@ -290,7 +290,7 @@ u32 JKRDvdArchive::fetchResource_subroutine(s32 entryNum, u32 offset, u32 size,
|
||||
switch (fileCompression) {
|
||||
case COMPRESSION_NONE:
|
||||
buffer = (u8*)JKRAllocFromHeap(heap, alignedSize, sizeof(SArcHeader));
|
||||
JUT_ASSERT(675, buffer != 0);
|
||||
JUT_ASSERT(675, buffer != NULL);
|
||||
|
||||
JKRDvdToMainRam(entryNum, buffer, EXPAND_SWITCH_UNKNOWN0, alignedSize, NULL,
|
||||
JKRDvdRipper::ALLOC_DIRECTION_FORWARD, offset, NULL, NULL);
|
||||
|
||||
@@ -492,7 +492,7 @@ void operator delete[](void* ptr) {
|
||||
/* 802CED84-802CED88 2C96C4 0004+00 1/0 1/0 0/0 .text
|
||||
* state_register__7JKRHeapCFPQ27JKRHeap6TStateUl */
|
||||
void JKRHeap::state_register(JKRHeap::TState* p, u32 id) const {
|
||||
JUT_ASSERT(1213, p != 0);
|
||||
JUT_ASSERT(1213, p != NULL);
|
||||
JUT_ASSERT(1214, p->getHeap() == this);
|
||||
}
|
||||
|
||||
|
||||
@@ -252,7 +252,7 @@ bool JKRSolidHeap::dump(void) {
|
||||
/* 802D11FC-802D1258 2CBB3C 005C+00 1/0 0/0 0/0 .text
|
||||
* state_register__12JKRSolidHeapCFPQ27JKRHeap6TStateUl */
|
||||
void JKRSolidHeap::state_register(JKRHeap::TState* p, u32 id) const {
|
||||
JUT_ASSERT(604, p != 0);
|
||||
JUT_ASSERT(604, p != NULL);
|
||||
JUT_ASSERT(605, p->getHeap() == this);
|
||||
|
||||
getState_(p);
|
||||
|
||||
@@ -141,7 +141,7 @@ JKRThreadSwitch::JKRThreadSwitch(JKRHeap* param_0) {
|
||||
/* 802D1A14-802D1A70 2CC354 005C+00 0/0 1/1 0/0 .text createManager__15JKRThreadSwitchFP7JKRHeap
|
||||
*/
|
||||
JKRThreadSwitch* JKRThreadSwitch::createManager(JKRHeap* heap) {
|
||||
JUT_ASSERT(343, sManager == 0);
|
||||
JUT_ASSERT(343, sManager == NULL);
|
||||
|
||||
if (!heap) {
|
||||
heap = JKRGetCurrentHeap();
|
||||
|
||||
@@ -67,14 +67,14 @@ void JMessage::TControl::render() {
|
||||
/* 802A77E8-802A78F4 2A2128 010C+00 0/0 1/1 0/0 .text setMessageCode__Q28JMessage8TControlFUsUs */
|
||||
int JMessage::TControl::setMessageCode(u16 u16GroupID, u16 u16Index) {
|
||||
TProcessor* pProcessor = getProcessor();
|
||||
JUT_ASSERT(120, pProcessor!=0);
|
||||
JUT_ASSERT(120, pProcessor!=NULL);
|
||||
return setMessageCode_inReset_(pProcessor, u16GroupID, u16Index);
|
||||
}
|
||||
|
||||
/* 802A78F4-802A7A20 2A2234 012C+00 0/0 6/6 0/0 .text setMessageID__Q28JMessage8TControlFUlUlPb */
|
||||
int JMessage::TControl::setMessageID(u32 uMsgID, u32 param_1, bool* pbValid) {
|
||||
TProcessor* pProcessor = getProcessor();
|
||||
JUT_ASSERT(132, pProcessor!=0);
|
||||
JUT_ASSERT(132, pProcessor!=NULL);
|
||||
|
||||
u32 uCode = pProcessor->toMessageCode_messageID(uMsgID, param_1, pbValid);
|
||||
if (uCode == 0xFFFFFFFF) {
|
||||
@@ -96,7 +96,7 @@ bool JMessage::TControl::setMessageCode_inSequence_(JMessage::TProcessor const*
|
||||
uMessageID_ = u16Index;
|
||||
|
||||
pResourceCache_ = pProcessor->getResourceCache();
|
||||
JUT_ASSERT(155, pResourceCache_!=0);
|
||||
JUT_ASSERT(155, pResourceCache_!=NULL);
|
||||
|
||||
pMessageText_begin_ = pResourceCache_->getMessageText_messageEntry(pEntry_);
|
||||
pMessageText_current_ = pMessageText_begin_;
|
||||
|
||||
@@ -101,9 +101,9 @@ void JMessage::TProcessor::on_select_begin(char const* (*pfn)(JMessage::TProcess
|
||||
oProcess_.rData.pOffset = pOffset;
|
||||
oProcess_.rData.uRest = uNumber;
|
||||
|
||||
JUT_ASSERT(205, pfn!=0);
|
||||
JUT_ASSERT(205, pfn!=NULL);
|
||||
const char* psz = pfn(this);
|
||||
JUT_ASSERT(207, psz!=0);
|
||||
JUT_ASSERT(207, psz!=NULL);
|
||||
|
||||
stack_pushCurrent_(psz);
|
||||
do_select_begin(uNumber);
|
||||
@@ -131,10 +131,10 @@ void JMessage::TProcessor::on_select_separate() {
|
||||
JUT_ASSERT(237, rData.uRest>0);
|
||||
|
||||
const char* (*pfn)(TProcessor*) = rData.pfn;
|
||||
JUT_ASSERT(240, pfn!=0);
|
||||
JUT_ASSERT(240, pfn!=NULL);
|
||||
|
||||
const char* psz = pfn(this);
|
||||
JUT_ASSERT(242, psz!=0);
|
||||
JUT_ASSERT(242, psz!=NULL);
|
||||
|
||||
stack_pushCurrent_(psz);
|
||||
do_select_separate();
|
||||
@@ -175,7 +175,7 @@ void JMessage::TProcessor::do_select_separate() {}
|
||||
void JMessage::TProcessor::on_tag_() {
|
||||
u32 uSize;
|
||||
char* psz = (char*)getCurrent();
|
||||
JUT_ASSERT(292, psz!=0);
|
||||
JUT_ASSERT(292, psz!=NULL);
|
||||
JUT_ASSERT(293, psz[-1]==data::gcTagBegin);
|
||||
|
||||
uSize = *(u8*)psz;
|
||||
@@ -254,7 +254,7 @@ void JMessage::TProcessor::do_tag_(u32 uTag, void const* pData, u32 uSize) {
|
||||
/* 802A81EC-802A828C 2A2B2C 00A0+00 2/2 0/0 0/0 .text
|
||||
* process_character___Q28JMessage10TProcessorFv */
|
||||
bool JMessage::TProcessor::process_character_() {
|
||||
JUT_ASSERT(397, pszCurrent_!=0);
|
||||
JUT_ASSERT(397, pszCurrent_!=NULL);
|
||||
int iCharacter = on_parseCharacter(&pszCurrent_);
|
||||
|
||||
switch (iCharacter) {
|
||||
@@ -311,8 +311,8 @@ bool JMessage::TProcessor::process_onCharacterEnd_select_(JMessage::TProcessor*
|
||||
const char* JMessage::TProcessor::process_onSelect_limited_(JMessage::TProcessor* pThis) {
|
||||
TProcess_::rdata& rData = pThis->oProcess_.rData;
|
||||
JUT_ASSERT(454, rData.pfn==&process_onSelect_limited_);
|
||||
JUT_ASSERT(455, rData.pcBase!=0);
|
||||
JUT_ASSERT(456, rData.pOffset!=0);
|
||||
JUT_ASSERT(455, rData.pcBase!=NULL);
|
||||
JUT_ASSERT(456, rData.pOffset!=NULL);
|
||||
JUT_ASSERT(457, rData.uRest>0);
|
||||
|
||||
u16* puOffset = (u16*)rData.pOffset;
|
||||
@@ -327,8 +327,8 @@ const char* JMessage::TProcessor::process_onSelect_limited_(JMessage::TProcessor
|
||||
const char* JMessage::TProcessor::process_onSelect_(JMessage::TProcessor* pThis) {
|
||||
TProcess_::rdata& rData = pThis->oProcess_.rData;
|
||||
JUT_ASSERT(471, rData.pfn==&process_onSelect_);
|
||||
JUT_ASSERT(472, rData.pcBase!=0);
|
||||
JUT_ASSERT(473, rData.pOffset!=0);
|
||||
JUT_ASSERT(472, rData.pcBase!=NULL);
|
||||
JUT_ASSERT(473, rData.pOffset!=NULL);
|
||||
JUT_ASSERT(474, rData.uRest>0);
|
||||
|
||||
u32* puOffset = (u32*)rData.pOffset;
|
||||
@@ -358,7 +358,7 @@ const char* JMessage::TSequenceProcessor::process(char const* pszText) {
|
||||
case STATUS_NORMAL:
|
||||
break;
|
||||
case STATUS_JUMP: {
|
||||
JUT_ASSERT(549, pControl_!=0);
|
||||
JUT_ASSERT(549, pControl_!=NULL);
|
||||
|
||||
if (!on_jump_isReady()) {
|
||||
return pszCurrent_;
|
||||
@@ -368,7 +368,7 @@ const char* JMessage::TSequenceProcessor::process(char const* pszText) {
|
||||
|
||||
TProcess_& process = oProcess2_;
|
||||
TSequenceProcessor::jumpPfn pfn = process.process.jump_process.jumpFn;
|
||||
JUT_ASSERT(556, pfn!=0);
|
||||
JUT_ASSERT(556, pfn!=NULL);
|
||||
|
||||
const void* pEntry = pfn(this);
|
||||
if (pEntry != NULL) {
|
||||
@@ -377,7 +377,7 @@ const char* JMessage::TSequenceProcessor::process(char const* pszText) {
|
||||
break;
|
||||
}
|
||||
case STATUS_BRANCH: {
|
||||
JUT_ASSERT(567, pControl_!=0);
|
||||
JUT_ASSERT(567, pControl_!=NULL);
|
||||
|
||||
u32 queryResult = on_branch_queryResult();
|
||||
if (queryResult > 0x7FFFFFFF) {
|
||||
@@ -398,7 +398,7 @@ const char* JMessage::TSequenceProcessor::process(char const* pszText) {
|
||||
JGADGET_WARNMSG1(588, "unknown result : ", queryResult);
|
||||
} else {
|
||||
TSequenceProcessor::branchPfn pfn = process.process.branch_process.branchFn;
|
||||
JUT_ASSERT(592, pfn!=0);
|
||||
JUT_ASSERT(592, pfn!=NULL);
|
||||
|
||||
const void* pEntry = pfn(this, queryResult);
|
||||
if (pEntry != NULL) {
|
||||
@@ -456,8 +456,8 @@ void JMessage::TSequenceProcessor::on_jump(void const* pEntry, char const* pszTe
|
||||
on_resetStatus_(pszText);
|
||||
|
||||
JUT_ASSERT(658, eStatus_==STATUS_NORMAL);
|
||||
JUT_ASSERT(659, pEntry!=0);
|
||||
JUT_ASSERT(660, pszText!=0);
|
||||
JUT_ASSERT(659, pEntry!=NULL);
|
||||
JUT_ASSERT(660, pszText!=NULL);
|
||||
do_jump(pEntry, pszText);
|
||||
}
|
||||
|
||||
@@ -495,8 +495,8 @@ void JMessage::TSequenceProcessor::on_branch(void const* pEntry, char const* psz
|
||||
on_resetStatus_(pszText);
|
||||
|
||||
JUT_ASSERT(717, eStatus_==STATUS_NORMAL);
|
||||
JUT_ASSERT(718, pEntry!=0);
|
||||
JUT_ASSERT(719, pszText!=0);
|
||||
JUT_ASSERT(718, pEntry!=NULL);
|
||||
JUT_ASSERT(719, pszText!=NULL);
|
||||
do_branch(pEntry, pszText);
|
||||
}
|
||||
|
||||
@@ -653,7 +653,7 @@ void* JMessage::TSequenceProcessor::process_setMessageCode_(JMessage::TSequenceP
|
||||
}
|
||||
|
||||
TControl* pControl = pProcessor->getControl();
|
||||
JUT_ASSERT(911, pControl!=0);
|
||||
JUT_ASSERT(911, pControl!=NULL);
|
||||
|
||||
if (!pControl->setMessageCode_inSequence_(pProcessor, u16GroupID, u16Index)) {
|
||||
JGADGET_WARNMSG1(914, "message-code undefined : ", pControl->getMessageCode());
|
||||
@@ -687,7 +687,7 @@ const void*
|
||||
JMessage::TSequenceProcessor::process_onBranch_limited_(JMessage::TSequenceProcessor const* pProcessor, u32 uTargetIndex) {
|
||||
const TProcess_::processData::branchData& rData = pProcessor->oProcess2_.process.branch_process;
|
||||
|
||||
JUT_ASSERT(942, rData.pTarget!=0);
|
||||
JUT_ASSERT(942, rData.pTarget!=NULL);
|
||||
JUT_ASSERT(943, uTargetIndex<rData.uTarget);
|
||||
|
||||
u16 u16Index = JGadget::binary::TParseValue<JGadget::binary::TParseValue_endian_big_<u16> >::parse(rData.pTarget, uTargetIndex);
|
||||
@@ -700,7 +700,7 @@ const void*
|
||||
JMessage::TSequenceProcessor::process_onBranch_(JMessage::TSequenceProcessor const* pProcessor, u32 uTargetIndex) {
|
||||
const TProcess_::processData::branchData& rData = pProcessor->oProcess2_.process.branch_process;
|
||||
|
||||
JUT_ASSERT(957, rData.pTarget!=0);
|
||||
JUT_ASSERT(957, rData.pTarget!=NULL);
|
||||
JUT_ASSERT(958, uTargetIndex<rData.uTarget);
|
||||
|
||||
u32 uCode = JGadget::binary::TParseValue<JGadget::binary::TParseValue_endian_big_<u32> >::parse(rData.pTarget, uTargetIndex);
|
||||
|
||||
@@ -66,7 +66,7 @@ u16 JMessage::TResource::toMessageIndex_messageID(u32 uMsgID, u32 upperHalf, boo
|
||||
int nMsgNumber = oParse_TBlock_messageID_.get_number();
|
||||
|
||||
const u32* pContent = oParse_TBlock_messageID_.getContent();
|
||||
JUT_ASSERT(131, pContent!=0);
|
||||
JUT_ASSERT(131, pContent!=NULL);
|
||||
|
||||
const u32* pFirst = pContent;
|
||||
const u32* pLast = pFirst + nMsgNumber;
|
||||
@@ -156,13 +156,13 @@ void JMessage::TResourceContainer::setEncoding(u8 e) {
|
||||
void JMessage::TResourceContainer::setEncoding_(u8 e) {
|
||||
encodingType_ = e;
|
||||
pfnParseCharacter_ = JGadget::toValueFromIndex<JMessage::locale::parseCharacter_function>(e, sapfnParseCharacter_, 5, NULL);
|
||||
JUT_ASSERT(299, pfnParseCharacter_!=0);
|
||||
JUT_ASSERT(299, pfnParseCharacter_!=NULL);
|
||||
}
|
||||
|
||||
/* 802A9130-802A9158 2A3A70 0028+00 0/0 2/2 0/0 .text
|
||||
* __ct__Q28JMessage6TParseFPQ28JMessage18TResourceContainer */
|
||||
JMessage::TParse::TParse(JMessage::TResourceContainer* pContainer) {
|
||||
JUT_ASSERT(324, pContainer!=0);
|
||||
JUT_ASSERT(324, pContainer!=NULL);
|
||||
pContainer_ = pContainer;
|
||||
pResource_ = NULL;
|
||||
}
|
||||
@@ -174,17 +174,17 @@ JMessage::TParse::~TParse() {}
|
||||
* parseHeader_next__Q28JMessage6TParseFPPCvPUlUl */
|
||||
// NONMATCHING regalloc, missing clrlwi
|
||||
bool JMessage::TParse::parseHeader_next(const void** ppData_inout, u32* puBlock_out, u32 param_2) {
|
||||
JUT_ASSERT(343, ppData_inout!=0);
|
||||
JUT_ASSERT(344, puBlock_out!=0);
|
||||
JUT_ASSERT(343, ppData_inout!=NULL);
|
||||
JUT_ASSERT(344, puBlock_out!=NULL);
|
||||
|
||||
const void* pData = *ppData_inout;
|
||||
JUT_ASSERT(346, pData!=0);
|
||||
JUT_ASSERT(346, pData!=NULL);
|
||||
|
||||
data::TParse_THeader oHeader(pData);
|
||||
*ppData_inout = oHeader.getContent();
|
||||
*puBlock_out = oHeader.get_blockNumber();
|
||||
|
||||
JUT_ASSERT(350, pContainer_!=0);
|
||||
JUT_ASSERT(350, pContainer_!=NULL);
|
||||
|
||||
if (memcmp(oHeader.get_signature(), &data::ga4cSignature, sizeof(data::ga4cSignature)) != 0) {
|
||||
JGADGET_WARNMSG(355, "unknown signature");
|
||||
@@ -230,11 +230,11 @@ bool JMessage::TParse::parseHeader_next(const void** ppData_inout, u32* puBlock_
|
||||
/* 802A92F4-802A9490 2A3C34 019C+00 1/0 0/0 0/0 .text
|
||||
* parseBlock_next__Q28JMessage6TParseFPPCvPUlUl */
|
||||
bool JMessage::TParse::parseBlock_next(const void** ppData_inout, u32* puData_out, u32 param_2) {
|
||||
JUT_ASSERT(401, ppData_inout!=0);
|
||||
JUT_ASSERT(402, puData_out!=0);
|
||||
JUT_ASSERT(401, ppData_inout!=NULL);
|
||||
JUT_ASSERT(402, puData_out!=NULL);
|
||||
|
||||
const void* pData = *ppData_inout;
|
||||
JUT_ASSERT(404, pData!=0);
|
||||
JUT_ASSERT(404, pData!=NULL);
|
||||
|
||||
data::TParse_TBlock oBlock(pData);
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ JPABaseEmitter* JPAEmitterManager::createSimpleEmitterID(JGeometry::TVec3<f32> c
|
||||
JPAParticleCallBack* ptclCB) {
|
||||
JUT_ASSERT(88, group_id < gidMax);
|
||||
JUT_ASSERT(89, res_mgr_id < ridMax);
|
||||
JUT_ASSERT(90, pResMgrAry[res_mgr_id] != 0);
|
||||
JUT_ASSERT(90, pResMgrAry[res_mgr_id] != NULL);
|
||||
JPAResource* pRes = pResMgrAry[res_mgr_id]->getResource(resID);
|
||||
|
||||
if (pRes == NULL) {
|
||||
@@ -160,7 +160,7 @@ void JPAEmitterManager::forceDeleteEmitter(JPABaseEmitter* emtr) {
|
||||
/* 8027E344-8027E354 278C84 0010+00 0/0 2/2 0/0 .text
|
||||
* entryResourceManager__17JPAEmitterManagerFP18JPAResourceManagerUc */
|
||||
void JPAEmitterManager::entryResourceManager(JPAResourceManager* resMgr, u8 resMgrID) {
|
||||
JUT_ASSERT_MSG_F(325, resMgrID < ridMax && (pResMgrAry[resMgrID]) == 0,
|
||||
JUT_ASSERT_MSG_F(325, resMgrID < ridMax && (pResMgrAry[resMgrID]) == NULL,
|
||||
"res_id %d res_id_max %d array[%d] = %x", resMgrID, ridMax, resMgrID,
|
||||
pResMgrAry[resMgrID]);
|
||||
pResMgrAry[resMgrID] = resMgr;
|
||||
|
||||
@@ -111,10 +111,10 @@ JStudio::ctb::TParse::~TParse() {}
|
||||
/* 802813DC-80281470 27BD1C 0094+00 1/0 0/0 0/0 .text
|
||||
* parseHeader_next__Q37JStudio3ctb6TParseFPPCvPUlUl */
|
||||
bool JStudio::ctb::TParse::parseHeader_next(void const** ppData_inout, u32* puBlock_out, u32 param_3) {
|
||||
JUT_ASSERT(221, ppData_inout!=0);
|
||||
JUT_ASSERT(222, puBlock_out!=0);
|
||||
JUT_ASSERT(221, ppData_inout!=NULL);
|
||||
JUT_ASSERT(222, puBlock_out!=NULL);
|
||||
void const* pData = *ppData_inout;
|
||||
JUT_ASSERT(224, pData!=0);
|
||||
JUT_ASSERT(224, pData!=NULL);
|
||||
data::TParse_THeader aTStack_478(pData);
|
||||
*ppData_inout = aTStack_478.getContent();
|
||||
*puBlock_out = aTStack_478.get_blockNumber();
|
||||
@@ -134,15 +134,15 @@ bool JStudio::ctb::TParse::parseHeader_next(void const** ppData_inout, u32* puBl
|
||||
/* 80281470-80281554 27BDB0 00E4+00 1/0 0/0 0/0 .text
|
||||
* parseBlock_next__Q37JStudio3ctb6TParseFPPCvPUlUl */
|
||||
bool JStudio::ctb::TParse::parseBlock_next(void const** ppData_inout, u32* puData_out, u32 param_3) {
|
||||
JUT_ASSERT(260, ppData_inout!=0);
|
||||
JUT_ASSERT(261, puData_out!=0);
|
||||
JUT_ASSERT(260, ppData_inout!=NULL);
|
||||
JUT_ASSERT(261, puData_out!=NULL);
|
||||
void const* pData = *ppData_inout;
|
||||
JUT_ASSERT(263, pData!=0);
|
||||
JUT_ASSERT(263, pData!=NULL);
|
||||
data::TParse_TBlock aTStack_260(pData);
|
||||
*ppData_inout = aTStack_260.getNext();
|
||||
*puData_out = aTStack_260.get_size();
|
||||
JStudio::ctb::TControl* pControl = getControl();
|
||||
JUT_ASSERT(269, pControl!=0);
|
||||
JUT_ASSERT(269, pControl!=NULL);
|
||||
if ((param_3 & 0x10) != 0) {
|
||||
if (pControl->getObject(aTStack_260.get_ID(), aTStack_260.get_IDSize()) != NULL) {
|
||||
return true;
|
||||
|
||||
@@ -301,7 +301,7 @@ f64 TFunctionValue_composite::composite_index(TVector_pointer<TFunctionValue*> c
|
||||
}
|
||||
TFunctionValue** local_148 = (TFunctionValue**)param_1.begin();
|
||||
TFunctionValue* pFront = *local_148;
|
||||
JUT_ASSERT(599, pFront!=0);
|
||||
JUT_ASSERT(599, pFront!=NULL);
|
||||
f64 dVar4 = pFront->getValue(param_3);
|
||||
s32 index = floor(dVar4);
|
||||
u32 uVar2 = param_2.get_unsignedInteger();
|
||||
@@ -397,7 +397,7 @@ f64 TFunctionValue_composite::composite_subtract(TVector_pointer<TFunctionValue*
|
||||
TContainerEnumerator_const_TVector<TFunctionValue*> aTStack_18(param_1);
|
||||
TFunctionValue* const* local_148 = *aTStack_18;
|
||||
TFunctionValue* pFront = *local_148;
|
||||
JUT_ASSERT(688, pFront!=0);
|
||||
JUT_ASSERT(688, pFront!=NULL);
|
||||
f64 dVar4 = pFront->getValue(param_3);
|
||||
while (aTStack_18) {
|
||||
TFunctionValue* const* ppiVar3 = *aTStack_18;
|
||||
@@ -436,7 +436,7 @@ f64 TFunctionValue_composite::composite_divide(TVector_pointer<TFunctionValue*>
|
||||
TContainerEnumerator_const_TVector<TFunctionValue*> aTStack_18(param_1);
|
||||
TFunctionValue* const* local_148 = *aTStack_18;
|
||||
TFunctionValue* pFront = *local_148;
|
||||
JUT_ASSERT(724, pFront!=0);
|
||||
JUT_ASSERT(724, pFront!=NULL);
|
||||
f64 dVar4 = pFront->getValue(param_3);
|
||||
while (aTStack_18) {
|
||||
TFunctionValue* const* ppiVar3 = *aTStack_18;
|
||||
@@ -624,7 +624,7 @@ f64 TFunctionValue_list::getValue(f64 param_1) {
|
||||
}
|
||||
local_178._8 = floor(local_178._0);
|
||||
local_178._10 = local_178._8;
|
||||
JUT_ASSERT(1063, pfnUpdate_!=0);
|
||||
JUT_ASSERT(1063, pfnUpdate_!=NULL);
|
||||
return pfnUpdate_(*this, local_178);
|
||||
}
|
||||
|
||||
@@ -751,7 +751,7 @@ void TFunctionValue_list_parameter::prepare() {
|
||||
* getValue__Q27JStudio29TFunctionValue_list_parameterFd */
|
||||
f64 TFunctionValue_list_parameter::getValue(f64 param_0) {
|
||||
param_0 = range_getParameter(param_0, data_getValue_front(), data_getValue_back());
|
||||
JUT_ASSERT(1395, pfData_!=0)
|
||||
JUT_ASSERT(1395, pfData_!=NULL)
|
||||
|
||||
dat3 = JGadget::findUpperBound_binary_current(dat1, dat2, dat3, param_0);
|
||||
if (dat3 == dat1) {
|
||||
@@ -764,7 +764,7 @@ f64 TFunctionValue_list_parameter::getValue(f64 param_0) {
|
||||
|
||||
const f32* pf = dat3.get();
|
||||
JUT_ASSERT(1411, (pfData_<=pf-suData_size)&&(pf<pfData_+suData_size*uData_));
|
||||
JUT_ASSERT(1412, pfnUpdate_!=0);
|
||||
JUT_ASSERT(1412, pfnUpdate_!=NULL);
|
||||
return pfnUpdate_(*this, param_0);
|
||||
}
|
||||
|
||||
@@ -915,7 +915,7 @@ void TFunctionValue_hermite::prepare() {
|
||||
* getValue__Q27JStudio22TFunctionValue_hermiteFd */
|
||||
f64 TFunctionValue_hermite::getValue(f64 param_0) {
|
||||
param_0 = range_getParameter(param_0, data_getValue_front(), data_getValue_back());
|
||||
JUT_ASSERT(1716, pfData_!=0)
|
||||
JUT_ASSERT(1716, pfData_!=NULL)
|
||||
|
||||
dat3 = JGadget::findUpperBound_binary_current(dat1, dat2, dat3, param_0);
|
||||
|
||||
|
||||
@@ -133,7 +133,7 @@ bool JStudio::TParse::parseHeader(JStudio::stb::data::TParse_THeader const& para
|
||||
return false;
|
||||
}
|
||||
JStudio::TControl* pControl = getControl();
|
||||
JUT_ASSERT(322, pControl!=0);
|
||||
JUT_ASSERT(322, pControl!=NULL);
|
||||
if ((param_1 & 0x100) == 0) {
|
||||
Vec local_468 = {0.0f, 0.0f, 0.0f};
|
||||
pControl->transform_setOrigin_TxyzRy(local_468, 0.0f);
|
||||
@@ -161,9 +161,9 @@ bool JStudio::TParse::parseBlock_block(JStudio::stb::data::TParse_TBlock const&
|
||||
bool JStudio::TParse::parseBlock_block_fvb_(JStudio::stb::data::TParse_TBlock const& param_0,
|
||||
u32 param_1) {
|
||||
TControl* pControl = getControl();
|
||||
JUT_ASSERT(361, pControl!=0);
|
||||
JUT_ASSERT(361, pControl!=NULL);
|
||||
const void* pContent = param_0.getContent();
|
||||
JUT_ASSERT(363, pContent!=0);
|
||||
JUT_ASSERT(363, pContent!=NULL);
|
||||
u32 uVar4 = param_1 & 0xf;
|
||||
if ((param_1 & 0x10) != 0) {
|
||||
uVar4 |= 0x10;
|
||||
@@ -186,9 +186,9 @@ bool JStudio::TParse::parseBlock_block_fvb_(JStudio::stb::data::TParse_TBlock co
|
||||
bool JStudio::TParse::parseBlock_block_ctb_(JStudio::stb::data::TParse_TBlock const& param_0,
|
||||
u32 param_1) {
|
||||
TControl* pControl = getControl();
|
||||
JUT_ASSERT(386, pControl!=0);
|
||||
JUT_ASSERT(386, pControl!=NULL);
|
||||
const void* pContent = param_0.getContent();
|
||||
JUT_ASSERT(388, pContent!=0);
|
||||
JUT_ASSERT(388, pContent!=NULL);
|
||||
u32 uVar4 = param_1 & 0xf;
|
||||
if ((param_1 & 0x10) != 0) {
|
||||
uVar4 |= 0x10;
|
||||
|
||||
@@ -97,7 +97,7 @@ JStudio::TVariableValue::TOutput::~TOutput() {}
|
||||
void JStudio::TVariableValue::update(f64 param_0, JStudio::TAdaptor* param_1) {
|
||||
if (field_0x8) {
|
||||
field_0x8(this, param_0);
|
||||
JUT_ASSERT(200, pOutput_!=0);
|
||||
JUT_ASSERT(200, pOutput_!=NULL);
|
||||
(*pOutput_)(mValue, param_1);
|
||||
}
|
||||
}
|
||||
@@ -175,7 +175,7 @@ void JStudio::TAdaptor::adaptor_setVariableValue(JStudio::TControl* pControl, u3
|
||||
JStudio::data::TEOperationData param_3,
|
||||
void const* param_4, u32 param_5) {
|
||||
setVarFunc func;
|
||||
JUT_ASSERT(304, pControl!=0);
|
||||
JUT_ASSERT(304, pControl!=NULL);
|
||||
switch (param_3) {
|
||||
case JStudio::data::UNK_0x1:
|
||||
func = &adaptor_setVariableValue_VOID_;
|
||||
@@ -207,7 +207,7 @@ void JStudio::TAdaptor::adaptor_setVariableValue_n(JStudio::TControl* pControl,
|
||||
u32 const* param_2, u32 param_3,
|
||||
JStudio::data::TEOperationData param_4,
|
||||
void const* param_5, u32 param_6) {
|
||||
JUT_ASSERT(343, pControl!=0);
|
||||
JUT_ASSERT(343, pControl!=NULL);
|
||||
setVarFunc pcVar6;
|
||||
u32 iVar7;
|
||||
switch(param_4) {
|
||||
@@ -254,7 +254,7 @@ void JStudio::TAdaptor::adaptor_setVariableValue_immediate(
|
||||
/* 80286204-80286274 280B44 0070+00 0/0 4/4 0/0 .text
|
||||
* adaptor_setVariableValue_Vec__Q27JStudio8TAdaptorFPCUlRC3Vec */
|
||||
void JStudio::TAdaptor::adaptor_setVariableValue_Vec(u32 const* puIndex, Vec const& param_2) {
|
||||
JUT_ASSERT(400, puIndex!=0);
|
||||
JUT_ASSERT(400, puIndex!=NULL);
|
||||
adaptor_referVariableValue(puIndex[0])->setValue_immediate(param_2.x);
|
||||
adaptor_referVariableValue(puIndex[1])->setValue_immediate(param_2.y);
|
||||
adaptor_referVariableValue(puIndex[2])->setValue_immediate(param_2.z);
|
||||
@@ -272,7 +272,7 @@ void JStudio::TAdaptor::adaptor_getVariableValue_Vec(Vec* param_1, u32 const* pa
|
||||
* adaptor_setVariableValue_GXColor__Q27JStudio8TAdaptorFPCUlRC8_GXColor */
|
||||
void JStudio::TAdaptor::adaptor_setVariableValue_GXColor(u32 const* puIndex,
|
||||
GXColor const& param_2) {
|
||||
JUT_ASSERT(431, puIndex!=0);
|
||||
JUT_ASSERT(431, puIndex!=NULL);
|
||||
adaptor_referVariableValue(puIndex[0])->setValue_immediate(param_2.r);
|
||||
adaptor_referVariableValue(puIndex[1])->setValue_immediate(param_2.g);
|
||||
adaptor_referVariableValue(puIndex[2])->setValue_immediate(param_2.b);
|
||||
@@ -292,7 +292,7 @@ void JStudio::TAdaptor::adaptor_getVariableValue_GXColor(GXColor* param_1,
|
||||
/* 802864D8-8028656C 280E18 0094+00 1/1 0/0 0/0 .text
|
||||
* adaptor_updateVariableValue__Q27JStudio8TAdaptorFPQ27JStudio8TControlUl */
|
||||
void JStudio::TAdaptor::adaptor_updateVariableValue(JStudio::TControl* pControl, u32 param_2) {
|
||||
JUT_ASSERT(479, pControl!=0);
|
||||
JUT_ASSERT(479, pControl!=NULL);
|
||||
f64 dVar3 = pControl->getSecondPerFrame();
|
||||
JGadget::TEnumerator<JStudio::TVariableValue*> enumerator(pValue_, pValue_ + uvv_);
|
||||
while (enumerator) {
|
||||
@@ -1057,7 +1057,7 @@ void JStudio::TObject_message::do_paragraph(u32 param_1, void const* param_2, u3
|
||||
default:
|
||||
return;
|
||||
}
|
||||
JUT_ASSERT(1161, pmfn_!=0);
|
||||
JUT_ASSERT(1161, pmfn_!=NULL);
|
||||
(((TAdaptor_message*)adaptor)->*pmfn_)(operation, param_2, param_3);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ void TParse_TParagraph::getData(TData* pData) const {
|
||||
}
|
||||
|
||||
void TParse_TParagraph_data::getData(TParse_TParagraph_data::TData* pData) const {
|
||||
JUT_ASSERT(104, pData!=0);
|
||||
JUT_ASSERT(104, pData!=NULL);
|
||||
pData->entrySize = 0;
|
||||
pData->entryCount = 0;
|
||||
pData->content = NULL;
|
||||
|
||||
@@ -16,7 +16,7 @@ JStudio_JAudio2::TCreateObject::~TCreateObject() {}
|
||||
*/
|
||||
bool JStudio_JAudio2::TCreateObject::create(
|
||||
JStudio::TObject** ppObject, JStudio::stb::data::TParse_TBlock_object const& param_2) {
|
||||
JUT_ASSERT(40, ppObject!=0);
|
||||
JUT_ASSERT(40, ppObject!=NULL);
|
||||
CreateFunc func;
|
||||
switch (param_2.get_type()) {
|
||||
case 'JSND':
|
||||
|
||||
@@ -56,7 +56,7 @@ JStudio_JAudio2::TAdaptor_sound::TAdaptor_sound(JStudio_JAudio2::TCreateObject*
|
||||
field_0x13c = NULL;
|
||||
field_0x140 = 0xffffffff;
|
||||
field_0x144 = 0;
|
||||
JUT_ASSERT(112, pCreateObject_!=0);
|
||||
JUT_ASSERT(112, pCreateObject_!=NULL);
|
||||
}
|
||||
|
||||
/* 8028D8F4-8028D9A4 288234 00B0+00 1/0 0/0 0/0 .text __dt__Q215JStudio_JAudio214TAdaptor_soundFv
|
||||
@@ -120,9 +120,9 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_end() {
|
||||
* adaptor_do_update__Q215JStudio_JAudio214TAdaptor_soundFUl */
|
||||
void JStudio_JAudio2::TAdaptor_sound::adaptor_do_update(u32 param_1) {
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(194, pObject!=0);
|
||||
JUT_ASSERT(194, pObject!=NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(196, pControl!=0);
|
||||
JUT_ASSERT(196, pControl!=NULL);
|
||||
JStudio::TControl::TTransform_position VStack_148;
|
||||
JStudio::TControl::TTransform_position VStack_154;
|
||||
JStudio::TControl::TTransform_position* pVVar2;
|
||||
@@ -165,7 +165,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_SOUND(JStudio::data::TEOperatio
|
||||
void const* pContent, u32 uSize) {
|
||||
switch(param_1) {
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(283, pContent!=0);
|
||||
JUT_ASSERT(283, pContent!=NULL);
|
||||
JUT_ASSERT(284, uSize==4);
|
||||
field_0x124 = *(u32*)pContent;
|
||||
prepareSound_();
|
||||
@@ -192,7 +192,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_BEGIN_FADE_IN(
|
||||
JStudio::data::TEOperationData param_1, void const* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(323, pContent!=0);
|
||||
JUT_ASSERT(323, pContent!=NULL);
|
||||
JUT_ASSERT(324, uSize==4);
|
||||
beginSound_fadeIn_(*(f32*)pContent);
|
||||
break;
|
||||
@@ -218,7 +218,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_END_FADE_OUT(
|
||||
JStudio::data::TEOperationData param_1, void const* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(364, pContent!=0);
|
||||
JUT_ASSERT(364, pContent!=NULL);
|
||||
JUT_ASSERT(365, uSize==4);
|
||||
endSound_fadeOut_(*(f32*)pContent);
|
||||
break;
|
||||
@@ -231,14 +231,14 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_PARENT(
|
||||
JStudio::data::TEOperationData param_1, void const* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(387, pContent!=0);
|
||||
JUT_ASSERT(387, pContent!=NULL);
|
||||
JUT_ASSERT(388, uSize!=0);
|
||||
field_0x13c = NULL;
|
||||
JStage::TSystem* pJSGSystem = (JStage::TSystem*)pCreateObject_->get_pJSGSystem_();
|
||||
JUT_ASSERT(396, pJSGSystem != 0);
|
||||
JUT_ASSERT(396, pJSGSystem != NULL);
|
||||
JStage::TObject* pJSGObject;
|
||||
if (!pJSGSystem->JSGFindObject(&pJSGObject, (const char*)pContent, JStage::OBJECT_UNDEFINED)) {
|
||||
JUT_ASSERT(405, pJSGObject != 0);
|
||||
JUT_ASSERT(405, pJSGObject != NULL);
|
||||
field_0x13c = pJSGObject;
|
||||
}
|
||||
break;
|
||||
@@ -253,7 +253,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_PARENT_NODE(JStudio::data::TEOp
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
if (field_0x13c != NULL) {
|
||||
JUT_ASSERT(431, pContent!=0);
|
||||
JUT_ASSERT(431, pContent!=NULL);
|
||||
JUT_ASSERT(432, uSize==0);
|
||||
field_0x140 = field_0x13c->JSGFindNodeID((char*)pContent);
|
||||
if (field_0x140 == -1) {
|
||||
@@ -263,7 +263,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_PARENT_NODE(JStudio::data::TEOp
|
||||
break;
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(447, uSize==4);
|
||||
JUT_ASSERT(448, pContent!=0);
|
||||
JUT_ASSERT(448, pContent!=NULL);
|
||||
field_0x140 = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -276,7 +276,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_PARENT_ENABLE(
|
||||
JStudio::data::TEOperationData param_1, const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(468, uSize == 4);
|
||||
JUT_ASSERT(469, pContent != 0);
|
||||
JUT_ASSERT(469, pContent != NULL);
|
||||
field_0x144 = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -287,7 +287,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_REPEAT(JStudio::data::TEOperati
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(490, uSize == 4);
|
||||
JUT_ASSERT(491, pContent != 0);
|
||||
JUT_ASSERT(491, pContent != NULL);
|
||||
field_0x11e = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -299,7 +299,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_CONTINUOUS(JStudio::data::TEOpe
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(512, uSize == 4);
|
||||
JUT_ASSERT(513, pContent != 0);
|
||||
JUT_ASSERT(513, pContent != NULL);
|
||||
field_0x11d = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -309,7 +309,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_CONTINUOUS(JStudio::data::TEOpe
|
||||
void JStudio_JAudio2::TAdaptor_sound::adaptor_do_LOCATED(JStudio::data::TEOperationData param_1,
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(534, pContent != 0);
|
||||
JUT_ASSERT(534, pContent != NULL);
|
||||
JUT_ASSERT(535, uSize == 4);
|
||||
u32 val = *(u32*)pContent;
|
||||
field_0x12c = NULL;
|
||||
@@ -326,7 +326,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_ON_EXIT_NOT_END(
|
||||
JStudio::data::TEOperationData param_1, const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(512, uSize == 4);
|
||||
JUT_ASSERT(513, pContent != 0);
|
||||
JUT_ASSERT(513, pContent != NULL);
|
||||
field_0x11f = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -335,7 +335,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_ON_EXIT_NOT_END(
|
||||
* __cl__Q315JStudio_JAudio214TAdaptor_sound13TVVOSetValue_CFfPQ27JStudio8TAdaptor */
|
||||
void JStudio_JAudio2::TAdaptor_sound::TVVOSetValue_::operator()(f32 param_1,
|
||||
JStudio::TAdaptor* param_2) const {
|
||||
JUT_ASSERT(596, param_2 != 0);
|
||||
JUT_ASSERT(596, param_2 != NULL);
|
||||
if (((JStudio_JAudio2::TAdaptor_sound*)param_2)->opJAISoundHandle_) {
|
||||
JAISound* sound = ((JStudio_JAudio2::TAdaptor_sound*)param_2)->opJAISoundHandle_.sound_;
|
||||
field_0x08(sound, param_1);
|
||||
|
||||
@@ -18,7 +18,7 @@ JStudio_JParticle::TCreateObject::~TCreateObject() {}
|
||||
bool
|
||||
JStudio_JParticle::TCreateObject::create(JStudio::TObject** ppObject,
|
||||
JStudio::stb::data::TParse_TBlock_object const& param_2) {
|
||||
JUT_ASSERT(40, ppObject!=0);
|
||||
JUT_ASSERT(40, ppObject!=NULL);
|
||||
CreateFunc func;
|
||||
switch (param_2.get_type()) {
|
||||
case 'JPTC':
|
||||
|
||||
@@ -27,7 +27,7 @@ JStudio_JParticle::TAdaptor_particle::TAdaptor_particle(
|
||||
field_0x1d0 = NULL;
|
||||
field_0x1d4 = -1;
|
||||
field_0x1d8 = 0;
|
||||
JUT_ASSERT(90, pCreateObject_!=0);
|
||||
JUT_ASSERT(90, pCreateObject_!=NULL);
|
||||
}
|
||||
|
||||
/* 8028E760-8028E850 2890A0 00F0+00 1/0 0/0 0/0 .text
|
||||
@@ -80,12 +80,12 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_end() {
|
||||
* adaptor_do_update__Q217JStudio_JParticle17TAdaptor_particleFUl */
|
||||
void JStudio_JParticle::TAdaptor_particle::adaptor_do_update(u32 param_1) {
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(179, pObject != 0);
|
||||
JUT_ASSERT(179, pObject != NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(181, pControl != 0);
|
||||
JUT_ASSERT(181, pControl != NULL);
|
||||
if (u32FadeTime_end != 0 && field_0x1c4 < u32FadeTime_end) {
|
||||
JUT_ASSERT(187, state_isFade_());
|
||||
JUT_ASSERT(188, pJPAEmitter_ != 0);
|
||||
JUT_ASSERT(188, pJPAEmitter_ != NULL);
|
||||
field_0x1c4 += param_1;
|
||||
if (field_0x1c4 >= u32FadeTime_end) {
|
||||
switch (field_0x1b8) {
|
||||
@@ -116,7 +116,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_PARTICLE(
|
||||
JStudio::data::TEOperationData param_1, const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x19) {
|
||||
JUT_ASSERT(232, uSize==4);
|
||||
JUT_ASSERT(233, pContent!=0);
|
||||
JUT_ASSERT(233, pContent!=NULL);
|
||||
field_0x1bc = *(u32*)pContent;
|
||||
}
|
||||
}
|
||||
@@ -141,7 +141,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_BEGIN_FADE_IN(
|
||||
JStudio::data::TEOperationData param_1, const void* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(272, pContent!=0);
|
||||
JUT_ASSERT(272, pContent!=NULL);
|
||||
JUT_ASSERT(273, uSize==4);
|
||||
beginParticle_fadeIn_(*(f32*)pContent);
|
||||
break;
|
||||
@@ -165,7 +165,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_END_FADE_OUT(
|
||||
JStudio::data::TEOperationData param_1, const void* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(336, pContent!=0);
|
||||
JUT_ASSERT(336, pContent!=NULL);
|
||||
JUT_ASSERT(337, uSize==4);
|
||||
endParticle_fadeOut_(*(f32*)pContent);
|
||||
break;
|
||||
@@ -179,14 +179,14 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_PARENT(
|
||||
JStudio::data::TEOperationData param_1, const void* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(313, pContent!=0);
|
||||
JUT_ASSERT(313, pContent!=NULL);
|
||||
JUT_ASSERT(314, uSize==4);
|
||||
field_0x1d0 = NULL;
|
||||
const JStage::TSystem* pJSGSystem = pCreateObject_->get_pJSGSystem_();
|
||||
JUT_ASSERT(345, pJSGSystem!=0);
|
||||
JUT_ASSERT(345, pJSGSystem!=NULL);
|
||||
JStage::TObject* pJSGObject;
|
||||
if (pJSGSystem->JSGFindObject(&pJSGObject, (const char*)pContent, JStage::OBJECT_UNDEFINED) == 0) {
|
||||
JUT_ASSERT(354, pJSGObject!=0);
|
||||
JUT_ASSERT(354, pJSGObject!=NULL);
|
||||
field_0x1d0 = pJSGObject;
|
||||
}
|
||||
break;
|
||||
@@ -201,7 +201,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_PARENT_NODE(
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
if (field_0x1d0 != NULL) {
|
||||
JUT_ASSERT(380, pContent!=0);
|
||||
JUT_ASSERT(380, pContent!=NULL);
|
||||
JUT_ASSERT(381, uSize==4);
|
||||
field_0x1d4 = field_0x1d0->JSGFindNodeID((const char*)pContent);
|
||||
if (field_0x1d4 == -1) {
|
||||
@@ -211,7 +211,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_PARENT_NODE(
|
||||
break;
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(397, uSize==4);
|
||||
JUT_ASSERT(396, pContent!=0);
|
||||
JUT_ASSERT(396, pContent!=NULL);
|
||||
field_0x1d4 = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -224,7 +224,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_PARENT_ENABLE(JStudio::dat
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(417, uSize==4);
|
||||
JUT_ASSERT(418, pContent!=0);
|
||||
JUT_ASSERT(418, pContent!=NULL);
|
||||
field_0x1d8 = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -236,7 +236,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_PARENT_FUNCTION(JStudio::d
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(439, uSize==4);
|
||||
JUT_ASSERT(439, pContent!=0);
|
||||
JUT_ASSERT(439, pContent!=NULL);
|
||||
field_0x1cc = *(u32*)pContent;
|
||||
}
|
||||
}
|
||||
@@ -248,7 +248,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_REPEAT(JStudio::data::TEOp
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(460, uSize==4);
|
||||
JUT_ASSERT(461, pContent!=0);
|
||||
JUT_ASSERT(461, pContent!=NULL);
|
||||
field_0x1b5 = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -260,7 +260,7 @@ void JStudio_JParticle::TAdaptor_particle::adaptor_do_ON_EXIT_NOT_END(JStudio::d
|
||||
const void* pContent, u32 uSize) {
|
||||
if (param_1 == JStudio::data::UNK_0x2) {
|
||||
JUT_ASSERT(460, uSize==4);
|
||||
JUT_ASSERT(461, pContent!=0);
|
||||
JUT_ASSERT(461, pContent!=NULL);
|
||||
field_0x1b6 = *(u32*)pContent ? 1 : 0;
|
||||
}
|
||||
}
|
||||
@@ -279,9 +279,9 @@ JStudio_JParticle::TAdaptor_particle::TJPACallback_emitter_::execute(JPABaseEmit
|
||||
return;
|
||||
}
|
||||
const JStudio::TObject* pObject = pThis_->adaptor_getObject();
|
||||
JUT_ASSERT(534, pObject!=0);
|
||||
JUT_ASSERT(534, pObject!=NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(536, pControl!=0);
|
||||
JUT_ASSERT(536, pControl!=NULL);
|
||||
TJPAEmitter_stopDrawParticle_ aTStack_21c(pJPAEmitter);
|
||||
JStudio::TControl::TTransform_translation_rotation_scaling VStack_19c;
|
||||
JStudio::TControl::TTransform_translation_rotation_scaling aTStack_1c0;
|
||||
|
||||
@@ -20,7 +20,7 @@ JStudio_JStage::TCreateObject::~TCreateObject() {}
|
||||
*/
|
||||
bool JStudio_JStage::TCreateObject::create(
|
||||
JStudio::TObject** ppObject, JStudio::stb::data::TParse_TBlock_object const& rParse) {
|
||||
JUT_ASSERT(83, ppObject!=0);
|
||||
JUT_ASSERT(83, ppObject!=NULL);
|
||||
*ppObject = NULL;
|
||||
ObjCreateFuncT pfnCreateObject;
|
||||
JStage::TEObject eObject;
|
||||
@@ -48,14 +48,14 @@ bool JStudio_JStage::TCreateObject::create(
|
||||
default:
|
||||
return NULL;
|
||||
}
|
||||
JUT_ASSERT(99, pfnCreateObject!=0);
|
||||
JUT_ASSERT(99, pfnCreateObject!=NULL);
|
||||
JUT_ASSERT(100, eObject!=JStage::OBJECT_UNDEFINED);
|
||||
JUT_ASSERT(109, pJSGSystem_!=0);
|
||||
JUT_ASSERT(109, pJSGSystem_!=NULL);
|
||||
JStage::TObject* pJSGObject;
|
||||
int pJVar2 = pJSGSystem_->JSGFindObject(&pJSGObject, (char const*)rParse.get_ID(), eObject);
|
||||
switch(pJVar2) {
|
||||
case 0:
|
||||
JUT_ASSERT(115, pJSGObject!=0);
|
||||
JUT_ASSERT(115, pJSGObject!=NULL);
|
||||
*ppObject = pfnCreateObject(rParse, pJSGObject, pJSGSystem_);
|
||||
return true;
|
||||
case 2:
|
||||
|
||||
@@ -52,9 +52,9 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_begin() {
|
||||
#ifdef DEBUG
|
||||
{ // This block is needed to match the stack in debug
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(72, pObject!=0);
|
||||
JUT_ASSERT(72, pObject!=NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(74, pControl!=0);
|
||||
JUT_ASSERT(74, pControl!=NULL);
|
||||
getJSG_SRT_(pControl);
|
||||
}
|
||||
#else
|
||||
@@ -85,9 +85,9 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_end() {
|
||||
* adaptor_do_update__Q214JStudio_JStage14TAdaptor_actorFUl */
|
||||
void JStudio_JStage::TAdaptor_actor::adaptor_do_update(u32 param_1) {
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(104, pObject != 0);
|
||||
JUT_ASSERT(104, pObject != NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(106, pControl != 0);
|
||||
JUT_ASSERT(106, pControl != NULL);
|
||||
setJSG_SRT_(pControl);
|
||||
pJSGObject_->JSGUpdate();
|
||||
}
|
||||
@@ -123,7 +123,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_ANIMATION_MODE(JStudio::data::TE
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(153, uSize==4);
|
||||
JUT_ASSERT(154, pContent!=0);
|
||||
JUT_ASSERT(154, pContent!=NULL);
|
||||
field_0x130 = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -145,7 +145,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_TEXTURE_ANIMATION_MODE(
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(182, uSize==4);
|
||||
JUT_ASSERT(183, pContent!=0);
|
||||
JUT_ASSERT(183, pContent!=NULL);
|
||||
field_0x134 = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -157,7 +157,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_PARENT(
|
||||
JStudio::data::TEOperationData operation, void const* pContent, u32 uSize) {
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(203, pContent!=0);
|
||||
JUT_ASSERT(203, pContent!=NULL);
|
||||
JUT_ASSERT(204, uSize!=0);
|
||||
field_0x13c = adaptor_object_findJSGObject_((const char*)pContent);
|
||||
break;
|
||||
@@ -171,13 +171,13 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_PARENT_NODE(
|
||||
JStudio::data::TEOperationData operation, void const* pContent, u32 uSize) {
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(226, pContent!=0);
|
||||
JUT_ASSERT(226, pContent!=NULL);
|
||||
JUT_ASSERT(227, uSize!=0);
|
||||
field_0x140 = adaptor_object_findJSGObjectNode_(field_0x13c, (const char*)pContent);
|
||||
break;
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(237, uSize==4);
|
||||
JUT_ASSERT(238, pContent!=0);
|
||||
JUT_ASSERT(238, pContent!=NULL);
|
||||
field_0x140 = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -191,7 +191,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_PARENT_ENABLE(
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(257, uSize==4);
|
||||
JUT_ASSERT(258, pContent!=0);
|
||||
JUT_ASSERT(258, pContent!=NULL);
|
||||
bool v0 = (*(u32*)pContent != 0);
|
||||
if (field_0x144 != v0) {
|
||||
field_0x144 = v0;
|
||||
@@ -221,7 +221,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_PARENT_FUNCTION(
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(303, uSize==4);
|
||||
JUT_ASSERT(304, pContent!=0);
|
||||
JUT_ASSERT(304, pContent!=NULL);
|
||||
field_0x138 = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -233,7 +233,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_RELATION(
|
||||
JStudio::data::TEOperationData operation, void const* pContent, u32 uSize) {
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(324, pContent!=0);
|
||||
JUT_ASSERT(324, pContent!=NULL);
|
||||
JUT_ASSERT(325, uSize!=0);
|
||||
field_0x148 = adaptor_object_findJSGObject_((const char*)pContent);
|
||||
break;
|
||||
@@ -247,13 +247,13 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_RELATION_NODE(
|
||||
JStudio::data::TEOperationData operation, void const* pContent, u32 uSize) {
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(347, pContent!=0);
|
||||
JUT_ASSERT(347, pContent!=NULL);
|
||||
JUT_ASSERT(348, uSize!=0);
|
||||
field_0x14c = adaptor_object_findJSGObjectNode_(field_0x13c, (const char*)pContent);
|
||||
break;
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(358, uSize==4);
|
||||
JUT_ASSERT(359, pContent!=0);
|
||||
JUT_ASSERT(359, pContent!=NULL);
|
||||
field_0x14c = *(u32*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -267,7 +267,7 @@ void JStudio_JStage::TAdaptor_actor::adaptor_do_RELATION_ENABLE(
|
||||
switch (operation) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(378, uSize==4);
|
||||
JUT_ASSERT(379, pContent!=0);
|
||||
JUT_ASSERT(379, pContent!=NULL);
|
||||
pJSGObject_->JSGSetRelation(*(u32*)pContent, field_0x148, field_0x14c);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_begin() {
|
||||
adaptor_object_begin_();
|
||||
JStage::TCamera* pCamera = get_pJSG_();
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(70, pObject != 0);
|
||||
JUT_ASSERT(70, pObject != NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(72, pControl != 0);
|
||||
JUT_ASSERT(72, pControl != NULL);
|
||||
getJSG_position_(pControl);
|
||||
getJSG_targetPosition_(pControl);
|
||||
TVVOutput* pOutput = saoVVOutput_;
|
||||
@@ -78,9 +78,9 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_end() {
|
||||
* adaptor_do_update__Q214JStudio_JStage15TAdaptor_cameraFUl */
|
||||
void JStudio_JStage::TAdaptor_camera::adaptor_do_update(u32 param_1) {
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(98, pObject != 0);
|
||||
JUT_ASSERT(98, pObject != NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(100, pControl != 0);
|
||||
JUT_ASSERT(100, pControl != NULL);
|
||||
setJSG_position_(pControl);
|
||||
setJSG_targetPosition_(pControl);
|
||||
pJSGObject_->JSGUpdate();
|
||||
@@ -99,7 +99,7 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_PARENT(JStudio::data::TEOperati
|
||||
void const* pContent, u32 uSize) {
|
||||
switch(param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(132, pContent!=0);
|
||||
JUT_ASSERT(132, pContent!=NULL);
|
||||
JUT_ASSERT(133, uSize!=0);
|
||||
field_0x10c = adaptor_object_findJSGObject_((char*)pContent);
|
||||
break;
|
||||
@@ -113,13 +113,13 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_PARENT_NODE(JStudio::data::TEOp
|
||||
void const* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(155, pContent!=0);
|
||||
JUT_ASSERT(155, pContent!=NULL);
|
||||
JUT_ASSERT(156, uSize!=0);
|
||||
field_0x110 = adaptor_object_findJSGObjectNode_(field_0x10c, (char*)pContent);
|
||||
break;
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(166, uSize==4);
|
||||
JUT_ASSERT(167, pContent!=0);
|
||||
JUT_ASSERT(167, pContent!=NULL);
|
||||
field_0x110 = *(int*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -134,7 +134,7 @@ JStudio_JStage::TAdaptor_camera::adaptor_do_PARENT_ENABLE(JStudio::data::TEOpera
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(185, uSize==4);
|
||||
JUT_ASSERT(186, pContent!=0);
|
||||
JUT_ASSERT(186, pContent!=NULL);
|
||||
field_0x114 = *(u32*)pContent ? 1 : 0;
|
||||
switch(field_0x108) {
|
||||
case 1:
|
||||
@@ -162,7 +162,7 @@ JStudio_JStage::TAdaptor_camera::adaptor_do_PARENT_FUNCTION(JStudio::data::TEOpe
|
||||
switch(param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(226, uSize==4);
|
||||
JUT_ASSERT(227, pContent!=0);
|
||||
JUT_ASSERT(227, pContent!=NULL);
|
||||
field_0x108 = *(int*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -175,7 +175,7 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_TARGET_PARENT(
|
||||
JStudio::data::TEOperationData param_1, void const* pContent, u32 uSize) {
|
||||
switch(param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(247, pContent!=0);
|
||||
JUT_ASSERT(247, pContent!=NULL);
|
||||
JUT_ASSERT(248, uSize!=0);
|
||||
field_0x118 = adaptor_object_findJSGObject_((char*)pContent);
|
||||
break;
|
||||
@@ -189,13 +189,13 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_TARGET_PARENT_NODE(
|
||||
JStudio::data::TEOperationData param_1, void const* pContent, u32 uSize) {
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x18:
|
||||
JUT_ASSERT(270, pContent!=0);
|
||||
JUT_ASSERT(270, pContent!=NULL);
|
||||
JUT_ASSERT(271, uSize!=0);
|
||||
field_0x11c = adaptor_object_findJSGObjectNode_(field_0x118, (char*)pContent);
|
||||
break;
|
||||
case JStudio::data::UNK_0x19:
|
||||
JUT_ASSERT(282, uSize==4);
|
||||
JUT_ASSERT(283, pContent!=0);
|
||||
JUT_ASSERT(283, pContent!=NULL);
|
||||
field_0x11c = *(int*)pContent;
|
||||
break;
|
||||
}
|
||||
@@ -209,7 +209,7 @@ void JStudio_JStage::TAdaptor_camera::adaptor_do_TARGET_PARENT_ENABLE(
|
||||
switch(param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(301, uSize==4);
|
||||
JUT_ASSERT(302, pContent!=0);
|
||||
JUT_ASSERT(302, pContent!=NULL);
|
||||
field_0x120 = *(int*)pContent ? 1 : 0;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -61,9 +61,9 @@ void JStudio_JStage::TAdaptor_light::adaptor_do_begin() {
|
||||
adaptor_object_begin_();
|
||||
JStage::TLight* pLightObj = get_pJSG_();
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(60, pObject != 0);
|
||||
JUT_ASSERT(60, pObject != NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(62, pControl != 0);
|
||||
JUT_ASSERT(62, pControl != NULL);
|
||||
GXColor lightColor = pLightObj->JSGGetColor();
|
||||
adaptor_setVariableValue_GXColor(sauVariableValue_4_COLOR_RGBA, lightColor);
|
||||
JStudio::TControl::TTransform_position_direction lightObjTransform;
|
||||
@@ -98,9 +98,9 @@ void JStudio_JStage::TAdaptor_light::adaptor_do_end() {
|
||||
void JStudio_JStage::TAdaptor_light::adaptor_do_update(u32 param_1) {
|
||||
JStage::TLight* lightObj = get_pJSG_();
|
||||
const JStudio::TObject* pObject = adaptor_getObject();
|
||||
JUT_ASSERT(118, pObject!=0);
|
||||
JUT_ASSERT(118, pObject!=NULL);
|
||||
const JStudio::TControl* pControl = pObject->getControl();
|
||||
JUT_ASSERT(120, pControl!=0);
|
||||
JUT_ASSERT(120, pControl!=NULL);
|
||||
GXColor lightColor;
|
||||
adaptor_getVariableValue_GXColor(&lightColor, sauVariableValue_4_COLOR_RGBA);
|
||||
lightObj->JSGSetColor(lightColor);
|
||||
@@ -145,7 +145,7 @@ void JStudio_JStage::TAdaptor_light::adaptor_do_FACULTY(JStudio::data::TEOperati
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(198, uSize==4);
|
||||
JUT_ASSERT(199, pContent!=0);
|
||||
JUT_ASSERT(199, pContent!=NULL);
|
||||
JStage::TELight lightType;
|
||||
switch (*(u32*)pContent) {
|
||||
case 0x301:
|
||||
|
||||
@@ -107,7 +107,7 @@ JStage::TObject*
|
||||
JStudio_JStage::TAdaptor_object_::adaptor_object_findJSGObject_(char const* param_1) {
|
||||
JStage::TObject* pJSGObject;
|
||||
if (pJSGSystem_->JSGFindObject(&pJSGObject, param_1, JStage::OBJECT_UNDEFINED) == 0) {
|
||||
JUT_ASSERT(122, pJSGObject != 0);
|
||||
JUT_ASSERT(122, pJSGObject != NULL);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
@@ -133,7 +133,7 @@ JStudio_JStage::TAdaptor_object_::adaptor_object_ENABLE_(JStudio::data::TEOperat
|
||||
switch (param_1) {
|
||||
case JStudio::data::UNK_0x2:
|
||||
JUT_ASSERT(157, uSize==4);
|
||||
JUT_ASSERT(158, pContent!=0);
|
||||
JUT_ASSERT(158, pContent!=NULL);
|
||||
if (*(u32*)pContent != 0) {
|
||||
pJSGObject_->JSGFEnableFlag(2);
|
||||
} else {
|
||||
|
||||
@@ -17,7 +17,7 @@ JUTConsoleManager* JUTConsoleManager::sManager;
|
||||
*/
|
||||
JUTConsole* JUTConsole::create(unsigned int param_0, unsigned int maxLines, JKRHeap* pHeap) {
|
||||
JUTConsoleManager* pManager = JUTConsoleManager::getManager();
|
||||
JUT_ASSERT(33, pManager != 0);
|
||||
JUT_ASSERT(33, pManager != NULL);
|
||||
|
||||
u8* buffer = (u8*)JKRAllocFromHeap(pHeap, getObjectSizeFromBufferSize(param_0, maxLines), 0);
|
||||
|
||||
@@ -32,7 +32,7 @@ JUTConsole* JUTConsole::create(unsigned int param_0, unsigned int maxLines, JKRH
|
||||
/* 802E73E4-802E746C 2E1D24 0088+00 0/0 1/1 0/0 .text create__10JUTConsoleFUiPvUl */
|
||||
JUTConsole* JUTConsole::create(unsigned int param_0, void* buffer, u32 bufferSize) {
|
||||
JUTConsoleManager* pManager = JUTConsoleManager::getManager();
|
||||
JUT_ASSERT(59, pManager != 0);
|
||||
JUT_ASSERT(59, pManager != NULL);
|
||||
|
||||
JUT_ASSERT(62, ( (u32)buffer & 0x3 ) == 0);
|
||||
u32 maxLines = getLineFromObjectSize(bufferSize, param_0);
|
||||
@@ -262,7 +262,7 @@ void JUTConsole::print(char const* str) {
|
||||
|
||||
/* 802E7F30-802E7F7C 2E2870 004C+00 1/1 1/1 0/0 .text JUTConsole_print_f_va_ */
|
||||
extern "C" void JUTConsole_print_f_va_(JUTConsole* console, const char* fmt, va_list args) {
|
||||
JUT_ASSERT(563, console!=0);
|
||||
JUT_ASSERT(563, console!=NULL);
|
||||
|
||||
char buf[1024];
|
||||
vsnprintf(buf, sizeof(buf), fmt, args);
|
||||
@@ -361,7 +361,7 @@ JUTConsoleManager::JUTConsoleManager() {
|
||||
/* 802E81F4-802E8240 2E2B34 004C+00 0/0 1/1 0/0 .text createManager__17JUTConsoleManagerFP7JKRHeap
|
||||
*/
|
||||
JUTConsoleManager* JUTConsoleManager::createManager(JKRHeap* pHeap) {
|
||||
JUT_ASSERT(0x39c, sManager == 0);
|
||||
JUT_ASSERT(0x39c, sManager == NULL);
|
||||
|
||||
if (pHeap == NULL) {
|
||||
pHeap = JKRGetCurrentHeap();
|
||||
@@ -375,7 +375,7 @@ JUTConsoleManager* JUTConsoleManager::createManager(JKRHeap* pHeap) {
|
||||
/* 802E8240-802E82B0 2E2B80 0070+00 3/3 0/0 0/0 .text
|
||||
* appendConsole__17JUTConsoleManagerFP10JUTConsole */
|
||||
void JUTConsoleManager::appendConsole(JUTConsole* console) {
|
||||
JUT_ASSERT(961, sManager != 0 && console != 0);
|
||||
JUT_ASSERT(961, sManager != NULL && console != NULL);
|
||||
|
||||
JUT_ASSERT(964, soLink_.Find( console ) == soLink_.end());
|
||||
soLink_.Push_back(console);
|
||||
@@ -388,7 +388,7 @@ void JUTConsoleManager::appendConsole(JUTConsole* console) {
|
||||
/* 802E82B0-802E8384 2E2BF0 00D4+00 2/2 0/0 0/0 .text
|
||||
* removeConsole__17JUTConsoleManagerFP10JUTConsole */
|
||||
void JUTConsoleManager::removeConsole(JUTConsole* console) {
|
||||
JUT_ASSERT(982, sManager != 0 && console != 0);
|
||||
JUT_ASSERT(982, sManager != NULL && console != NULL);
|
||||
JUT_ASSERT(985, soLink_.Find( console ) != soLink_.end());
|
||||
|
||||
if (mActiveConsole == console) {
|
||||
|
||||
@@ -12,8 +12,6 @@
|
||||
#include "JSystem/JUtility/JUTConsole.h"
|
||||
#include "dolphin/gx.h"
|
||||
|
||||
#define suAboutEncoding_ 3
|
||||
|
||||
/* 802DEF48-802DEF94 2D9888 004C+00 0/0 1/1 0/0 .text __ct__10JUTResFontFv */
|
||||
JUTResFont::JUTResFont() {
|
||||
initialize_state();
|
||||
|
||||
Reference in New Issue
Block a user