add support for MSX2 .dmf
your songs may sound different. I am not going to bother supporting effects and quirks
This commit is contained in:
parent
06d22f601a
commit
5ceccb5988
3 changed files with 18 additions and 0 deletions
|
|
@ -413,6 +413,9 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
|
|||
if (ds.system[0]==DIV_SYSTEM_ARCADE) {
|
||||
ins->type=DIV_INS_OPM;
|
||||
}
|
||||
if (ds.system[0]==DIV_SYSTEM_MSX2) {
|
||||
ins->type=DIV_INS_SCC;
|
||||
}
|
||||
if ((ds.system[0]==DIV_SYSTEM_NES || ds.system[0]==DIV_SYSTEM_NES_VRC7 || ds.system[0]==DIV_SYSTEM_NES_FDS) && ins->type==DIV_INS_STD) {
|
||||
ins->type=DIV_INS_NES;
|
||||
}
|
||||
|
|
@ -723,6 +726,9 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
|
|||
if (ds.system[0]==DIV_SYSTEM_NES_FDS) {
|
||||
wave->max=63;
|
||||
}
|
||||
if (ds.system[0]==DIV_SYSTEM_MSX2) {
|
||||
wave->max=255;
|
||||
}
|
||||
if (wave->len>65) {
|
||||
logE("invalid wave length %d. are we doing something wrong?",wave->len);
|
||||
lastError="file is corrupt or unreadable at wavetables";
|
||||
|
|
@ -1070,6 +1076,11 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
|
|||
ds.system[0]=DIV_SYSTEM_YM2151;
|
||||
ds.system[1]=DIV_SYSTEM_SEGAPCM_COMPAT;
|
||||
}
|
||||
if (ds.system[0]==DIV_SYSTEM_MSX2) {
|
||||
ds.systemLen=2;
|
||||
ds.system[0]=DIV_SYSTEM_AY8910;
|
||||
ds.system[1]=DIV_SYSTEM_SCC;
|
||||
}
|
||||
if (ds.system[0]==DIV_SYSTEM_SMS_OPLL) {
|
||||
ds.systemLen=2;
|
||||
ds.system[0]=DIV_SYSTEM_SMS;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue