Reenable all sound channels on state load, removed some useless code.

This commit is contained in:
n-a-c-h
2005-10-15 19:09:40 +00:00
parent 8881e1b222
commit 967c726942
2 changed files with 13 additions and 2 deletions

View File

@@ -530,10 +530,8 @@ NEWSYM cachevideo
mov byte[disableeffects],0
mov byte[osm2dis],0
mov byte[EmuSpeed],29
push eax
mov al,[snesinputdefault]
mov [snesmouse],al
pop eax
mov dword[Msgptr],panickeyp
mov eax,[MsgCount]
mov [MessageOn],eax

View File

@@ -845,6 +845,10 @@ void zst_sram_load_compressed(FILE *fp)
}
}
extern unsigned char Voice0Disable, Voice1Disable, Voice2Disable, Voice3Disable;
extern unsigned char Voice4Disable, Voice5Disable, Voice6Disable, Voice7Disable;
void stateloader (char *statename, unsigned char keycheck, unsigned char xfercheck)
{
extern unsigned char PauseLoad;
@@ -938,6 +942,15 @@ void stateloader (char *statename, unsigned char keycheck, unsigned char xferche
Msgptr = txtnfndmsg; // 'UNABLE TO LOAD STATE X.'
}
Voice0Disable = 1;
Voice1Disable = 1;
Voice2Disable = 1;
Voice3Disable = 1;
Voice4Disable = 1;
Voice5Disable = 1;
Voice6Disable = 1;
Voice7Disable = 1;
stim();
}