mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +00:00
Runtime/Particle: Replace bitfield unions with constructor initializers
This commit is contained in:
@@ -31,23 +31,29 @@ public:
|
||||
std::unique_ptr<CIntElement> x38_SPLN;
|
||||
std::unique_ptr<CUVElement> x3c_TEXR;
|
||||
std::unique_ptr<CIntElement> x40_TSPN;
|
||||
union {
|
||||
struct {
|
||||
bool x44_24_LLRD : 1;
|
||||
bool x44_25_CROS : 1;
|
||||
bool x44_26_VLS1 : 1;
|
||||
bool x44_27_VLS2 : 1;
|
||||
bool x44_28_SROT : 1;
|
||||
bool x44_29_WIRE : 1;
|
||||
bool x44_30_TEXW : 1;
|
||||
bool x44_31_AALP : 1;
|
||||
bool x45_24_ZBUF : 1;
|
||||
bool x45_25_ORNT : 1;
|
||||
bool x45_26_CRND : 1;
|
||||
};
|
||||
u32 dummy = 0;
|
||||
};
|
||||
bool x44_24_LLRD : 1;
|
||||
bool x44_25_CROS : 1;
|
||||
bool x44_26_VLS1 : 1;
|
||||
bool x44_27_VLS2 : 1;
|
||||
bool x44_28_SROT : 1;
|
||||
bool x44_29_WIRE : 1;
|
||||
bool x44_30_TEXW : 1;
|
||||
bool x44_31_AALP : 1;
|
||||
bool x45_24_ZBUF : 1;
|
||||
bool x45_25_ORNT : 1;
|
||||
bool x45_26_CRND : 1;
|
||||
|
||||
CSwooshDescription() { x44_25_CROS = true; }
|
||||
CSwooshDescription()
|
||||
: x44_24_LLRD(false)
|
||||
, x44_25_CROS(true)
|
||||
, x44_26_VLS1(false)
|
||||
, x44_27_VLS2(false)
|
||||
, x44_28_SROT(false)
|
||||
, x44_29_WIRE(false)
|
||||
, x44_30_TEXW(false)
|
||||
, x44_31_AALP(false)
|
||||
, x45_24_ZBUF(false)
|
||||
, x45_25_ORNT(false)
|
||||
, x45_26_CRND(false) {}
|
||||
};
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user