This commit is contained in:
Seeky 2020-09-11 18:18:46 +01:00
parent 031ce3ef7a
commit 9bf0d5eb3b
4 changed files with 24 additions and 11 deletions

View File

@ -1 +1,3 @@
# spm-decomp
1:1 matching source code for SPM functions, TTYD support to some extent

View File

@ -1,5 +1,6 @@
#include <string.h>
#include "seqdrv.h"
#include "string.h"
#include "system.h"
/*
@ -117,13 +118,17 @@ void seqMain() {
seqWork.stage = 0;
seqWork.p0 = next_p0;
seqWork.p1 = next_p1;
#if GAME_SPM
seqWork.afterFunc = NULL;
#endif
(*seq_data[now_seq].init)(&seqWork);
}
(*seq_data[now_seq].main)(&seqWork);
#if GAME_SPM
if (seqWork.afterFunc != NULL) {
(*seqWork.afterFunc)(&seqWork);
}
#endif
}
/*

View File

@ -1,21 +1,21 @@
#ifndef SEQDRV_H
#define SEQDRV_H
#include "stdbool.h"
#include <stdbool.h>
#include "seqdef.h"
/*
Functions:
==========
Name SPM TTYD
seqInit_SPMARIO yes n/a
seqInit_MARIOSTORY n/a yes
seqMain yes yes
seqSetSeq yes yes
seqGetSeq yes yes
seqGetPrevSeq n/a yes
seqGetNextSeq n/a yes
seqCheckSeq n/a yes
Name
seqInit_SPMARIO yes (aka seqInit_MARIOSTORY)
seqMain yes (only matching spm 1:1, logic matching for ttyd)
seqSetSeq yes
seqGetSeq yes
seqGetPrevSeq yes (ttyd exclusive)
seqGetNextSeq yes (ttyd exclusive)
seqCheckSeq yes (ttyd exclusive)
Other:
======

6
system.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef SYSTEM_H
#define SYSTEM_H
void sysWaitDrawSync();
#endif