mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-14 11:53:44 -04:00
Annotate all data with DUSK_GAME_DATA (#2214)
The hope of auto-importing data via lld MinGW + pseudo_reloc is now dead thanks to ARM64, so I just wrote a script to go annotate every exported data symbol in the game instead.
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
|
||||
#include "JSystem/JStudio/JStudio/ctb.h"
|
||||
|
||||
const u32 JStudio::ctb::data::ga4cSignature = BSWAP32('CTB\0');
|
||||
DUSK_GAME_DATA const u32 JStudio::ctb::data::ga4cSignature = BSWAP32('CTB\0');
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
#include "JSystem/JStudio/JStudio/fvb-data.h"
|
||||
|
||||
const char JStudio::fvb::data::ga4cSignature[4] = "FVB";
|
||||
DUSK_GAME_DATA const char JStudio::fvb::data::ga4cSignature[4] = "FVB";
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
#include "JSystem/JStudio/JStudio/jstudio-data.h"
|
||||
|
||||
const char JStudio::data::ga8cSignature[8] = "jstudio";
|
||||
DUSK_GAME_DATA const char JStudio::data::ga8cSignature[8] = "jstudio";
|
||||
|
||||
@@ -326,19 +326,19 @@ JStudio::TObject_actor::TObject_actor(JStudio::stb::data::TParse_TBlock_object c
|
||||
|
||||
}
|
||||
|
||||
u32 const JStudio::TAdaptor_actor::sauVariableValue_3_TRANSLATION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_actor::sauVariableValue_3_TRANSLATION_XYZ[3] = {
|
||||
3, 4, 5,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_actor::sauVariableValue_3_ROTATION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_actor::sauVariableValue_3_ROTATION_XYZ[3] = {
|
||||
6, 7, 8,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_actor::sauVariableValue_3_SCALING_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_actor::sauVariableValue_3_SCALING_XYZ[3] = {
|
||||
9, 10, 11,
|
||||
};
|
||||
|
||||
JStudio::TVariableValue::TOutput_none_ JStudio::TVariableValue::soOutput_none_;
|
||||
DUSK_GAME_DATA JStudio::TVariableValue::TOutput_none_ JStudio::TVariableValue::soOutput_none_;
|
||||
|
||||
void JStudio::TObject_actor::do_paragraph(u32 param_1, void const* param_2, u32 param_3) {
|
||||
TAdaptor* adaptor = getAdaptor();
|
||||
@@ -479,11 +479,11 @@ JStudio::TObject_ambientLight::TObject_ambientLight(
|
||||
JStudio::TAdaptor_ambientLight* param_1) : TObject(param_0, param_1) {
|
||||
}
|
||||
|
||||
u32 const JStudio::TAdaptor_ambientLight::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_ambientLight::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
0, 1, 2,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_ambientLight::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_ambientLight::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
0, 1, 2, 3,
|
||||
};
|
||||
|
||||
@@ -540,15 +540,15 @@ JStudio::TObject_camera::TObject_camera(JStudio::stb::data::TParse_TBlock_object
|
||||
JStudio::TAdaptor_camera* param_1)
|
||||
: TObject(param_0, param_1) {}
|
||||
|
||||
u32 const JStudio::TAdaptor_camera::sauVariableValue_3_POSITION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_camera::sauVariableValue_3_POSITION_XYZ[3] = {
|
||||
0, 1, 2,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_camera::sauVariableValue_3_TARGET_POSITION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_camera::sauVariableValue_3_TARGET_POSITION_XYZ[3] = {
|
||||
3, 4, 5,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_camera::sauVariableValue_2_DISTANCE_NEAR_FAR[2] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_camera::sauVariableValue_2_DISTANCE_NEAR_FAR[2] = {
|
||||
8, 9,
|
||||
};
|
||||
|
||||
@@ -686,15 +686,15 @@ JStudio::TAdaptor_fog::~TAdaptor_fog() {}
|
||||
JStudio::TObject_fog::TObject_fog(JStudio::stb::data::TParse_TBlock_object const& param_0,
|
||||
JStudio::TAdaptor_fog* param_1) : TObject(param_0, param_1) {}
|
||||
|
||||
u32 const JStudio::TAdaptor_fog::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_fog::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
0, 1, 2,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_fog::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_fog::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
0, 1, 2, 3,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_fog::sauVariableValue_2_RANGE_BEGIN_END[2] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_fog::sauVariableValue_2_RANGE_BEGIN_END[2] = {
|
||||
4, 5,
|
||||
};
|
||||
|
||||
@@ -759,23 +759,23 @@ JStudio::TAdaptor_light::~TAdaptor_light() {}
|
||||
JStudio::TObject_light::TObject_light(JStudio::stb::data::TParse_TBlock_object const& param_0,
|
||||
JStudio::TAdaptor_light* param_1) : TObject(param_0, param_1) {}
|
||||
|
||||
u32 const JStudio::TAdaptor_light::sauVariableValue_2_DIRECTION_THETA_PHI[2] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_light::sauVariableValue_2_DIRECTION_THETA_PHI[2] = {
|
||||
10, 11,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_light::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_light::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
0, 1, 2,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_light::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_light::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
0, 1, 2, 3,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_light::sauVariableValue_3_POSITION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_light::sauVariableValue_3_POSITION_XYZ[3] = {
|
||||
4, 5, 6,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_light::sauVariableValue_3_TARGET_POSITION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_light::sauVariableValue_3_TARGET_POSITION_XYZ[3] = {
|
||||
7, 8, 9,
|
||||
};
|
||||
|
||||
@@ -921,31 +921,31 @@ JStudio::TAdaptor_particle::~TAdaptor_particle() {}
|
||||
JStudio::TObject_particle::TObject_particle(
|
||||
JStudio::stb::data::TParse_TBlock_object const& param_0, JStudio::TAdaptor_particle* param_1) : TObject(param_0, param_1) {}
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_3_TRANSLATION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_3_TRANSLATION_XYZ[3] = {
|
||||
0, 1, 2,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_3_ROTATION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_3_ROTATION_XYZ[3] = {
|
||||
3, 4, 5,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_3_SCALING_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_3_SCALING_XYZ[3] = {
|
||||
6, 7, 8,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_3_COLOR_RGB[3] = {
|
||||
9, 10, 11,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_4_COLOR_RGBA[4] = {
|
||||
9, 10, 11, 12,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_3_COLOR1_RGB[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_3_COLOR1_RGB[3] = {
|
||||
9, 10, 11,
|
||||
};
|
||||
|
||||
u32 const JStudio::TAdaptor_particle::sauVariableValue_4_COLOR1_RGBA[4] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_particle::sauVariableValue_4_COLOR1_RGBA[4] = {
|
||||
9, 10, 11, 12,
|
||||
};
|
||||
|
||||
@@ -1119,7 +1119,7 @@ JStudio::TAdaptor_sound::~TAdaptor_sound() {}
|
||||
JStudio::TObject_sound::TObject_sound(JStudio::stb::data::TParse_TBlock_object const& param_0,
|
||||
JStudio::TAdaptor_sound* param_1) : TObject(param_0, param_1) {}
|
||||
|
||||
u32 const JStudio::TAdaptor_sound::sauVariableValue_3_POSITION_XYZ[3] = {
|
||||
DUSK_GAME_DATA u32 const JStudio::TAdaptor_sound::sauVariableValue_3_POSITION_XYZ[3] = {
|
||||
0, 1, 2,
|
||||
};
|
||||
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
#include "dusk/endian.h"
|
||||
#include "JSystem/JStudio/JStudio/stb-data.h"
|
||||
|
||||
const s32 JStudio::stb::data::gauDataSize_TEParagraph_data[8] = {0x0, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40};
|
||||
const BE(u32) JStudio::stb::data::ga4cSignature = 'STB\0';
|
||||
DUSK_GAME_DATA const s32 JStudio::stb::data::gauDataSize_TEParagraph_data[8] = {0x0, 0x1, 0x2, 0x4, 0x8, 0x10, 0x20, 0x40};
|
||||
DUSK_GAME_DATA const BE(u32) JStudio::stb::data::ga4cSignature = 'STB\0';
|
||||
|
||||
@@ -80,7 +80,7 @@ void JStudio_JAudio2::TAdaptor_sound::adaptor_do_prepare() {
|
||||
}
|
||||
}
|
||||
|
||||
JStudio_JAudio2::TAdaptor_sound::TVVOSetValue_ JStudio_JAudio2::TAdaptor_sound::saoVVOSetValue_[6] = {
|
||||
DUSK_GAME_DATA JStudio_JAudio2::TAdaptor_sound::TVVOSetValue_ JStudio_JAudio2::TAdaptor_sound::saoVVOSetValue_[6] = {
|
||||
JStudio_JAudio2::TAdaptor_sound::TVVOSetValue_(
|
||||
JStudio_JAudio2::TAdaptor_sound::UNK_7, setValue_VOLUME_
|
||||
),
|
||||
|
||||
@@ -348,12 +348,12 @@ JStudio_JStage::TAdaptor_actor::TVVOutput_ANIMATION_FRAME_::~TVVOutput_ANIMATION
|
||||
|
||||
namespace JStudio_JStage {
|
||||
|
||||
const TAdaptor_actor::TVVOutputObject TAdaptor_actor::saoVVOutput_[] = {
|
||||
DUSK_GAME_DATA const TAdaptor_actor::TVVOutputObject TAdaptor_actor::saoVVOutput_[] = {
|
||||
TVVOutputObject(TAdaptor_actor::TEACTOR_1, &JStage::TActor::JSGSetAnimationTransition, &JStage::TActor::JSGGetAnimationTransition),
|
||||
TVVOutputObject()
|
||||
};
|
||||
|
||||
const TAdaptor_actor::TVVOutput_ANIMATION_FRAME_ TAdaptor_actor::saoVVOutput_ANIMATION_FRAME_[] = {
|
||||
DUSK_GAME_DATA const TAdaptor_actor::TVVOutput_ANIMATION_FRAME_ TAdaptor_actor::saoVVOutput_ANIMATION_FRAME_[] = {
|
||||
TVVOutput_ANIMATION_FRAME_(0, 305, &JStage::TActor::JSGSetAnimationFrame, &JStage::TActor::JSGGetAnimationFrame, &JStage::TActor::JSGGetAnimationFrameMax),
|
||||
TVVOutput_ANIMATION_FRAME_(2, 309, &JStage::TActor::JSGSetTextureAnimationFrame, &JStage::TActor::JSGGetTextureAnimationFrame, &JStage::TActor::JSGGetTextureAnimationFrameMax),
|
||||
TVVOutput_ANIMATION_FRAME_()
|
||||
|
||||
@@ -22,7 +22,7 @@ JStudio_JStage::TAdaptor_camera::~TAdaptor_camera() {
|
||||
adaptor_do_end();
|
||||
}
|
||||
|
||||
JStudio_JStage::TAdaptor_camera::TVVOutput JStudio_JStage::TAdaptor_camera::saoVVOutput_[5] = {
|
||||
DUSK_GAME_DATA JStudio_JStage::TAdaptor_camera::TVVOutput JStudio_JStage::TAdaptor_camera::saoVVOutput_[5] = {
|
||||
TVVOutput(JStudio_JStage::TAdaptor_camera::TECAMERA_7, &JStage::TCamera::JSGSetViewRoll,
|
||||
&JStage::TCamera::JSGGetViewRoll),
|
||||
TVVOutput(JStudio_JStage::TAdaptor_camera::TECAMERA_6, &JStage::TCamera::JSGSetProjectionFovy,
|
||||
|
||||
@@ -13,7 +13,7 @@ JStudio_JStage::TAdaptor_fog::~TAdaptor_fog() {
|
||||
adaptor_do_end();
|
||||
}
|
||||
|
||||
JStudio_JStage::TVariableValueOutput_object_<JStudio_JStage::TAdaptor_fog, JStage::TFog> JStudio_JStage::TAdaptor_fog::saoVVOutput_[3] = {
|
||||
DUSK_GAME_DATA JStudio_JStage::TVariableValueOutput_object_<JStudio_JStage::TAdaptor_fog, JStage::TFog> JStudio_JStage::TAdaptor_fog::saoVVOutput_[3] = {
|
||||
JStudio_JStage::TVariableValueOutput_object_<JStudio_JStage::TAdaptor_fog, JStage::TFog>(JStudio_JStage::TAdaptor_fog::TEFOG_4, &JStage::TFog::JSGSetStartZ, &JStage::TFog::JSGGetStartZ),
|
||||
JStudio_JStage::TVariableValueOutput_object_<JStudio_JStage::TAdaptor_fog, JStage::TFog>(JStudio_JStage::TAdaptor_fog::TEFOG_5, &JStage::TFog::JSGSetEndZ, &JStage::TFog::JSGGetEndZ),
|
||||
JStudio_JStage::TVariableValueOutput_object_<JStudio_JStage::TAdaptor_fog, JStage::TFog>(),
|
||||
|
||||
@@ -12,7 +12,7 @@ JStudio_JStage::TAdaptor_light::~TAdaptor_light() {
|
||||
adaptor_do_end();
|
||||
}
|
||||
|
||||
JStudio_JStage::TAdaptor_light::TVVOutput_direction_
|
||||
DUSK_GAME_DATA JStudio_JStage::TAdaptor_light::TVVOutput_direction_
|
||||
JStudio_JStage::TAdaptor_light::saoVVOutput_direction_[6] = {
|
||||
JStudio_JStage::TAdaptor_light::TVVOutput_direction_(
|
||||
JStudio_JStage::TAdaptor_light::TE_VALUE_10,
|
||||
|
||||
Reference in New Issue
Block a user