mirror of
https://github.com/encounter/tp.git
synced 2026-07-11 06:18:46 -07:00
Port JStudio work to new branch (#160)
* build fix * stb * functionvalue * fvb * jstudio cleanup * d
This commit is contained in:
@@ -7,25 +7,6 @@
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
//
|
||||
|
||||
namespace JGadget {
|
||||
struct binary {
|
||||
struct TEBit {};
|
||||
|
||||
struct TParse_header_block {
|
||||
/* 802DC8C8 */ ~TParse_header_block();
|
||||
/* 802DC910 */ void parse_next(void const**, u32);
|
||||
};
|
||||
|
||||
/* 802DC864 */ void parseVariableUInt_16_32_following(void const*, u32*, u32*,
|
||||
JGadget::binary::TEBit*);
|
||||
};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
@@ -53,9 +34,9 @@ extern "C" extern void* __vt__Q37JGadget6binary19TParse_header_block[5];
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void JGadget::binary::parseVariableUInt_16_32_following(void const* param_0, u32* param_1,
|
||||
u32* param_2,
|
||||
JGadget::binary::TEBit* param_3) {
|
||||
asm const void*
|
||||
JGadget::binary::parseVariableUInt_16_32_following(void const* param_0, u32* param_1, u32* param_2,
|
||||
JGadget::binary::TEBit* param_3) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JGadget/binary/parseVariableUInt_16_32_following__Q27JGadget6binaryFPCvPUlPUlPQ37JGadget6binary5TEBit.s"
|
||||
}
|
||||
@@ -77,7 +58,7 @@ asm JGadget::binary::TParse_header_block::~TParse_header_block() {
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void JGadget::binary::TParse_header_block::parse_next(void const** param_0, u32 param_1) {
|
||||
asm bool JGadget::binary::TParse_header_block::parse_next(void const** param_0, u32 param_1) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JGadget/binary/parse_next__Q37JGadget6binary19TParse_header_blockFPPCvUl.s"
|
||||
}
|
||||
|
||||
@@ -104,7 +104,8 @@ asm void JGadget::TNodeLinkList::Insert(JGadget::TNodeLinkList::iterator param_0
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void JGadget::TNodeLinkList::Erase(JGadget::TLinkListNode* param_0) {
|
||||
asm JGadget::TNodeLinkList::iterator
|
||||
JGadget::TNodeLinkList::Erase(JGadget::TLinkListNode* param_0) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JGadget/linklist/Erase__Q27JGadget13TNodeLinkListFPQ27JGadget13TLinkListNode.s"
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//
|
||||
|
||||
#include "JSystem/JMessage/resource.h"
|
||||
#include "JSystem/JGadget/binary.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -58,25 +59,6 @@ struct JMessage {
|
||||
};
|
||||
};
|
||||
|
||||
namespace JGadget {
|
||||
struct binary {
|
||||
struct TParse_header_block {
|
||||
/* 802DC8C8 */ ~TParse_header_block();
|
||||
};
|
||||
};
|
||||
|
||||
struct TLinkListNode {};
|
||||
|
||||
struct TNodeLinkList {
|
||||
struct iterator {};
|
||||
|
||||
/* 802DCA1C */ ~TNodeLinkList();
|
||||
/* 802DCBA8 */ void Insert(JGadget::TNodeLinkList::iterator, JGadget::TLinkListNode*);
|
||||
/* 802DCBD4 */ void Erase(JGadget::TLinkListNode*);
|
||||
};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
@@ -6,7 +6,9 @@ LIBJSTUDIO_A_CPP_FILES := \
|
||||
libs/JSystem/JStudio/JStudio/ctb.cpp \
|
||||
libs/JSystem/JStudio/JStudio/ctb-data.cpp \
|
||||
libs/JSystem/JStudio/JStudio/functionvalue.cpp \
|
||||
libs/JSystem/JStudio/JStudio/functionvalue-inline.cpp \
|
||||
libs/JSystem/JStudio/JStudio/fvb.cpp \
|
||||
libs/JSystem/JStudio/JStudio/fvb-inline.cpp \
|
||||
libs/JSystem/JStudio/JStudio/fvb-data.cpp \
|
||||
libs/JSystem/JStudio/JStudio/fvb-data-parse.cpp \
|
||||
libs/JSystem/JStudio/JStudio/jstudio-control.cpp \
|
||||
@@ -22,7 +24,9 @@ LIBJSTUDIO_A_O_FILES := \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/ctb.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/ctb-data.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/functionvalue.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/functionvalue-inline.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb-inline.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb-data.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/fvb-data-parse.o \
|
||||
$(BUILD_DIR)/libs/JSystem/JStudio/JStudio/jstudio-control.o \
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//
|
||||
|
||||
#include "JSystem/JStudio/JStudio/ctb.h"
|
||||
#include "JSystem/JGadget/binary.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -55,14 +56,13 @@ struct TParse {
|
||||
|
||||
}; // namespace ctb
|
||||
|
||||
struct object {
|
||||
struct TPRObject_ID_equal {};
|
||||
namespace object {
|
||||
struct TPRObject_ID_equal {};
|
||||
|
||||
struct TIDData {
|
||||
/* 80288988 */ void isEqual(JStudio::object::TIDData const&,
|
||||
JStudio::object::TIDData const&);
|
||||
};
|
||||
struct TIDData {
|
||||
/* 80288988 */ void isEqual(JStudio::object::TIDData const&, JStudio::object::TIDData const&);
|
||||
};
|
||||
}; // namespace object
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
@@ -73,23 +73,6 @@ struct TLinkList {};
|
||||
struct TLinkList__template0 {
|
||||
struct iterator {};
|
||||
};
|
||||
|
||||
struct binary {
|
||||
struct TParse_header_block {
|
||||
/* 802DC8C8 */ ~TParse_header_block();
|
||||
};
|
||||
};
|
||||
|
||||
struct TLinkListNode {};
|
||||
|
||||
struct TNodeLinkList {
|
||||
struct iterator {};
|
||||
|
||||
/* 802DCA1C */ ~TNodeLinkList();
|
||||
/* 802DCBA8 */ void Insert(JGadget::TNodeLinkList::iterator, JGadget::TLinkListNode*);
|
||||
/* 802DCBD4 */ void Erase(JGadget::TLinkListNode*);
|
||||
};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
namespace std {
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
#include "JSystem/JStudio/JStudio/functionvalue.h"
|
||||
#include "global.h"
|
||||
|
||||
namespace std {
|
||||
template <typename A1>
|
||||
struct less {};
|
||||
/* less<f64> */
|
||||
struct less__template0 {};
|
||||
|
||||
template <typename A1, typename B1, typename C1>
|
||||
void upper_bound(/* ... */);
|
||||
}; // namespace std
|
||||
|
||||
/* 80283E24-80283EB8 27E764 0094+00 1/1 0/0 0/0 .text
|
||||
* upper_bound<Q37JStudio29TFunctionValue_list_parameter15TIterator_data_,d,Q23std7less<d>>__3stdFQ37JStudio29TFunctionValue_list_parameter15TIterator_data_Q37JStudio29TFunctionValue_list_parameter15TIterator_data_RCdQ23std7less<d>
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
#pragma force_active on
|
||||
extern "C" inline asm void
|
||||
func_80283E24(void* _this, JStudio::TFunctionValue_list_parameter::TIterator_data_ param_0,
|
||||
JStudio::TFunctionValue_list_parameter::TIterator_data_ param_1, f64 const& param_2,
|
||||
std::less<f64> param_3) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JStudio/JStudio/functionvalue/func_80283E24.s"
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80283EB8-80283F80 27E7F8 00C8+00 1/1 0/0 0/0 .text
|
||||
* upper_bound<Q37JStudio22TFunctionValue_hermite15TIterator_data_,d,Q23std7less<d>>__3stdFQ37JStudio22TFunctionValue_hermite15TIterator_data_Q37JStudio22TFunctionValue_hermite15TIterator_data_RCdQ23std7less<d>
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
#pragma force_active on
|
||||
extern "C" inline asm void func_80283EB8(void* _this,
|
||||
JStudio::TFunctionValue_hermite::TIterator_data_ param_0,
|
||||
JStudio::TFunctionValue_hermite::TIterator_data_ param_1,
|
||||
f64 const& param_2, std::less<f64> param_3) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JStudio/JStudio/functionvalue/func_80283EB8.s"
|
||||
}
|
||||
#pragma pop
|
||||
File diff suppressed because it is too large
Load Diff
@@ -11,30 +11,6 @@
|
||||
// Types:
|
||||
//
|
||||
|
||||
namespace JStudio {
|
||||
namespace fvb {
|
||||
struct data {
|
||||
struct TParse_TParagraph {
|
||||
struct TData {};
|
||||
|
||||
/* 802850AC */ void getData(JStudio::fvb::data::TParse_TParagraph::TData*) const;
|
||||
};
|
||||
};
|
||||
|
||||
}; // namespace fvb
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
namespace JGadget {
|
||||
struct binary {
|
||||
struct TEBit {};
|
||||
|
||||
/* 802DC864 */ void parseVariableUInt_16_32_following(void const*, u32*, u32*,
|
||||
JGadget::binary::TEBit*);
|
||||
};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
@@ -11,16 +11,6 @@
|
||||
// Types:
|
||||
//
|
||||
|
||||
namespace JStudio {
|
||||
namespace fvb {
|
||||
struct data {
|
||||
static f32 ga4cSignature[1 + 1 /* padding */];
|
||||
};
|
||||
|
||||
}; // namespace fvb
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
#include "JSystem/JStudio/JStudio/object-id.h"
|
||||
|
||||
namespace JGadget {
|
||||
/* TLinkList<JStudio::fvb::TObject, 12> */
|
||||
struct TLinkList__template1 {
|
||||
struct iterator {};
|
||||
};
|
||||
|
||||
/* TVector_pointer<JStudio::TFunctionValue*> */
|
||||
struct TVector_pointer__template0 {};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
extern "C" void
|
||||
isEqual__Q37JStudio6object7TIDDataFRCQ37JStudio6object7TIDDataRCQ37JStudio6object7TIDData();
|
||||
extern "C" void _savegpr_28();
|
||||
extern "C" void _restgpr_28();
|
||||
|
||||
/* 80285018-802850AC 27F958 0094+00 1/1 0/0 0/0 .text
|
||||
* find_if<Q37JGadget37TLinkList<Q37JStudio3fvb7TObject,-12>8iterator,Q37JStudio6object18TPRObject_ID_equal>__3stdFQ37JGadget37TLinkList<Q37JStudio3fvb7TObject,-12>8iteratorQ37JGadget37TLinkList<Q37JStudio3fvb7TObject,-12>8iteratorQ37JStudio6object18TPRObject_ID_equal
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
extern "C" asm void func_80285018(void* _this, JGadget::TLinkList__template1::iterator param_0,
|
||||
JGadget::TLinkList__template1::iterator param_1,
|
||||
JStudio::object::TPRObject_ID_equal param_2) {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JStudio/JStudio/fvb/func_80285018.s"
|
||||
}
|
||||
#pragma pop
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,9 @@
|
||||
//
|
||||
|
||||
#include "JSystem/JStudio/JStudio/jstudio-control.h"
|
||||
#include "JSystem/JGadget/binary.h"
|
||||
#include "JSystem/JStudio/JStudio/fvb.h"
|
||||
#include "JSystem/JStudio/JStudio/stb.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -18,38 +21,6 @@ struct TCreateObject {
|
||||
/* 80285488 */ ~TCreateObject();
|
||||
};
|
||||
|
||||
namespace stb {
|
||||
struct data {
|
||||
struct TParse_TBlock_object {};
|
||||
|
||||
struct TParse_THeader {};
|
||||
|
||||
struct TParse_TBlock {};
|
||||
};
|
||||
|
||||
struct TControl {
|
||||
/* 802890B4 */ TControl();
|
||||
/* 80289194 */ ~TControl();
|
||||
};
|
||||
|
||||
struct TObject {};
|
||||
|
||||
struct TFactory {
|
||||
/* 802895B4 */ ~TFactory();
|
||||
/* 80289604 */ void destroy(JStudio::stb::TObject*);
|
||||
};
|
||||
|
||||
struct TParse {
|
||||
/* 80289640 */ TParse(JStudio::stb::TControl*);
|
||||
/* 80289660 */ ~TParse();
|
||||
/* 802896C0 */ void parseHeader_next(void const**, u32*, u32);
|
||||
/* 8028978C */ void parseBlock_next(void const**, u32*, u32);
|
||||
/* 802897E8 */ void parseBlock_block(JStudio::stb::data::TParse_TBlock const&, u32);
|
||||
/* 80289820 */ void parseBlock_object(JStudio::stb::data::TParse_TBlock_object const&, u32);
|
||||
};
|
||||
|
||||
}; // namespace stb
|
||||
|
||||
struct TFactory {
|
||||
/* 802854D0 */ ~TFactory();
|
||||
/* 80285560 */ void appendCreateObject(JStudio::TCreateObject*);
|
||||
@@ -95,47 +66,12 @@ struct TParse {
|
||||
/* 802858F0 */ void parseBlock_block_ctb_(JStudio::stb::data::TParse_TBlock const&, u32);
|
||||
};
|
||||
|
||||
namespace fvb {
|
||||
struct TControl {
|
||||
/* 80284668 */ TControl();
|
||||
/* 80284698 */ ~TControl();
|
||||
};
|
||||
|
||||
struct TFactory {
|
||||
/* 80284918 */ ~TFactory();
|
||||
};
|
||||
|
||||
struct TParse {
|
||||
/* 80284ADC */ TParse(JStudio::fvb::TControl*);
|
||||
/* 80284AFC */ ~TParse();
|
||||
};
|
||||
|
||||
}; // namespace fvb
|
||||
|
||||
struct data {
|
||||
static u8 ga8cSignature[8];
|
||||
};
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
namespace JGadget {
|
||||
struct binary {
|
||||
struct TParse_header_block {
|
||||
/* 802DC910 */ void parse_next(void const**, u32);
|
||||
};
|
||||
};
|
||||
|
||||
struct TLinkListNode {};
|
||||
|
||||
struct TNodeLinkList {
|
||||
struct iterator {};
|
||||
|
||||
/* 802DCA1C */ ~TNodeLinkList();
|
||||
/* 802DCBA8 */ void Insert(JGadget::TNodeLinkList::iterator, JGadget::TLinkListNode*);
|
||||
};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
//
|
||||
|
||||
#include "JSystem/JStudio/JStudio/jstudio-object.h"
|
||||
#include "JSystem/JStudio/JStudio/fvb.h"
|
||||
#include "JSystem/JStudio/JStudio/stb.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -73,18 +75,6 @@ struct TVariableValue {
|
||||
static u8 soOutput_none_[4 + 4 /* padding */];
|
||||
};
|
||||
|
||||
namespace stb {
|
||||
struct data {
|
||||
struct TParse_TBlock_object {};
|
||||
};
|
||||
|
||||
struct TObject {
|
||||
/* 80288AC0 */ TObject(JStudio::stb::data::TParse_TBlock_object const&);
|
||||
/* 80288B30 */ ~TObject();
|
||||
};
|
||||
|
||||
}; // namespace stb
|
||||
|
||||
struct TObject {
|
||||
/* 802866B0 */ ~TObject();
|
||||
/* 80286734 */ void forward_value(u32);
|
||||
@@ -214,14 +204,6 @@ struct TObject_sound {
|
||||
/* 80287F04 */ ~TObject_sound();
|
||||
};
|
||||
|
||||
namespace fvb {
|
||||
struct TControl {
|
||||
/* 80284834 */ void getObject(void const*, u32);
|
||||
/* 802848D4 */ void getObject_index(u32);
|
||||
};
|
||||
|
||||
}; // namespace fvb
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
//
|
||||
|
||||
@@ -11,16 +11,6 @@
|
||||
// Types:
|
||||
//
|
||||
|
||||
namespace JStudio {
|
||||
struct object {
|
||||
struct TIDData {
|
||||
/* 80288988 */ void isEqual(JStudio::object::TIDData const&,
|
||||
JStudio::object::TIDData const&);
|
||||
};
|
||||
};
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
@@ -5,106 +5,94 @@
|
||||
|
||||
#include "JSystem/JStudio/JStudio/stb-data-parse.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
//
|
||||
#include "global.h"
|
||||
|
||||
namespace JStudio {
|
||||
namespace stb {
|
||||
struct data {
|
||||
struct TParse_TSequence {
|
||||
struct TData {};
|
||||
namespace data {
|
||||
|
||||
/* 802899BC */ void getData(JStudio::stb::data::TParse_TSequence::TData*) const;
|
||||
};
|
||||
extern "C" u32 gauDataSize_TEParagraph_data__Q37JStudio3stb4data[];
|
||||
|
||||
struct TParse_TParagraph {
|
||||
struct TData {};
|
||||
void TParse_TSequence::getData(TData* pData) const {
|
||||
ASSERT(pData != 0);
|
||||
|
||||
/* 80289A08 */ void getData(JStudio::stb::data::TParse_TParagraph::TData*) const;
|
||||
};
|
||||
|
||||
struct TParse_TParagraph_data {
|
||||
struct TData {};
|
||||
|
||||
/* 80289A80 */ void getData(JStudio::stb::data::TParse_TParagraph_data::TData*) const;
|
||||
};
|
||||
|
||||
static u8 const gauDataSize_TEParagraph_data[32];
|
||||
};
|
||||
|
||||
}; // namespace stb
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
namespace JGadget {
|
||||
struct binary {
|
||||
struct TEBit {};
|
||||
|
||||
/* 802DC864 */ void parseVariableUInt_16_32_following(void const*, u32*, u32*,
|
||||
JGadget::binary::TEBit*);
|
||||
};
|
||||
|
||||
}; // namespace JGadget
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
extern "C" void
|
||||
getData__Q47JStudio3stb4data16TParse_TSequenceCFPQ57JStudio3stb4data16TParse_TSequence5TData();
|
||||
extern "C" void
|
||||
getData__Q47JStudio3stb4data17TParse_TParagraphCFPQ57JStudio3stb4data17TParse_TParagraph5TData();
|
||||
extern "C" void
|
||||
getData__Q47JStudio3stb4data22TParse_TParagraph_dataCFPQ57JStudio3stb4data22TParse_TParagraph_data5TData();
|
||||
|
||||
//
|
||||
// External References:
|
||||
//
|
||||
|
||||
extern "C" void
|
||||
parseVariableUInt_16_32_following__Q27JGadget6binaryFPCvPUlPUlPQ37JGadget6binary5TEBit();
|
||||
extern "C" u8 const gauDataSize_TEParagraph_data__Q37JStudio3stb4data[32];
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
//
|
||||
|
||||
/* 802899BC-80289A08 2842FC 004C+00 0/0 1/1 0/0 .text
|
||||
* getData__Q47JStudio3stb4data16TParse_TSequenceCFPQ57JStudio3stb4data16TParse_TSequence5TData */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void JStudio::stb::data::TParse_TSequence::getData(
|
||||
JStudio::stb::data::TParse_TSequence::TData* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JStudio/JStudio/stb-data-parse/func_802899BC.s"
|
||||
pData->content = NULL;
|
||||
pData->next = NULL;
|
||||
u32 head = get_head();
|
||||
u8 type = head >> 24;
|
||||
u32 param = head & 0xffffff;
|
||||
pData->type = type;
|
||||
pData->param = param;
|
||||
if (type != 0) {
|
||||
const void* next = (const void*)((int)getRaw() + 4);
|
||||
if (type <= 0x7f) {
|
||||
pData->next = next;
|
||||
} else {
|
||||
pData->content = next;
|
||||
pData->next = (const void*)((int)next + param);
|
||||
}
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
/* 80289A08-80289A80 284348 0078+00 0/0 1/1 0/0 .text
|
||||
* getData__Q47JStudio3stb4data17TParse_TParagraphCFPQ57JStudio3stb4data17TParse_TParagraph5TData */
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void JStudio::stb::data::TParse_TParagraph::getData(
|
||||
JStudio::stb::data::TParse_TParagraph::TData* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JStudio/JStudio/stb-data-parse/func_80289A08.s"
|
||||
void TParse_TParagraph::getData(TData* pData) const {
|
||||
ASSERT(pData != 0);
|
||||
|
||||
const void* data = getRaw();
|
||||
u32 result;
|
||||
const void* next = parseVariableUInt_16_32_following(data, &result, &pData->type, NULL);
|
||||
pData->param = result;
|
||||
if (result == 0) {
|
||||
pData->content = NULL;
|
||||
pData->next = next;
|
||||
} else {
|
||||
pData->content = next;
|
||||
pData->next = (const void*)((int)next + align_roundUp(result, 4));
|
||||
}
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
#ifdef NONMATCHING
|
||||
void TParse_TParagraph_data::getData(data::TParse_TParagraph_data::TData* pData) const {
|
||||
ASSERT(pData != 0);
|
||||
|
||||
pData->_4 = 0;
|
||||
pData->_8 = 0;
|
||||
pData->_c = NULL;
|
||||
pData->_10 = 0;
|
||||
u8* p = (u8*)getRaw();
|
||||
if (p != NULL) {
|
||||
u8 val = *p;
|
||||
pData->_0 = val & ~8;
|
||||
if (val != 0) {
|
||||
u32 count = 1;
|
||||
p++;
|
||||
if (val & 8) {
|
||||
count = *(p++);
|
||||
}
|
||||
pData->_8 = count;
|
||||
pData->_c = p;
|
||||
u8 idx = val & 7;
|
||||
if (idx) {
|
||||
u32 size = gauDataSize_TEParagraph_data[idx];
|
||||
pData->_4 = size;
|
||||
pData->_10 = p + size * count;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* 80289A80-80289B00 2843C0 0080+00 0/0 3/3 1/1 .text
|
||||
* getData__Q47JStudio3stb4data22TParse_TParagraph_dataCFPQ57JStudio3stb4data22TParse_TParagraph_data5TData
|
||||
*/
|
||||
#pragma push
|
||||
#pragma optimization_level 0
|
||||
#pragma optimizewithasm off
|
||||
asm void JStudio::stb::data::TParse_TParagraph_data::getData(
|
||||
JStudio::stb::data::TParse_TParagraph_data::TData* param_0) const {
|
||||
asm void TParse_TParagraph_data::getData(TParse_TParagraph_data::TData* param_0) const {
|
||||
nofralloc
|
||||
#include "asm/JSystem/JStudio/JStudio/stb-data-parse/func_80289A80.s"
|
||||
}
|
||||
#pragma pop
|
||||
#endif
|
||||
|
||||
} // namespace data
|
||||
} // namespace stb
|
||||
} // namespace JStudio
|
||||
@@ -7,49 +7,17 @@
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
//
|
||||
// Types:
|
||||
//
|
||||
|
||||
namespace JStudio {
|
||||
namespace stb {
|
||||
struct data {
|
||||
static u8 const gauDataSize_TEParagraph_data[32];
|
||||
static u32 ga4cSignature[1 + 1 /* padding */];
|
||||
};
|
||||
namespace data {
|
||||
|
||||
}; // namespace stb
|
||||
|
||||
}; // namespace JStudio
|
||||
|
||||
//
|
||||
// Forward References:
|
||||
//
|
||||
|
||||
extern "C" u8 const gauDataSize_TEParagraph_data__Q37JStudio3stb4data[32];
|
||||
extern "C" u32 ga4cSignature__Q37JStudio3stb4data[1 + 1 /* padding */];
|
||||
|
||||
//
|
||||
// External References:
|
||||
//
|
||||
|
||||
//
|
||||
// Declarations:
|
||||
//
|
||||
|
||||
/* ############################################################################################## */
|
||||
/* 8039AB88-8039ABA8 0271E8 0020+00 0/0 1/1 0/0 .rodata
|
||||
* gauDataSize_TEParagraph_data__Q37JStudio3stb4data */
|
||||
SECTION_RODATA u8 const JStudio::stb::data::gauDataSize_TEParagraph_data[32] = {
|
||||
const u8 gauDataSize_TEParagraph_data[32] = {
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x04,
|
||||
0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x40,
|
||||
};
|
||||
COMPILER_STRIP_GATE(0x8039AB88, &JStudio::stb::data::gauDataSize_TEParagraph_data);
|
||||
|
||||
/* 804554D8-804554E0 003AD8 0004+04 0/0 1/1 0/0 .sdata2 ga4cSignature__Q37JStudio3stb4data
|
||||
*/
|
||||
SECTION_SDATA2 u32 JStudio::stb::data::ga4cSignature[1 + 1 /* padding */] = {
|
||||
0x53544200,
|
||||
/* padding */
|
||||
0x00000000,
|
||||
};
|
||||
const u32 ga4cSignature = 'STB\0';
|
||||
|
||||
} // namespace data
|
||||
} // namespace stb
|
||||
} // namespace JStudio
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -4,6 +4,7 @@
|
||||
//
|
||||
|
||||
#include "JSystem/JStudio/JStudio_JParticle/control.h"
|
||||
#include "JSystem/JStudio/JStudio/stb.h"
|
||||
#include "dol2asm.h"
|
||||
#include "dolphin/types.h"
|
||||
|
||||
@@ -14,13 +15,6 @@
|
||||
namespace JStudio {
|
||||
struct TObject {};
|
||||
|
||||
namespace stb {
|
||||
struct data {
|
||||
struct TParse_TBlock_object {};
|
||||
};
|
||||
|
||||
}; // namespace stb
|
||||
|
||||
struct TCreateObject {
|
||||
/* 80285488 */ ~TCreateObject();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user