fix more possible crashes when deleting ins

and added a fatal error if implementation is missing
This commit is contained in:
tildearrow 2023-01-19 00:37:37 -05:00
parent bb4dc21603
commit c1e26ee749
34 changed files with 111 additions and 10 deletions

View file

@ -1477,6 +1477,12 @@ void DivPlatformYM2610B::notifyInsChange(int ins) {
void DivPlatformYM2610B::notifyInsDeletion(void* ins) {
ay->notifyInsDeletion(ins);
for (int i=0; i<psgChanOffs; i++) {
chan[i].std.notifyInsDeletion((DivInstrument*)ins);
}
for (int i=adpcmAChanOffs; i<chanNum; i++) {
chan[i].std.notifyInsDeletion((DivInstrument*)ins);
}
}
void DivPlatformYM2610B::setSkipRegisterWrites(bool value) {