mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 05:28:43 -04:00
Merge branch 'main' of https://github.com/zeldaret/tp
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define J2DMATBLOCK_H
|
||||
|
||||
#include "JSystem/J2DGraph/J2DTevs.h"
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
#include "JSystem/JUtility/TColor.h"
|
||||
|
||||
class JUTFont;
|
||||
@@ -117,6 +118,7 @@ public:
|
||||
}
|
||||
virtual J2DTevOrder* getTevOrder(u32 index) { return &mTevOrder[index]; }
|
||||
virtual void setTevColor(u32 index, J2DGXColorS10 color) {
|
||||
J3D_PANIC(250, index < 4, "Error : range over.");
|
||||
mTevColor[index] = color;
|
||||
}
|
||||
virtual J2DGXColorS10* getTevColor(u32 index) { return &mTevColor[index]; }
|
||||
@@ -212,6 +214,7 @@ public:
|
||||
}
|
||||
virtual J2DTevOrder* getTevOrder(u32 index) { return &mTevOrder[index]; }
|
||||
virtual void setTevColor(u32 index, J2DGXColorS10 color) {
|
||||
J3D_PANIC(360, index < 4, "Error : range over.");
|
||||
mTevColor[index] = color;
|
||||
}
|
||||
virtual J2DGXColorS10* getTevColor(u32 index) { return &mTevColor[index]; }
|
||||
@@ -309,6 +312,7 @@ public:
|
||||
}
|
||||
virtual J2DTevOrder* getTevOrder(u32 index) { return &mTevOrder[index]; }
|
||||
virtual void setTevColor(u32 index, J2DGXColorS10 color) {
|
||||
J3D_PANIC(468, index < 4, "Error : range over.");
|
||||
mTevColor[index] = color;
|
||||
}
|
||||
virtual J2DGXColorS10* getTevColor(u32 index) { return &mTevColor[index]; }
|
||||
@@ -406,6 +410,7 @@ public:
|
||||
}
|
||||
virtual J2DTevOrder* getTevOrder(u32 index) { return &mTevOrder[index]; }
|
||||
virtual void setTevColor(u32 index, J2DGXColorS10 color) {
|
||||
J3D_PANIC(579, index < 4, "Error : range over.");
|
||||
mTevColor[index] = color;
|
||||
}
|
||||
virtual J2DGXColorS10* getTevColor(u32 index) { return &mTevColor[index]; }
|
||||
@@ -504,6 +509,7 @@ public:
|
||||
}
|
||||
virtual J2DTevOrder* getTevOrder(u32 index) { return &mTevOrder[index]; }
|
||||
virtual void setTevColor(u32 index, J2DGXColorS10 color) {
|
||||
J3D_PANIC(691, index < 4, "Error : range over.");
|
||||
mTevColor[index] = color;
|
||||
}
|
||||
virtual J2DGXColorS10* getTevColor(u32 index) { return &mTevColor[index]; }
|
||||
|
||||
@@ -11,8 +11,6 @@ namespace JASDsp {
|
||||
class TChannel;
|
||||
}
|
||||
|
||||
#define CHANNEL_MAX 6
|
||||
|
||||
/**
|
||||
* @ingroup jsystem-jaudio
|
||||
*
|
||||
@@ -130,6 +128,8 @@ public:
|
||||
|
||||
static u32 getBlockSize() { return sBlockSize; }
|
||||
|
||||
static const int CHANNEL_MAX = 6;
|
||||
|
||||
/* 0x000 */ OSMessageQueue field_0x000;
|
||||
/* 0x020 */ OSMessageQueue field_0x020;
|
||||
/* 0x040 */ void* field_0x040[16];
|
||||
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
|
||||
void* getBase() { return mBase; }
|
||||
bool isAllocated() { return mBase; }
|
||||
u32 getSize() { return mSize; }
|
||||
u32 getSize() const { return mSize; }
|
||||
|
||||
/* 0x00 */ JSUTree<JASHeap> mTree;
|
||||
/* 0x1C */ OSMutex mMutex;
|
||||
|
||||
@@ -59,7 +59,6 @@ public:
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
// NONMATCHING regalloc
|
||||
virtual bool deleteStreamAram(u32 param_0) {
|
||||
for (u32 i = 0; i < field_0x4c; i++) {
|
||||
if (!this->field_0x4.test(i)) {
|
||||
@@ -80,7 +79,7 @@ public:
|
||||
if (!heap) {
|
||||
heap = JASKernel::getAramHeap();
|
||||
}
|
||||
if (numReserve < 1) {
|
||||
if (numReserve <= 0) {
|
||||
numReserve = 1;
|
||||
}
|
||||
JUT_ASSERT(83, numReserve <= MAX_CHUNKS);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef BINARY_H
|
||||
#define BINARY_H
|
||||
|
||||
#include "JSystem/JUtility/JUTAssert.h"
|
||||
#include "dolphin/types.h"
|
||||
#include "JSystem/JGadget/search.h"
|
||||
|
||||
@@ -14,7 +15,12 @@ struct TEBit {
|
||||
const void* parseVariableUInt_16_32_following(const void* pu16, u32* pu32First, u32* pu32Second,
|
||||
TEBit* tebit);
|
||||
|
||||
inline bool isPower2(unsigned int arg0) {
|
||||
return arg0 != 0 && (arg0 & arg0 - 1) == 0;
|
||||
}
|
||||
|
||||
inline u32 align_roundUp(unsigned int arg0, unsigned int uAlign) {
|
||||
JUT_ASSERT(98, isPower2(uAlign));
|
||||
return (arg0 + uAlign - 1) & ~(uAlign - 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -235,7 +235,7 @@ struct TLinkList : TNodeLinkList {
|
||||
iterator end() { return iterator(TNodeLinkList::end()); }
|
||||
const_iterator end() const { return const_iterator(const_cast<TLinkList*>(this)->end()); }
|
||||
T& front() { return *begin(); }
|
||||
T& back() { return *--end(); }
|
||||
T& back() { JUT_ASSERT(652, !empty()); return *--end(); }
|
||||
void pop_front() { erase(TNodeLinkList::begin()); }
|
||||
void Push_front(T* element) { Insert(begin(), element); }
|
||||
void Push_back(T* element) { Insert(end(), element); }
|
||||
|
||||
@@ -111,14 +111,14 @@ inline Iterator findUpperBound_binary_end(Iterator first, Iterator last, const T
|
||||
}
|
||||
|
||||
template <typename Iterator, typename T, typename Predicate>
|
||||
Iterator findUpperBound_binary_current(Iterator first, Iterator last, Iterator current, const T& val, Predicate p) {
|
||||
inline Iterator findUpperBound_binary_current(Iterator first, Iterator last, Iterator current, const T& val, Predicate p) {
|
||||
return current == last || p(val, *current) ?
|
||||
findUpperBound_binary_end(first, current, val, p) :
|
||||
findUpperBound_binary_begin(current, last, val, p);
|
||||
}
|
||||
|
||||
template <typename Iterator, typename T>
|
||||
Iterator findUpperBound_binary_current(Iterator first, Iterator last, Iterator current, const T& val) {
|
||||
inline Iterator findUpperBound_binary_current(Iterator first, Iterator last, Iterator current, const T& val) {
|
||||
return findUpperBound_binary_current(first, last, current, val, std::less<T>());
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ struct TVector_pointer_void : TVector<void*, TAllocator> {
|
||||
void insert(void**, void* const&);
|
||||
|
||||
void clear() { erase(begin(), end()); }
|
||||
void push_back(const void*& ref) { insert(end(), (void* const&)ref); }
|
||||
void push_back(void* const& ref) { insert(end(), ref); }
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
@@ -66,7 +66,7 @@ struct TVector_pointer : TVector_pointer_void {
|
||||
T* end() { return (T*)TVector_pointer_void::end(); }
|
||||
|
||||
void push_back(const T& ref) {
|
||||
static_cast<TVector_pointer_void*>(this)->push_back((const void*&)ref);
|
||||
static_cast<TVector_pointer_void*>(this)->push_back(ref);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -268,19 +268,15 @@ struct TVec3<f32> : public Vec {
|
||||
return inv_norm * sq;
|
||||
}
|
||||
|
||||
void normalize(const TVec3<f32>& other) {
|
||||
f32 normalize(const TVec3<f32>& other) {
|
||||
f32 sq = other.squared();
|
||||
if (sq <= TUtil<f32>::epsilon()) {
|
||||
zero();
|
||||
return;
|
||||
}
|
||||
f32 norm;
|
||||
if (sq <= 0.0f) {
|
||||
norm = sq;
|
||||
} else {
|
||||
norm = fsqrt_step(sq);
|
||||
return 0.0f;
|
||||
}
|
||||
f32 norm = TUtil<f32>::inv_sqrt(sq);
|
||||
scale(norm, other);
|
||||
return norm * sq;
|
||||
}
|
||||
|
||||
f32 length() const {
|
||||
@@ -411,12 +407,12 @@ struct TVec2 {
|
||||
TVec2(T v) { set(v); }
|
||||
|
||||
template <typename U>
|
||||
TVec2(U x, U y) { set(x, y); }
|
||||
TVec2(const U x, const U y) { set(x, y); }
|
||||
|
||||
void set(T v) { y = x = v; }
|
||||
|
||||
template <typename U>
|
||||
void set(U x, U y) {
|
||||
void set(const U x, const U y) {
|
||||
this->x = x;
|
||||
this->y = y;
|
||||
}
|
||||
@@ -518,7 +514,7 @@ struct TBox2 : public TBox<TVec2<T> > {
|
||||
}
|
||||
}
|
||||
|
||||
void set(const TBox2& other) { set(other.i, other.f); }
|
||||
void set(const TBox<TVec2<T> >& other) { set(other.i, other.f); }
|
||||
void set(const TVec2<f32>& i, const TVec2<f32>& f) { this->i.set(i), this->f.set(f); }
|
||||
void set(f32 x0, f32 y0, f32 x1, f32 y1) { this->i.set(x0, y0); this->f.set(x1, y1); }
|
||||
};
|
||||
|
||||
@@ -85,7 +85,7 @@ inline u8* JKRAramToMainRam(u32 p1, u8* p2, u32 p3, JKRExpandSwitch p4, u32 p5,
|
||||
return JKRAram::aramToMainRam(p1, p2, p3, p4, p5, p6, p7, p8);
|
||||
}
|
||||
|
||||
inline JKRAramBlock *JKRMainRamToAram(u8 *buf, u32 bufSize, u32 alignedSize, JKRExpandSwitch expandSwitch, u32 fileSize, JKRHeap *heap, int id, u32 *pSize) {
|
||||
inline JKRAramBlock* JKRMainRamToAram(u8 *buf, u32 bufSize, u32 alignedSize, JKRExpandSwitch expandSwitch, u32 fileSize, JKRHeap *heap, int id, u32 *pSize) {
|
||||
return JKRAram::mainRamToAram(buf, bufSize, alignedSize, expandSwitch, fileSize, heap, id, pSize);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@ inline float __frsqrtes(__REGISTER double f) {
|
||||
#endif
|
||||
}
|
||||
|
||||
inline f32 JMAFastSqrt(__REGISTER f32 input) {
|
||||
inline f32 JMAFastSqrt(__REGISTER const f32 input) {
|
||||
#ifdef __MWERKS__
|
||||
if (input > 0.0f) {
|
||||
__REGISTER f32 out;
|
||||
|
||||
@@ -264,7 +264,7 @@ public:
|
||||
/* 0xE8 */ JPAResource* mpRes;
|
||||
/* 0xEC */ JPAEmitterCallBack* mpEmtrCallBack;
|
||||
/* 0xF0 */ JPAParticleCallBack* mpPtclCallBack;
|
||||
/* 0xF4 */ volatile u32 mStatus;
|
||||
/* 0xF4 */ u32 mStatus;
|
||||
/* 0xF8 */ f32 mEmitCount;
|
||||
/* 0xFC */ f32 mScaleOut;
|
||||
/* 0x100 */ u32 mTick;
|
||||
|
||||
@@ -55,8 +55,7 @@ struct data {
|
||||
}
|
||||
|
||||
const void* getContent() const {
|
||||
const THeaderData* header = (THeaderData*) getRaw();
|
||||
return header->content;
|
||||
return ((THeaderData*) getRaw())->content;
|
||||
}
|
||||
};
|
||||
|
||||
@@ -86,7 +85,7 @@ struct data {
|
||||
}
|
||||
|
||||
const void* getBlockEnd_() const {
|
||||
return get()->field_0x8;
|
||||
return ((const TBlockData*)getRaw())->field_0x8;
|
||||
}
|
||||
|
||||
const void* get_ID() const {
|
||||
@@ -134,11 +133,11 @@ struct TControl {
|
||||
JStudio::ctb::TObject* getObject(void const*, u32);
|
||||
JStudio::ctb::TObject* getObject_index(u32);
|
||||
|
||||
TFactory* getFactory() { return pFactory_; }
|
||||
TFactory* getFactory() const { return pFactory_; }
|
||||
void setFactory(TFactory* factory) { pFactory_ = factory; }
|
||||
|
||||
/* 0x4 */ TFactory* pFactory_;
|
||||
/* 0x8 */ JGadget::TLinkList<TObject, -12> mList;
|
||||
/* 0x8 */ JGadget::TLinkList<TObject, -12> ocObject_;
|
||||
};
|
||||
|
||||
struct TParse : public JGadget::binary::TParse_header_block {
|
||||
|
||||
@@ -157,7 +157,6 @@ private:
|
||||
class TFunctionValue_constant : public TFunctionValue {
|
||||
public:
|
||||
TFunctionValue_constant();
|
||||
virtual ~TFunctionValue_constant() {}
|
||||
|
||||
virtual u32 getType() const;
|
||||
virtual TFunctionValueAttributeSet getAttributeSet();
|
||||
@@ -195,7 +194,6 @@ public:
|
||||
const TFunctionValue_composite::TData&, f64);
|
||||
|
||||
TFunctionValue_composite();
|
||||
virtual ~TFunctionValue_composite() {}
|
||||
|
||||
virtual u32 getType() const;
|
||||
virtual TFunctionValueAttributeSet getAttributeSet();
|
||||
@@ -232,7 +230,6 @@ class TFunctionValue_transition : public TFunctionValue,
|
||||
public TFunctionValueAttribute_interpolate {
|
||||
public:
|
||||
TFunctionValue_transition();
|
||||
virtual ~TFunctionValue_transition() {}
|
||||
|
||||
virtual u32 getType() const;
|
||||
virtual TFunctionValueAttributeSet getAttributeSet();
|
||||
@@ -264,7 +261,6 @@ public:
|
||||
typedef f64 (*update_INTERPOLATE)(const TFunctionValue_list&, const TIndexData_&);
|
||||
|
||||
TFunctionValue_list();
|
||||
virtual ~TFunctionValue_list() {}
|
||||
|
||||
virtual u32 getType() const;
|
||||
virtual TFunctionValueAttributeSet getAttributeSet();
|
||||
@@ -380,7 +376,6 @@ public:
|
||||
typedef f64 (*update_INTERPOLATE)(const TFunctionValue_list_parameter&, f64);
|
||||
|
||||
TFunctionValue_list_parameter();
|
||||
virtual ~TFunctionValue_list_parameter() {}
|
||||
|
||||
virtual u32 getType() const;
|
||||
virtual TFunctionValueAttributeSet getAttributeSet();
|
||||
@@ -499,7 +494,6 @@ public:
|
||||
};
|
||||
|
||||
TFunctionValue_hermite();
|
||||
virtual ~TFunctionValue_hermite() {}
|
||||
|
||||
virtual u32 getType() const;
|
||||
virtual TFunctionValueAttributeSet getAttributeSet();
|
||||
@@ -545,7 +539,7 @@ inline f64 extrapolateParameter_clamp(f64 value, f64 max) {
|
||||
return 0.0;
|
||||
|
||||
if (max <= value)
|
||||
value = max;
|
||||
return max;
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
@@ -142,31 +142,31 @@ public:
|
||||
*pDst = rSrc;
|
||||
}
|
||||
|
||||
void transformOnSet_transform(TTransform_position* param_1, TTransform_position* param_2) const {
|
||||
transformOnSet_transformTranslation(*param_1, param_2);
|
||||
void transformOnSet_transform(const TTransform_position ¶m_1, TTransform_position* param_2) const {
|
||||
transformOnSet_transformTranslation(param_1, param_2);
|
||||
}
|
||||
|
||||
void transformOnSet_transform(TTransform_translation_rotation_scaling* param_1,
|
||||
void transformOnSet_transform(const TTransform_translation_rotation_scaling& param_1,
|
||||
TTransform_translation_rotation_scaling* param_2) const {
|
||||
transformOnSet_transformTranslation(param_1->translation, ¶m_2->translation);
|
||||
transformOnSet_transformRotation(param_1->rotation, ¶m_2->rotation);
|
||||
transformOnSet_transformScaling(param_1->scaling, ¶m_2->scaling);
|
||||
transformOnSet_transformTranslation(param_1.translation, ¶m_2->translation);
|
||||
transformOnSet_transformRotation(param_1.rotation, ¶m_2->rotation);
|
||||
transformOnSet_transformScaling(param_1.scaling, ¶m_2->scaling);
|
||||
}
|
||||
|
||||
TTransform_position* transformOnSet_transform_ifEnabled(TTransform_position* param_1,
|
||||
const TTransform_position* transformOnSet_transform_ifEnabled(const TTransform_position& param_1,
|
||||
TTransform_position* param_2) const {
|
||||
if (!transformOnSet_isEnabled()) {
|
||||
return param_1;
|
||||
return ¶m_1;
|
||||
}
|
||||
transformOnSet_transform(param_1, param_2);
|
||||
return param_2;
|
||||
}
|
||||
|
||||
TTransform_translation_rotation_scaling*
|
||||
transformOnSet_transform_ifEnabled(TTransform_translation_rotation_scaling* param_1,
|
||||
const TTransform_translation_rotation_scaling*
|
||||
transformOnSet_transform_ifEnabled(const TTransform_translation_rotation_scaling& param_1,
|
||||
TTransform_translation_rotation_scaling* param_2) const {
|
||||
if (!transformOnSet_isEnabled()) {
|
||||
return param_1;
|
||||
return ¶m_1;
|
||||
}
|
||||
transformOnSet_transform(param_1, param_2);
|
||||
return param_2;
|
||||
@@ -187,33 +187,33 @@ public:
|
||||
MTXMultVecSR(transformOnGet_getMatrix(), &rSrc, pDst);
|
||||
}
|
||||
|
||||
void transformOnGet_transform(TTransform_position_direction* param_1,
|
||||
void transformOnGet_transform(const TTransform_position_direction& param_1,
|
||||
TTransform_position_direction* pDst) const {
|
||||
JUT_ASSERT(289, pDst!=NULL);
|
||||
transformOnGet_transformTranslation(param_1->position, &pDst->position);
|
||||
transformOnGet_transformDirection(param_1->direction, &pDst->direction);
|
||||
transformOnGet_transformTranslation(param_1.position, &pDst->position);
|
||||
transformOnGet_transformDirection(param_1.direction, &pDst->direction);
|
||||
}
|
||||
|
||||
TTransform_position_direction*
|
||||
transformOnGet_transform_ifEnabled(TTransform_position_direction& param_1,
|
||||
const TTransform_position_direction*
|
||||
transformOnGet_transform_ifEnabled(const TTransform_position_direction& param_1,
|
||||
TTransform_position_direction* param_2) const {
|
||||
if (!transformOnGet_isEnabled()) {
|
||||
return ¶m_1;
|
||||
}
|
||||
transformOnGet_transform(¶m_1, param_2);
|
||||
transformOnGet_transform(param_1, param_2);
|
||||
return param_2;
|
||||
}
|
||||
|
||||
void transformOnGet_transform(TTransform_position* param_1,
|
||||
void transformOnGet_transform(const TTransform_position& param_1,
|
||||
TTransform_position* pDst) const {
|
||||
transformOnGet_transformTranslation(*param_1, pDst);
|
||||
transformOnGet_transformTranslation(param_1, pDst);
|
||||
}
|
||||
|
||||
TTransform_position*
|
||||
transformOnGet_transform_ifEnabled(TTransform_position* param_1,
|
||||
const TTransform_position*
|
||||
transformOnGet_transform_ifEnabled(const TTransform_position& param_1,
|
||||
TTransform_position* param_2) const {
|
||||
if (!transformOnGet_isEnabled()) {
|
||||
return param_1;
|
||||
return ¶m_1;
|
||||
}
|
||||
transformOnGet_transform(param_1, param_2);
|
||||
return param_2;
|
||||
@@ -257,18 +257,18 @@ public:
|
||||
MTXMultVecSR(transformOnSet_getMatrix(), &rSrc, pDst);
|
||||
}
|
||||
|
||||
void transformOnSet_transform(TTransform_position_direction* param_1,
|
||||
void transformOnSet_transform(const TTransform_position_direction& param_1,
|
||||
TTransform_position_direction* pDst) const {
|
||||
JUT_ASSERT(219, pDst!=NULL);
|
||||
transformOnSet_transformTranslation(param_1->position, &pDst->position);
|
||||
transformOnSet_transformDirection(param_1->direction, &pDst->direction);
|
||||
transformOnSet_transformTranslation(param_1.position, &pDst->position);
|
||||
transformOnSet_transformDirection(param_1.direction, &pDst->direction);
|
||||
}
|
||||
|
||||
TTransform_position_direction*
|
||||
transformOnSet_transform_ifEnabled(TTransform_position_direction* param_1,
|
||||
const TTransform_position_direction*
|
||||
transformOnSet_transform_ifEnabled(const TTransform_position_direction& param_1,
|
||||
TTransform_position_direction* param_2) const {
|
||||
if (!transformOnSet_isEnabled()) {
|
||||
return param_1;
|
||||
return ¶m_1;
|
||||
}
|
||||
transformOnSet_transform(param_1, param_2);
|
||||
return param_2;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace object {
|
||||
|
||||
struct TIDData {
|
||||
public:
|
||||
TIDData(const void* id, u32 id_size) : mID(id), mID_size(id_size) {}
|
||||
TIDData(const void* pID, u32 uIDSize_) : mID(pID), mID_size(uIDSize_) {}
|
||||
|
||||
static bool isEqual(JStudio::object::TIDData const&, JStudio::object::TIDData const&);
|
||||
inline const u8* getID() const { return (const u8*)mID; }
|
||||
@@ -20,17 +20,21 @@ protected:
|
||||
/* 0x04 */ u32 mID_size;
|
||||
};
|
||||
|
||||
struct TObject_ID : public TIDData {
|
||||
TObject_ID(const void* id, u32 id_size) : TIDData(id, id_size) {}
|
||||
struct TObject_ID {
|
||||
TObject_ID(const void* id, u32 id_size) : mData(id, id_size) {}
|
||||
~TObject_ID() {}
|
||||
TIDData const& getIDData() const { return *this; }
|
||||
const u8 *getID() const { return TIDData::getID(); }
|
||||
TIDData const& getIDData() const { return mData; }
|
||||
const u8 *getID() const { return mData.getID(); }
|
||||
|
||||
TIDData mData;
|
||||
};
|
||||
|
||||
struct TPRObject_ID_equal : public TIDData {
|
||||
TPRObject_ID_equal(const void* id, u32 id_size) : TIDData(id, id_size) {}
|
||||
struct TPRObject_ID_equal {
|
||||
TPRObject_ID_equal(const void* id, u32 id_size) : mData(id, id_size) {}
|
||||
~TPRObject_ID_equal() {}
|
||||
bool operator()(TObject_ID const& id) const { return TIDData::isEqual(id.getIDData(), *this); }
|
||||
bool operator()(TObject_ID const& id) const { return TIDData::isEqual(id.getIDData(), mData); }
|
||||
|
||||
TIDData mData;
|
||||
};
|
||||
|
||||
} // namespace object
|
||||
|
||||
@@ -28,7 +28,7 @@ struct TCreateObject : public JStudio::TCreateObject {
|
||||
};
|
||||
|
||||
struct TAdaptor_object_ {
|
||||
TAdaptor_object_(JStage::TSystem const*param_2, JStage::TObject *param_3) :
|
||||
TAdaptor_object_(const JStudio::TAdaptor *, JStage::TSystem const*param_2, JStage::TObject *param_3) :
|
||||
pJSGSystem_(param_2), pJSGObject_(param_3) {}
|
||||
void adaptor_object_data_(void const*, u32, void const*, u32);
|
||||
JStage::TObject* adaptor_object_findJSGObject_(char const*);
|
||||
@@ -258,7 +258,7 @@ struct TAdaptor_light : public JStudio::TAdaptor_light, public TAdaptor_object_
|
||||
virtual void operator()(f32, JStudio::TAdaptor*) const;
|
||||
virtual ~TVVOutput_direction_() {}
|
||||
|
||||
void adaptor_setOutput_(TAdaptor* adaptor) {
|
||||
void adaptor_setOutput_(TAdaptor* adaptor) const {
|
||||
adaptor->adaptor_referVariableValue(field_0x4)->setOutput(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -41,6 +41,10 @@ inline u8 JSUHiByte(u16 in) {
|
||||
return in >> 8;
|
||||
}
|
||||
|
||||
inline u16 JSUHiHalf(u32 in) {
|
||||
return (in >> 16);
|
||||
}
|
||||
|
||||
inline u16 JSULoHalf(u32 param_0) {return param_0; }
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user