From 3c5d71ce4ceb396713a512778f0b20c67ab4dbb6 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 10 Sep 2022 00:12:53 -0500 Subject: [PATCH] fix .dmp loading for Neo Geo presets --- src/engine/fileOpsIns.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/engine/fileOpsIns.cpp b/src/engine/fileOpsIns.cpp index 7c2071de..842f29f7 100644 --- a/src/engine/fileOpsIns.cpp +++ b/src/engine/fileOpsIns.cpp @@ -150,6 +150,10 @@ void DivEngine::loadDMP(SafeReader& reader, std::vector& ret, St ins->type=DIV_INS_FM; logD("instrument type is Arcade"); break; + case 9: // Neo Geo + ins->type=DIV_INS_FM; + logD("instrument type is Neo Geo"); + break; default: logD("instrument type is unknown"); lastError="unknown instrument type!"; @@ -171,7 +175,13 @@ void DivEngine::loadDMP(SafeReader& reader, std::vector& ret, St mode=reader.readC(); logD("instrument mode is %d",mode); if (mode==0) { - if (ins->type==DIV_INS_FM) ins->type=DIV_INS_STD; + if (ins->type==DIV_INS_FM) { + if (sys==9) { + ins->type=DIV_INS_AY; + } else { + ins->type=DIV_INS_STD; + } + } } else { ins->type=DIV_INS_FM; }