[Scummvm-git-logs] scummvm branch-2-7-0-android -> ef9b6c9b45c9621499cca92ad9915ce118788390
sev-
noreply at scummvm.org
Sun Mar 19 14:49:33 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
ef9b6c9b45 SCUMM: Fix crash when compressded files are detected
Commit: ef9b6c9b45c9621499cca92ad9915ce118788390
https://github.com/scummvm/scummvm/commit/ef9b6c9b45c9621499cca92ad9915ce118788390
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-03-19T15:49:23+01:00
Commit Message:
SCUMM: Fix crash when compressded files are detected
We call Dialog::runModal() which in turn, calls pauseEngine().
At this point, SMUSH player is not yet initialized, but our implementation
calls _splayer->pause() which leads to a crash on Android.
Changed paths:
engines/scumm/scumm.cpp
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp
index e13c4709323..b3e5148fd41 100644
--- a/engines/scumm/scumm.cpp
+++ b/engines/scumm/scumm.cpp
@@ -3338,10 +3338,12 @@ void ScummEngine::pauseEngineIntern(bool pause) {
#ifdef ENABLE_SCUMM_7_8
void ScummEngine_v7::pauseEngineIntern(bool pause) {
- if (pause) {
- _splayer->pause();
- } else {
- _splayer->unpause();
+ if (_splayer) { // We may call it from setupScumm() before _splayer is inited
+ if (pause) {
+ _splayer->pause();
+ } else {
+ _splayer->unpause();
+ }
}
ScummEngine::pauseEngineIntern(pause);
More information about the Scummvm-git-logs
mailing list