mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-25 15:25:07 -04:00
JASSeqParser OK
credits to cuyler for regswap fix
This commit is contained in:
+1
-1
@@ -744,7 +744,7 @@ config.libs = [
|
||||
Object(Matching, "JSystem/JAudio/JASPlayer_impl.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JASRegisterParam.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JASSeqCtrl.cpp"),
|
||||
Object(NonMatching, "JSystem/JAudio/JASSeqParser.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JASSeqParser.cpp"),
|
||||
Object(NonMatching, "JSystem/JAudio/JASTrack.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JASTrackInterrupt.cpp"),
|
||||
Object(Matching, "JSystem/JAudio/JASTrackPort.cpp"),
|
||||
|
||||
@@ -726,10 +726,7 @@ int JASystem::TSeqParser::Cmd_Process(TTrack* track, u8 r5, u16 r6) {
|
||||
}
|
||||
|
||||
JASystem::TSeqParser::CmdFunc cmdFunc = sCmdPList[r5-0xC0];
|
||||
if (cmdFunc == NULL) {
|
||||
return 0;
|
||||
}
|
||||
return (this->*cmdFunc)(track, sp18);
|
||||
return cmdFunc == NULL ? 0 : (this->*cmdFunc)(track, sp18);
|
||||
}
|
||||
|
||||
/* 8027FA48-8027FB08 .text RegCmd_Process__Q28JASystem10TSeqParserFPQ28JASystem6TTrackii */
|
||||
@@ -842,7 +839,6 @@ int JASystem::TSeqParser::cmdNoteOff(TTrack* track, u8 flag) {
|
||||
|
||||
/* 8027FE08-80280148 .text cmdNoteOn__Q28JASystem10TSeqParserFPQ28JASystem6TTrackUc */
|
||||
int JASystem::TSeqParser::cmdNoteOn(TTrack* track, u8 note) {
|
||||
/* Nonmatching */
|
||||
u32 r27 = track->getSeq()->readByte();
|
||||
if (r27 & 0x80) {
|
||||
note = track->exchangeRegisterValue(note);
|
||||
@@ -943,7 +939,7 @@ int JASystem::TSeqParser::cmdNoteOn(TTrack* track, u8 note) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
track->getSeq()->wait(r24 ? r27 : -1);
|
||||
track->getSeq()->wait(r24 ? (s32)r27 : -1);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user