22 #ifndef SCI_ENGINE_GUEST_ADDITIONS_H 23 #define SCI_ENGINE_GUEST_ADDITIONS_H 25 #include "sci/engine/vm_types.h" 42 kPhant2VolumeMax = 85,
45 kLSL6UIVolumeMax = 13,
47 kLSL6HiresSubtitleFlag = 105
95 void invokeSelector(
const reg_t objId,
const Selector selector,
const int argc = 0,
const StackPtr argv =
nullptr)
const;
101 bool shouldSyncAudioToScummVM()
const;
133 void sciEngineInitGameHook();
138 void sendSelectorHook(
const reg_t sendObj, Selector &selector,
reg_t *argp);
145 bool audio32SetVolumeHook(
const int16 channelIndex,
const int16 volume)
const;
150 void kDoSoundSetVolumeHook(
const reg_t soundObj,
const int16 volume)
const;
155 void instantiateScriptHook(
Script &script,
const bool ignoreDelayedRestore =
false)
const;
160 void segManSaveLoadScriptHook(
Script &script)
const;
177 bool kPlayDuckPlayVMDHook()
const;
181 #pragma mark Integrated save & restore 196 void patchGameSaveRestoreSCI16()
const;
214 void patchGameSaveRestoreSCI32(
Script &script)
const;
219 void patchGameSaveRestoreTorin(
Script &script)
const;
224 void patchGameSaveRestorePhant2(
Script &script)
const;
229 void patchGameSaveRestoreRama(
Script &script)
const;
235 void patchSRDialogDoit(
Script &script,
const char *
const objectName,
const byte *patchData,
const int patchSize,
const int *uint16Offsets =
nullptr,
const uint numOffsets = 0)
const;
277 int runSaveRestore(
const bool isSave,
const reg_t outDescription,
const int forcedSaveId = -1)
const;
278 int runSaveRestore(
const bool isSave,
Common::String &outDescription,
const int forcedSaveId = -1)
const;
282 #pragma mark Restore from launcher 289 bool restoreFromLauncher()
const;
296 mutable bool _restoring;
300 #pragma mark Message type sync 307 bool _messageTypeSynced;
313 void syncMessageTypeFromScummVM()
const;
319 void syncMessageTypeFromScummVMUsingDefaultStrategy()
const;
326 void syncMessageTypeFromScummVMUsingShiversStrategy()
const;
332 void syncMessageTypeFromScummVMUsingLSL6HiresStrategy()
const;
339 void syncMessageTypeToScummVM(
const int index,
const reg_t value);
345 void syncMessageTypeToScummVMUsingDefaultStrategy(
const int index,
const reg_t value);
352 void syncMessageTypeToScummVMUsingShiversStrategy(
const int index,
const reg_t value);
358 void syncMessageTypeToScummVMUsingLSL6HiresStrategy(
const reg_t sendObj, Selector &selector,
reg_t *argp);
362 #pragma mark Master volume sync 369 void syncMasterVolumeFromScummVM()
const;
375 void syncMasterVolumeToScummVM(
const int16 masterVolume)
const;
378 #pragma mark Globals volume sync 385 void syncAudioVolumeGlobalsFromScummVM()
const;
387 void syncLSL6VolumeFromScummVM(
const int16 musicVolume)
const;
394 void syncGK1StartupVolumeFromScummVM(
const int index,
const reg_t value)
const;
400 void syncGK1VolumeFromScummVM(
const int16 musicVolume,
const int16 dacVolume)
const;
402 void syncGK2VolumeFromScummVM(
const int16 musicVolume)
const;
403 void syncHoyle5VolumeFromScummVM(
const int16 musicVolume)
const;
404 void syncPhant2VolumeFromScummVM(
const int16 masterVolume)
const;
405 void syncRamaVolumeFromScummVM(
const int16 musicVolume)
const;
406 void syncTorinVolumeFromScummVM(
const int16 musicVolume,
const int16 sfxVolume,
const int16 speechVolume)
const;
413 void syncAudioVolumeGlobalsToScummVM(
const int index,
const reg_t value)
const;
419 void syncGK1AudioVolumeToScummVM(
const reg_t soundObj,
const int16 volume)
const;
422 #pragma mark Audio UI sync 430 void syncInGameUI(
const int16 musicVolume,
const int16 sfxVolume)
const;
432 void syncGK1UI()
const;
433 void syncGK2UI()
const;
434 void syncHoyle5UI(
const int16 musicVolume)
const;
436 void syncLSL6UI(
const int16 musicVolume)
const;
438 void syncMGDXUI(
const int16 musicVolume)
const;
439 void syncPhant1UI(
const int16 oldMusicVolume,
const int16 musicVolume,
reg_t &musicGlobal,
const int16 oldDacVolume,
const int16 dacVolume,
reg_t &dacGlobal)
const;
440 void syncPhant2UI(
const int16 masterVolume)
const;
441 void syncPQ4UI(
const int16 musicVolume)
const;
442 void syncPQSWATUI()
const;
443 void syncQFG4UI(
const int16 musicVolume)
const;
444 void syncRamaUI(
const int16 musicVolume)
const;
445 void syncShivers1UI(
const int16 dacVolume)
const;
446 void syncSQ6UI()
const;
447 void syncTorinUI(
const int16 musicVolume,
const int16 sfxVolume,
const int16 speechVolume)
const;
450 #pragma mark Talk speed sync 456 void syncTextSpeedFromScummVM()
const;
461 void syncTextSpeedToScummVM(
const int index,
const reg_t value)
const;
467 #endif // SCI_ENGINE_GUEST_ADDITIONS_H
void syncSoundSettingsFromScummVM() const
void syncAudioOptionsFromScummVM() const
bool kDoSoundMasterVolumeHook(const int volume) const
bool kGetEventHook() const
void sciEngineRunGameHook()
Definition: seg_manager.h:48
Definition: guest_additions.h:62
void patchGameSaveRestore() const
Definition: features.h:56
Definition: vm_types.h:39
void writeVarHook(const int type, const int index, const reg_t value)