Excellent
The next step after it all compiles is to actually get the drivers into the source.
We can use
THIS as an example.
First, put the d_mystston.cpp file into src/burn/misc/pre90s/ (the game was made in '84)
Next, open makefile.mingw with notepad (or a similar text editor)
Find this line:
d_wc90.o \
Change it to this:
d_wc90.o d_mystston.o \
You'll notice that what I've added there is the same as the name of the file you added earlier, but with .o instead of .cpp
Lastly, there's that m6502 change I said to make (otherwise the savestate for this game crashes)
Open src\cpu\m6502\m6502.cpp
Find the old m6502Scan function (which is at the bottom of the file)
int m6502Scan(int nAction)
{
if ((nAction & ACB_DRIVER_DATA) == 0) {
return 0;
}
struct BurnArea ba;
ba.Data = m6502_active_cpu_regs;
ba.nLen = sizeof(m6502_cpu) * MAX_CPU;
ba.szName = "Registers";
BurnAcb(&ba);
return 0;
}
and replace it with the new code.
int m6502Scan(int nAction)
{
if ((nAction & ACB_DRIVER_DATA) == 0) {
return 0;
}
for (int i = 0; i < MAX_CPU; i++) {
m6502_regs = &m6502_active_cpu_regs[i];
SCAN_VAR(A);
SCAN_VAR(X);
SCAN_VAR(Y);
SCAN_VAR(P);
SCAN_VAR(S);
SCAN_VAR(PC);
SCAN_VAR(nTotalCycles);
}
return 0;
}
Compile, and you're done.