switch to dtk setup (#2203)

* switch to dtk setup

* some cleanup / fixes

* cleanup d_a_alink literals

* Restore doxygen, update CI & README.md (#1)

* Fix build image ref (#2)

---------

Co-authored-by: Luke Street <luke@street.dev>
This commit is contained in:
TakaRikka
2024-10-10 08:29:58 -06:00
committed by GitHub
co-authored by Luke Street
parent 2fd702c0ac
commit 12eb254d76
33438 changed files with 370506 additions and 3055930 deletions
+1 -5
View File
@@ -116,13 +116,9 @@ struct JASTrack : public JASPoolAllocObject_MultiThreaded<JASTrack> {
static JASOscillator::Point const sAdsTable[4];
static JASOscillator::Data const sEnvOsc;
static JASOscillator::Data const sPitchEnvOsc;
#ifdef NONMATCHING
static JASDefaultBankTable sDefaultBankTable;
static TList sTrackList;
#else
static u8 sDefaultBankTable[1036];
static u8 sTrackList[16];
#endif
JASSeqCtrl* getSeqCtrl() { return &mSeqCtrl; }
u16 getPort(u32 param_0) { return mTrackPort.get(param_0); }
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef JASWSPARSER_H
#define JASWSPARSER_H
#include "dolphin/types.h"
#include "JSystem/JSupport/JSupport.h"
class JKRHeap;
class JASWaveBank;
+14
View File
@@ -164,6 +164,10 @@ struct TVec3<f32> : public Vec {
return *this;
}
inline TVec3<f32> operator+(const TVec3<f32>& b) {
return *this += b;
}
// inline TVec3<f32> operator+(const TVec3<f32>& b) {
// TVec3<f32> res(*(Vec*)this);
// res += b;
@@ -452,6 +456,16 @@ struct TUtil {
template<>
struct TUtil<f32> {
static inline f32 PI() { return 3.1415927f; }
static inline f32 clamp(f32 v, f32 min, f32 max) {
if (v < min) {
return min;
}
if (v > max) {
return max;
}
return v;
}
};
template<>
@@ -82,9 +82,7 @@ struct TAdaptor_actor : public JStudio::TAdaptor_actor, public JStudio_JStage::T
};
struct TVVOutput_ANIMATION_FRAME_
#ifdef NONMATCHING
: public JStudio::TVariableValue::TOutput
#endif
{
TVVOutput_ANIMATION_FRAME_() {
mValueIndex = -1;
@@ -101,7 +99,7 @@ struct TAdaptor_actor : public JStudio::TAdaptor_actor, public JStudio_JStage::T
mGetter = param_4;
mMaxGetter = param_5;
}
#ifdef NONMATCHING
/* 8028B064 */ virtual void operator()(f32, JStudio::TAdaptor*) const;
/* 8028B138 */ virtual ~TVVOutput_ANIMATION_FRAME_();
@@ -113,12 +111,6 @@ struct TAdaptor_actor : public JStudio::TAdaptor_actor, public JStudio_JStage::T
f32 val = (param_1->*mGetter)();
param_2->adaptor_setVariableValue_immediate(mValueIndex, val);
}
#else
/* 8028B064 */ void operator()(f32, JStudio::TAdaptor*) const;
/* 8028B138 */ ~TVVOutput_ANIMATION_FRAME_();
void* vtable;
#endif
bool isEnd_() { return mValueIndex == -1; }
@@ -165,13 +157,8 @@ struct TAdaptor_actor : public JStudio::TAdaptor_actor, public JStudio_JStage::T
JStage::TActor* get_pJSG_() { return (JStage::TActor*) pJSGObject_; }
#ifdef NONMATCHING
static TVVOutputObject saoVVOutput_[2];
static TVVOutput_ANIMATION_FRAME_ saoVVOutput_ANIMATION_FRAME_[3];
#else
static u8 saoVVOutput_[64];
static u8 saoVVOutput_ANIMATION_FRAME_[144 + 4 /* padding */];
#endif
/* 0x130 */ u32 field_0x130;
/* 0x134 */ u32 field_0x134;
+2
View File
@@ -1,6 +1,8 @@
#ifndef JSUPPORT_H
#define JSUPPORT_H
#include <dolphin.h>
/**
* @ingroup jsystem-jsupport
*