Fix restarting Maniac NES.
svn-id: r20380
This commit is contained in:
parent
484f6d1ad9
commit
bdedc81c22
1 changed files with 13 additions and 5 deletions
|
@ -2718,15 +2718,23 @@ void ScummEngine::restart() {
|
||||||
for (i = 0; i < _numGlobalObjects; i++)
|
for (i = 0; i < _numGlobalObjects; i++)
|
||||||
clearOwnerOf(i);
|
clearOwnerOf(i);
|
||||||
|
|
||||||
// Reinit things
|
// Reallocate arrays
|
||||||
allocateArrays(); // Reallocate arrays
|
allocateArrays();
|
||||||
readIndexFile(); // Reread index (reset objectstate etc)
|
|
||||||
scummInit(); // Reinit scumm variables
|
// Reread index (reset objectstate etc)
|
||||||
|
readIndexFile();
|
||||||
|
|
||||||
|
// Reinit scumm variables
|
||||||
|
scummInit();
|
||||||
initScummVars();
|
initScummVars();
|
||||||
|
|
||||||
if (_imuse) {
|
if (_imuse) {
|
||||||
_imuse->setBase(res.address[rtSound]);
|
_imuse->setBase(res.address[rtSound]);
|
||||||
}
|
}
|
||||||
_sound->setupSound(); // Reinit sound engine
|
|
||||||
|
// Reinit sound engine
|
||||||
|
if (_version >= 5)
|
||||||
|
_sound->setupSound();
|
||||||
|
|
||||||
// Re-run bootscript
|
// Re-run bootscript
|
||||||
int args[16];
|
int args[16];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue