Files
dusklight/libs/JSystem/include/JSystem/JAudio2/JASCmdStack.h
T
Luke Street eed14acdc6 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.
2026-07-14 13:49:21 -06:00

60 lines
950 B
C

#ifndef JASCMDSTACK_H
#define JASCMDSTACK_H
#include "JSystem/JSupport/JSUList.h"
struct JASTrack;
/**
* @ingroup jsystem-jaudio
*
*/
struct JASPortArgs {
JASTrack* _00;
u32 _04;
u32 _08;
f32 _0C;
f32 _10;
f32 _14;
f32 _18;
f32 _1C;
f32 _20;
u32 _24;
f32 _28;
};
/**
* @ingroup jsystem-jaudio
*
*/
struct JASPortCmd : JSULink<JASPortCmd> {
typedef void (*Command)(JASPortArgs*);
struct TPortHead : JSUList<JASPortCmd> {
inline TPortHead()
: JSUList<JASPortCmd>()
{
}
~TPortHead() {}
void execCommandOnce();
void execCommandStay();
};
bool addPortCmdOnce();
bool setPortCmd(Command func, JASPortArgs*);
static void execAllCommand();
Command getFunc() { return mFunc; }
JASPortArgs* getArgs() { return mArgs; }
Command mFunc;
JASPortArgs* mArgs;
static DUSK_GAME_DATA TPortHead sCommandListOnce;
static DUSK_GAME_DATA TPortHead sCommandListStay;
};
#endif /* JASCMDSTACK_H */