[Scummvm-git-logs] scummvm master -> 44eb3c9076adf75ef5e9b88f396536022020a3ee
eriktorbjorn
noreply at scummvm.org
Wed Apr 20 16:40:33 UTC 2022
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:
44eb3c9076 AGS: Don't create _music until AGSEngine::run()
Commit: 44eb3c9076adf75ef5e9b88f396536022020a3ee
https://github.com/scummvm/scummvm/commit/44eb3c9076adf75ef5e9b88f396536022020a3ee
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2022-04-20T18:38:29+02:00
Commit Message:
AGS: Don't create _music until AGSEngine::run()
If it's done in the constructor it's not possible to use extrapath, and
that may cause problem, e.g if people want to use the MT-32 emulator
for games that use MIDI music.
Changed paths:
engines/ags/ags.cpp
diff --git a/engines/ags/ags.cpp b/engines/ags/ags.cpp
index f09d9ed12c0..05fa1c74ba3 100644
--- a/engines/ags/ags.cpp
+++ b/engines/ags/ags.cpp
@@ -76,7 +76,6 @@ AGSEngine::AGSEngine(OSystem *syst, const AGSGameDescription *gameDesc) : Engine
g_vm = this;
_events = new EventsManager();
- _music = new Music();
_globals = new ::AGS3::Globals();
Common::String forceAA;
@@ -182,6 +181,8 @@ Common::Error AGSEngine::run() {
if (_G(debug_flags) & DBG_REGONLY)
return Common::kNoError;
+ _music = new Music();
+
_G(loadSaveGameOnStartup) = ConfMan.getInt("save_slot");
syncSoundSettings();
More information about the Scummvm-git-logs
mailing list