GUI: improve debug menu
This commit is contained in:
parent
c8f57afda4
commit
584b8426ff
28 changed files with 167 additions and 10 deletions
|
|
@ -86,6 +86,10 @@ void DivDispatch::poke(std::vector<DivRegWrite>& wlist) {
|
|||
|
||||
}
|
||||
|
||||
const char** DivDispatch::getRegisterSheet() {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int DivDispatch::init(DivEngine* p, int channels, int sugRate, unsigned int flags) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ const char* regCheatSheetAmiga[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformAmiga::getRegisterSheet() {
|
||||
return regCheatSheetAmiga;
|
||||
}
|
||||
|
||||
void DivPlatformAmiga::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t h=start; h<start+len; h++) {
|
||||
bufL[h]=0;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ class DivPlatformAmiga: public DivDispatch {
|
|||
void notifyInsChange(int ins);
|
||||
void notifyWaveChange(int wave);
|
||||
void notifyInsDeletion(void* ins);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -57,6 +57,10 @@ const char* regCheatSheetOPM[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformArcade::getRegisterSheet() {
|
||||
return regCheatSheetOPM;
|
||||
}
|
||||
|
||||
void DivPlatformArcade::acquire_nuked(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
static int o[2];
|
||||
|
||||
|
|
|
|||
|
|
@ -81,6 +81,7 @@ class DivPlatformArcade: public DivDispatch {
|
|||
void setYMFM(bool use);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
~DivPlatformArcade();
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ const char* regCheatSheetAY[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformAY8910::getRegisterSheet() {
|
||||
return regCheatSheetAY;
|
||||
}
|
||||
|
||||
void DivPlatformAY8910::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
if (ayBufLen<len) {
|
||||
ayBufLen=len;
|
||||
|
|
|
|||
|
|
@ -67,6 +67,7 @@ class DivPlatformAY8910: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -41,6 +41,10 @@ const char* regCheatSheetAY8930[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformAY8930::getRegisterSheet() {
|
||||
return regCheatSheetAY8930;
|
||||
}
|
||||
|
||||
void DivPlatformAY8930::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
if (ayBufLen<len) {
|
||||
ayBufLen=len;
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ class DivPlatformAY8930: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -39,6 +39,10 @@ const char* regCheatSheetSID[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformC64::getRegisterSheet() {
|
||||
return regCheatSheetSID;
|
||||
}
|
||||
|
||||
void DivPlatformC64::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t i=start; i<start+len; i++) {
|
||||
sid.clock();
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ class DivPlatformC64: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void setChipModel(bool is6581);
|
||||
void quit();
|
||||
|
|
|
|||
|
|
@ -38,6 +38,10 @@ const char* regCheatSheetGB[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformGB::getRegisterSheet() {
|
||||
return regCheatSheetGB;
|
||||
}
|
||||
|
||||
void DivPlatformGB::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t i=start; i<start+len; i++) {
|
||||
GB_advance_cycles(gb,16);
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ class DivPlatformGB: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
~DivPlatformGB();
|
||||
|
|
|
|||
|
|
@ -32,6 +32,10 @@ const char* regCheatSheetNES[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformNES::getRegisterSheet() {
|
||||
return regCheatSheetNES;
|
||||
}
|
||||
|
||||
void DivPlatformNES::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t i=start; i<start+len; i++) {
|
||||
if (dacSample!=-1) {
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ class DivPlatformNES: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
~DivPlatformNES();
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ const char* regCheatSheetPCE[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformPCE::getRegisterSheet() {
|
||||
return regCheatSheetPCE;
|
||||
}
|
||||
|
||||
void DivPlatformPCE::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
for (size_t h=start; h<start+len; h++) {
|
||||
// PCM part
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ class DivPlatformPCE: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
~DivPlatformPCE();
|
||||
|
|
|
|||
|
|
@ -33,6 +33,10 @@ const char* regCheatSheetSAA[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformSAA1099::getRegisterSheet() {
|
||||
return regCheatSheetSAA;
|
||||
}
|
||||
|
||||
void DivPlatformSAA1099::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
if (saaBufLen<len) {
|
||||
saaBufLen=len;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,7 @@ class DivPlatformSAA1099: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,6 +11,10 @@ const char* regCheatSheetSN[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformSMS::getRegisterSheet() {
|
||||
return regCheatSheetSN;
|
||||
}
|
||||
|
||||
void DivPlatformSMS::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
sn->sound_stream_update(bufL+start,len);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -50,6 +50,7 @@ class DivPlatformSMS: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
~DivPlatformSMS();
|
||||
|
|
|
|||
|
|
@ -15,6 +15,10 @@ const char* regCheatSheetTIA[]={
|
|||
NULL
|
||||
};
|
||||
|
||||
const char** DivPlatformTIA::getRegisterSheet() {
|
||||
return regCheatSheetTIA;
|
||||
}
|
||||
|
||||
void DivPlatformTIA::acquire(short* bufL, short* bufR, size_t start, size_t len) {
|
||||
tia.process(bufL+start,len);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ class DivPlatformTIA: public DivDispatch {
|
|||
void notifyInsDeletion(void* ins);
|
||||
void poke(unsigned int addr, unsigned short val);
|
||||
void poke(std::vector<DivRegWrite>& wlist);
|
||||
const char** getRegisterSheet();
|
||||
int init(DivEngine* parent, int channels, int sugRate, unsigned int flags);
|
||||
void quit();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue