Skip to content

Commit

Permalink
minor jasseqparser cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LagoLunatic committed Sep 9, 2024
1 parent 7d2ed1b commit 5b502c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/JSystem/JAudio/JASSeqParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace JASystem {
bool conditionCheck(TTrack*, u8);
int parseSeq(TTrack*);

static int (TSeqParser::*sCmdPList[])(TTrack*, u32*);
static CmdFunc sCmdPList[];
};

struct Arg_s { // Fake name
Expand Down
5 changes: 2 additions & 3 deletions src/JSystem/JAudio/JASSeqParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,9 @@ int JASystem::TSeqParser::cmdRet(TTrack* track, u32* args) {

/* 8027E9AC-8027EAF4 .text cmdJmp__Q28JASystem10TSeqParserFPQ28JASystem6TTrackPUl */
int JASystem::TSeqParser::cmdJmp(TTrack* track, u32* args) {
u8 flag;
bool usetrackptr = false;
int trackptr = 0;
flag = track->getSeq()->readByte();
u8 flag = track->getSeq()->readByte();
u32 data;

if (flag & 0x80) {
Expand Down Expand Up @@ -704,7 +703,7 @@ int JASystem::TSeqParser::Cmd_Process(TTrack* track, u8 r5, u16 r6) {
JASystem::Arg_s sp08 = Arglist[r5-0xC0];
u16 r29 = sp08.m02;
r29 |= r6;
u32 sp18[10];
u32 sp18[8];
for (int i = 0 ; i < sp08.m00; i++) {
u32 r3 = 0;
switch (r29 & 0x3) {
Expand Down

0 comments on commit 5b502c9

Please sign in to comment.