2021-05-26 08:17:12 +00:00
|
|
|
#include "gb.h"
|
|
|
|
#include "../engine.h"
|
|
|
|
#include <math.h>
|
|
|
|
|
2022-01-17 18:29:35 +00:00
|
|
|
#define rWrite(a,v) if (!skipRegisterWrites) {GB_apu_write(gb,a,v); if (dumpWrites) {addWrite(a,v);} }
|
2021-05-26 22:43:14 +00:00
|
|
|
|
2021-05-28 04:41:35 +00:00
|
|
|
#define FREQ_BASE 8015.85f
|
2021-05-26 22:43:14 +00:00
|
|
|
|
2021-12-06 21:51:18 +00:00
|
|
|
void DivPlatformGB::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
2021-12-14 17:33:26 +00:00
|
|
|
for (size_t i=start; i<start+len; i++) {
|
2021-12-06 10:21:42 +00:00
|
|
|
GB_advance_cycles(gb,16);
|
2021-12-06 21:51:18 +00:00
|
|
|
bufL[i]=gb->apu_output.final_sample.left<<2;
|
|
|
|
bufR[i]=gb->apu_output.final_sample.right<<2;
|
2021-12-06 10:21:42 +00:00
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
}
|
|
|
|
|
2021-05-27 18:30:37 +00:00
|
|
|
void DivPlatformGB::updateWave() {
|
2021-05-28 04:33:04 +00:00
|
|
|
DivWavetable* wt=parent->getWave(chan[2].wave);
|
|
|
|
rWrite(0x1a,0);
|
2021-05-27 18:30:37 +00:00
|
|
|
for (int i=0; i<16; i++) {
|
2022-01-11 08:16:32 +00:00
|
|
|
if (wt->max<1 || wt->len<1) {
|
|
|
|
rWrite(0x30+i,0);
|
|
|
|
} else {
|
|
|
|
unsigned char nibble1=(wt->data[(i*2)*wt->len/32]*15)/wt->max;
|
|
|
|
unsigned char nibble2=(wt->data[(1+i*2)*wt->len/32]*15)/wt->max;
|
|
|
|
rWrite(0x30+i,(nibble1<<4)|nibble2);
|
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-18 08:25:42 +00:00
|
|
|
static unsigned char chanMuteMask[4]={
|
|
|
|
0xee, 0xdd, 0xbb, 0x77
|
|
|
|
};
|
|
|
|
|
|
|
|
unsigned char DivPlatformGB::procMute() {
|
|
|
|
return lastPan&(isMuted[0]?chanMuteMask[0]:0xff)
|
|
|
|
&(isMuted[1]?chanMuteMask[1]:0xff)
|
|
|
|
&(isMuted[2]?chanMuteMask[2]:0xff)
|
|
|
|
&(isMuted[3]?chanMuteMask[3]:0xff);
|
|
|
|
}
|
|
|
|
|
2021-05-27 18:30:37 +00:00
|
|
|
static unsigned char gbVolMap[16]={
|
2021-05-28 06:26:57 +00:00
|
|
|
0x00, 0x00, 0x00, 0x00,
|
|
|
|
0x60, 0x60, 0x60, 0x60,
|
2021-05-27 18:30:37 +00:00
|
|
|
0x40, 0x40, 0x40, 0x40,
|
|
|
|
0x20, 0x20, 0x20, 0x20
|
|
|
|
};
|
|
|
|
|
2021-05-28 04:03:10 +00:00
|
|
|
static unsigned char noiseTable[256]={
|
|
|
|
0,
|
|
|
|
0xf7, 0xf6, 0xf5, 0xf4,
|
|
|
|
0xe7, 0xe6, 0xe5, 0xe4,
|
|
|
|
0xd7, 0xd6, 0xd5, 0xd4,
|
|
|
|
0xc7, 0xc6, 0xc5, 0xc4,
|
|
|
|
0xb7, 0xb6, 0xb5, 0xb4,
|
|
|
|
0xa7, 0xa6, 0xa5, 0xa4,
|
|
|
|
0x97, 0x96, 0x95, 0x94,
|
|
|
|
0x87, 0x86, 0x85, 0x84,
|
|
|
|
0x77, 0x76, 0x75, 0x74,
|
|
|
|
0x67, 0x66, 0x65, 0x64,
|
|
|
|
0x57, 0x56, 0x55, 0x54,
|
|
|
|
0x47, 0x46, 0x45, 0x44,
|
|
|
|
0x37, 0x36, 0x35, 0x34,
|
|
|
|
0x27, 0x26, 0x25, 0x24,
|
|
|
|
0x17, 0x16, 0x15, 0x14,
|
|
|
|
0x07, 0x06, 0x05, 0x04,
|
|
|
|
0x03, 0x02, 0x01, 0x00,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
|
|
|
};
|
|
|
|
|
2021-05-26 08:17:12 +00:00
|
|
|
void DivPlatformGB::tick() {
|
|
|
|
for (int i=0; i<4; i++) {
|
|
|
|
chan[i].std.next();
|
|
|
|
if (chan[i].std.hadArp) {
|
2021-05-28 04:03:10 +00:00
|
|
|
if (i==3) { // noise
|
|
|
|
if (chan[i].std.arpMode) {
|
2021-05-28 04:33:04 +00:00
|
|
|
chan[i].baseFreq=chan[i].std.arp+24;
|
2021-05-28 04:03:10 +00:00
|
|
|
} else {
|
|
|
|
chan[i].baseFreq=chan[i].note+chan[i].std.arp-12;
|
|
|
|
}
|
2021-05-28 07:02:54 +00:00
|
|
|
if (chan[i].baseFreq>255) chan[i].baseFreq=255;
|
|
|
|
if (chan[i].baseFreq<0) chan[i].baseFreq=0;
|
2021-05-26 08:17:12 +00:00
|
|
|
} else {
|
2021-05-28 07:30:09 +00:00
|
|
|
if (!chan[i].inPorta) {
|
|
|
|
if (chan[i].std.arpMode) {
|
|
|
|
chan[i].baseFreq=round(FREQ_BASE/pow(2.0f,((float)(chan[i].std.arp+24)/12.0f)));
|
|
|
|
} else {
|
|
|
|
chan[i].baseFreq=round(FREQ_BASE/pow(2.0f,((float)(chan[i].note+chan[i].std.arp-12)/12.0f)));
|
|
|
|
}
|
2021-05-28 04:03:10 +00:00
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
}
|
|
|
|
chan[i].freqChanged=true;
|
2021-05-28 07:02:54 +00:00
|
|
|
} else {
|
|
|
|
if (chan[i].std.arpMode && chan[i].std.finishedArp) {
|
|
|
|
chan[i].baseFreq=round(FREQ_BASE/pow(2.0f,((float)(chan[i].note)/12.0f)));
|
|
|
|
chan[i].freqChanged=true;
|
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
}
|
|
|
|
if (chan[i].std.hadDuty) {
|
2021-05-26 22:43:14 +00:00
|
|
|
chan[i].duty=chan[i].std.duty;
|
2021-05-28 04:03:10 +00:00
|
|
|
DivInstrument* ins=parent->getIns(chan[i].ins);
|
2021-05-27 18:30:37 +00:00
|
|
|
if (i!=2) {
|
2021-05-28 04:03:10 +00:00
|
|
|
rWrite(16+i*5+1,((chan[i].duty&3)<<6)|(63-(ins->gb.soundLen&63)));
|
2021-05-27 18:30:37 +00:00
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
if (chan[i].std.hadWave) {
|
2021-05-27 21:47:09 +00:00
|
|
|
if (chan[i].wave!=chan[i].std.wave) {
|
|
|
|
chan[i].wave=chan[i].std.wave;
|
|
|
|
if (i==2) {
|
|
|
|
updateWave();
|
|
|
|
if (!chan[i].keyOff) chan[i].keyOn=true;
|
|
|
|
}
|
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
}
|
2021-05-28 06:26:57 +00:00
|
|
|
if (chan[i].sweepChanged) {
|
|
|
|
chan[i].sweepChanged=false;
|
|
|
|
if (i==0) {
|
|
|
|
rWrite(16+i*5,chan[i].sweep);
|
|
|
|
}
|
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
if (chan[i].freqChanged || chan[i].keyOn || chan[i].keyOff) {
|
2021-05-28 04:03:10 +00:00
|
|
|
DivInstrument* ins=parent->getIns(chan[i].ins);
|
|
|
|
if (i==3) { // noise
|
|
|
|
chan[i].freq=noiseTable[chan[i].baseFreq];
|
|
|
|
} else {
|
2021-12-28 05:51:38 +00:00
|
|
|
chan[i].freq=parent->calcFreq(chan[i].baseFreq,chan[i].pitch,true);
|
2021-05-28 07:49:01 +00:00
|
|
|
if (chan[i].freq>2047) chan[i].freq=2047;
|
2021-05-28 04:03:10 +00:00
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
if (chan[i].note>0x5d) chan[i].freq=0x01;
|
2021-05-27 18:30:37 +00:00
|
|
|
if (chan[i].keyOn) {
|
|
|
|
if (i==2) { // wave
|
2021-05-27 21:47:09 +00:00
|
|
|
if (chan[i].wave<0) {
|
|
|
|
chan[i].wave=0;
|
|
|
|
updateWave();
|
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
rWrite(16+i*5,0x80);
|
|
|
|
rWrite(16+i*5+2,gbVolMap[chan[i].vol]);
|
|
|
|
} else {
|
2021-05-28 04:03:10 +00:00
|
|
|
rWrite(16+i*5+1,((chan[i].duty&3)<<6)|(63-(ins->gb.soundLen&63)));
|
2021-05-27 18:30:37 +00:00
|
|
|
rWrite(16+i*5+2,((chan[i].vol<<4))|(ins->gb.envLen&7)|((ins->gb.envDir&1)<<3));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (chan[i].keyOff) {
|
|
|
|
if (i==2) {
|
|
|
|
rWrite(16+i*5+2,0);
|
|
|
|
} else {
|
|
|
|
rWrite(16+i*5+2,8);
|
2021-05-26 22:43:14 +00:00
|
|
|
}
|
|
|
|
}
|
2021-05-28 04:03:10 +00:00
|
|
|
if (i==3) { // noise
|
2021-05-28 06:26:57 +00:00
|
|
|
rWrite(16+i*5+3,(chan[i].freq&0xff)|(chan[i].duty?8:0));
|
2021-05-28 04:03:10 +00:00
|
|
|
rWrite(16+i*5+4,((chan[i].keyOn||chan[i].keyOff)?0x80:0x00)|((ins->gb.soundLen<64)<<6));
|
|
|
|
} else {
|
|
|
|
rWrite(16+i*5+3,(2048-chan[i].freq)&0xff);
|
|
|
|
rWrite(16+i*5+4,(((2048-chan[i].freq)>>8)&7)|((chan[i].keyOn||chan[i].keyOff)?0x80:0x00)|((ins->gb.soundLen<63)<<6));
|
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
if (chan[i].keyOn) chan[i].keyOn=false;
|
|
|
|
if (chan[i].keyOff) chan[i].keyOff=false;
|
2021-05-26 08:17:12 +00:00
|
|
|
chan[i].freqChanged=false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-18 08:25:42 +00:00
|
|
|
void DivPlatformGB::muteChannel(int ch, bool mute) {
|
|
|
|
isMuted[ch]=mute;
|
|
|
|
rWrite(0x25,procMute());
|
|
|
|
}
|
|
|
|
|
2021-05-26 08:17:12 +00:00
|
|
|
int DivPlatformGB::dispatch(DivCommand c) {
|
|
|
|
switch (c.cmd) {
|
|
|
|
case DIV_CMD_NOTE_ON:
|
2021-05-28 04:03:10 +00:00
|
|
|
if (c.chan==3) { // noise
|
|
|
|
chan[c.chan].baseFreq=c.value;
|
|
|
|
} else {
|
|
|
|
chan[c.chan].baseFreq=round(FREQ_BASE/pow(2.0f,((float)c.value/12.0f)));
|
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
chan[c.chan].freqChanged=true;
|
|
|
|
chan[c.chan].note=c.value;
|
|
|
|
chan[c.chan].active=true;
|
2021-05-26 22:43:14 +00:00
|
|
|
chan[c.chan].keyOn=true;
|
2021-05-26 08:17:12 +00:00
|
|
|
chan[c.chan].std.init(parent->getIns(chan[c.chan].ins));
|
|
|
|
break;
|
|
|
|
case DIV_CMD_NOTE_OFF:
|
|
|
|
chan[c.chan].active=false;
|
2021-05-26 22:43:14 +00:00
|
|
|
chan[c.chan].keyOff=true;
|
2021-05-26 08:17:12 +00:00
|
|
|
chan[c.chan].std.init(NULL);
|
|
|
|
break;
|
|
|
|
case DIV_CMD_INSTRUMENT:
|
2022-01-17 23:01:40 +00:00
|
|
|
if (chan[c.chan].ins!=c.value || c.value2==1) {
|
2021-05-28 06:26:57 +00:00
|
|
|
chan[c.chan].ins=c.value;
|
|
|
|
if (c.chan!=2) {
|
|
|
|
chan[c.chan].vol=parent->getIns(chan[c.chan].ins)->gb.envVol;
|
|
|
|
}
|
2021-05-27 18:30:37 +00:00
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
break;
|
|
|
|
case DIV_CMD_VOLUME:
|
2021-05-28 05:36:25 +00:00
|
|
|
chan[c.chan].vol=c.value;
|
|
|
|
if (c.chan==2) {
|
|
|
|
rWrite(16+c.chan*5+2,gbVolMap[chan[c.chan].vol]);
|
2021-05-26 08:17:12 +00:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
case DIV_CMD_GET_VOLUME:
|
2021-05-26 22:43:14 +00:00
|
|
|
return chan[c.chan].vol;
|
2021-05-26 08:17:12 +00:00
|
|
|
break;
|
|
|
|
case DIV_CMD_PITCH:
|
|
|
|
chan[c.chan].pitch=c.value;
|
|
|
|
chan[c.chan].freqChanged=true;
|
|
|
|
break;
|
2021-05-28 05:36:25 +00:00
|
|
|
case DIV_CMD_WAVE:
|
|
|
|
if (c.chan!=2) break;
|
|
|
|
chan[c.chan].wave=c.value;
|
|
|
|
updateWave();
|
2021-05-28 07:02:54 +00:00
|
|
|
chan[c.chan].keyOn=true;
|
2021-05-28 05:36:25 +00:00
|
|
|
break;
|
2021-05-26 08:17:12 +00:00
|
|
|
case DIV_CMD_NOTE_PORTA: {
|
2021-05-26 22:43:14 +00:00
|
|
|
int destFreq=round(FREQ_BASE/pow(2.0f,((float)c.value2/12.0f)));
|
2021-05-26 08:17:12 +00:00
|
|
|
bool return2=false;
|
|
|
|
if (destFreq>chan[c.chan].baseFreq) {
|
|
|
|
chan[c.chan].baseFreq+=c.value;
|
|
|
|
if (chan[c.chan].baseFreq>=destFreq) {
|
|
|
|
chan[c.chan].baseFreq=destFreq;
|
|
|
|
return2=true;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
chan[c.chan].baseFreq-=c.value;
|
|
|
|
if (chan[c.chan].baseFreq<=destFreq) {
|
|
|
|
chan[c.chan].baseFreq=destFreq;
|
|
|
|
return2=true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
chan[c.chan].freqChanged=true;
|
2021-05-28 07:30:09 +00:00
|
|
|
if (return2) {
|
|
|
|
chan[c.chan].inPorta=false;
|
|
|
|
return 2;
|
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case DIV_CMD_STD_NOISE_MODE:
|
2021-05-28 06:26:57 +00:00
|
|
|
chan[c.chan].duty=c.value;
|
2021-05-28 06:30:18 +00:00
|
|
|
if (c.chan!=2) {
|
2021-05-28 06:26:57 +00:00
|
|
|
chan[c.chan].freqChanged=true;
|
2021-05-28 06:30:18 +00:00
|
|
|
rWrite(16+c.chan*5+1,((chan[c.chan].duty&3)<<6)|(63-(parent->getIns(chan[c.chan].ins)->gb.soundLen&63)));
|
2021-05-28 06:26:57 +00:00
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
break;
|
2021-05-28 04:33:04 +00:00
|
|
|
case DIV_CMD_PANNING: {
|
|
|
|
lastPan&=~(0x11<<c.chan);
|
2021-05-29 00:59:42 +00:00
|
|
|
if (c.value==0) c.value=0x11;
|
2021-05-28 04:33:04 +00:00
|
|
|
lastPan|=c.value<<c.chan;
|
2021-12-18 08:25:42 +00:00
|
|
|
rWrite(0x25,procMute());
|
2021-05-28 04:33:04 +00:00
|
|
|
break;
|
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
case DIV_CMD_LEGATO:
|
2021-05-28 04:03:10 +00:00
|
|
|
if (c.chan==3) break;
|
2021-12-08 06:16:29 +00:00
|
|
|
chan[c.chan].baseFreq=round(FREQ_BASE/pow(2.0f,((float)(c.value+((chan[c.chan].std.willArp && !chan[c.chan].std.arpMode)?(chan[c.chan].std.arp-12):(0)))/12.0f)));
|
2021-05-26 08:17:12 +00:00
|
|
|
chan[c.chan].freqChanged=true;
|
|
|
|
chan[c.chan].note=c.value;
|
|
|
|
break;
|
|
|
|
case DIV_CMD_PRE_PORTA:
|
|
|
|
chan[c.chan].std.init(parent->getIns(chan[c.chan].ins));
|
2021-05-28 07:30:09 +00:00
|
|
|
chan[c.chan].inPorta=c.value;
|
2021-05-26 08:17:12 +00:00
|
|
|
break;
|
2021-05-28 06:26:57 +00:00
|
|
|
case DIV_CMD_GB_SWEEP_DIR:
|
|
|
|
chan[c.chan].sweep&=0xf7;
|
|
|
|
if (c.value&1) {
|
|
|
|
chan[c.chan].sweep|=8;
|
|
|
|
}
|
|
|
|
chan[c.chan].sweepChanged=true;
|
|
|
|
break;
|
|
|
|
case DIV_CMD_GB_SWEEP_TIME:
|
|
|
|
chan[c.chan].sweep&=8;
|
|
|
|
chan[c.chan].sweep|=c.value&0x77;
|
|
|
|
chan[c.chan].sweepChanged=true;
|
|
|
|
break;
|
2021-05-26 08:17:12 +00:00
|
|
|
case DIV_CMD_GET_VOLMAX:
|
|
|
|
return 15;
|
|
|
|
break;
|
2021-05-28 05:36:25 +00:00
|
|
|
case DIV_ALWAYS_SET_VOLUME:
|
|
|
|
return 1;
|
|
|
|
break;
|
2021-05-26 08:17:12 +00:00
|
|
|
default:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2021-12-21 06:29:07 +00:00
|
|
|
void DivPlatformGB::forceIns() {
|
|
|
|
for (int i=0; i<4; i++) {
|
|
|
|
chan[i].insChanged=true;
|
|
|
|
}
|
|
|
|
GB_apu_write(gb,0x25,procMute());
|
|
|
|
updateWave();
|
|
|
|
}
|
|
|
|
|
2021-12-11 18:14:38 +00:00
|
|
|
void DivPlatformGB::reset() {
|
|
|
|
for (int i=0; i<4; i++) {
|
|
|
|
chan[i]=DivPlatformGB::Channel();
|
|
|
|
}
|
2021-05-26 08:17:12 +00:00
|
|
|
memset(gb,0,sizeof(GB_gameboy_t));
|
2021-05-26 22:43:14 +00:00
|
|
|
gb->model=GB_MODEL_DMG_B;
|
2021-05-26 08:17:12 +00:00
|
|
|
GB_apu_init(gb);
|
|
|
|
GB_set_sample_rate(gb,rate);
|
2021-05-26 22:43:14 +00:00
|
|
|
// enable all channels
|
|
|
|
GB_apu_write(gb,0x26,0x80);
|
2021-05-28 04:33:04 +00:00
|
|
|
lastPan=0xff;
|
2021-12-18 08:25:42 +00:00
|
|
|
GB_apu_write(gb,0x25,procMute());
|
2021-12-11 18:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool DivPlatformGB::isStereo() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2022-01-14 00:36:02 +00:00
|
|
|
void DivPlatformGB::notifyInsDeletion(void* ins) {
|
|
|
|
for (int i=0; i<4; i++) {
|
|
|
|
chan[i].std.notifyInsDeletion((DivInstrument*)ins);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-12-11 18:14:38 +00:00
|
|
|
int DivPlatformGB::init(DivEngine* p, int channels, int sugRate, bool pal) {
|
2021-12-18 08:25:42 +00:00
|
|
|
for (int i=0; i<4; i++) {
|
|
|
|
isMuted[i]=false;
|
|
|
|
}
|
2021-12-11 18:14:38 +00:00
|
|
|
parent=p;
|
2022-01-17 04:21:27 +00:00
|
|
|
dumpWrites=false;
|
2021-12-21 21:02:31 +00:00
|
|
|
skipRegisterWrites=false;
|
2021-12-11 18:14:38 +00:00
|
|
|
rate=262144;
|
|
|
|
gb=new GB_gameboy_t;
|
|
|
|
reset();
|
2021-05-26 08:17:12 +00:00
|
|
|
return 4;
|
|
|
|
}
|
2021-12-15 05:37:27 +00:00
|
|
|
|
|
|
|
void DivPlatformGB::quit() {
|
|
|
|
delete gb;
|
|
|
|
}
|
|
|
|
|
|
|
|
DivPlatformGB::~DivPlatformGB() {
|
2022-01-17 18:29:35 +00:00
|
|
|
}
|