ENGINES: Replace checkCD with isolated partial methods

This is PR #3018 "rebased" on the current HEAD, after the conflicts with PR #3003 and me botching the rebase in that PR

Old PR is here: https://github.com/scummvm/scummvm/pull/3018
This commit is contained in:
antoniou79 2021-07-24 22:16:45 +03:00 committed by Eugene Sandulenko
parent c05acdafd5
commit 04642eef8a
10 changed files with 95 additions and 34 deletions

View file

@ -587,9 +587,19 @@ public:
inline Common::SaveFileManager *getSaveFileManager() { return _saveFileMan; }
public:
/** On some systems, check whether the game appears to be run from CD. */
void checkCD();
/**
* Check if extracted CD Audio files are found.
*/
bool existExtractedCDAudioFiles();
/**
* On some systems, check whether the game appears to be run
* from the same CD drive, which also should play CD audio.
*/
bool isDataAndCDAudioReadFromSameCD();
/**
*Display a warning for no extracted CD Audio files found.
*/
void warnMissingExtractedCDAudio();
/**
* Check whether it is time to autosave, and if so, do it.