mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 08:55:45 +00:00
MADE: Init class variables
This commit is contained in:
parent
298ea1a76e
commit
375cac6d79
@ -58,11 +58,24 @@ MadeEngine::MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc) : Eng
|
||||
|
||||
const GameSettings *g;
|
||||
|
||||
_eventNum = 0;
|
||||
_eventMouseX = _eventMouseY = 0;
|
||||
_eventKey = 0;
|
||||
_autoStopSound = false;
|
||||
_soundEnergyIndex = 0;
|
||||
_soundEnergyArray = 0;
|
||||
_musicBeatStart = 0;
|
||||
_cdTimeStart = 0;
|
||||
|
||||
_gameId = -1;
|
||||
|
||||
const char *gameid = ConfMan.get("gameid").c_str();
|
||||
for (g = madeSettings; g->gameid; ++g)
|
||||
if (!scumm_stricmp(g->gameid, gameid))
|
||||
_gameId = g->id;
|
||||
|
||||
assert(_gameId != -1);
|
||||
|
||||
_rnd = new Common::RandomSource("made");
|
||||
|
||||
_console = new MadeConsole(this);
|
||||
@ -85,6 +98,8 @@ MadeEngine::MadeEngine(OSystem *syst, const MadeGameDescription *gameDesc) : Eng
|
||||
|
||||
_music = nullptr;
|
||||
|
||||
_soundRate = 0;
|
||||
|
||||
// Set default sound frequency
|
||||
switch (getGameID()) {
|
||||
case GID_RODNEY:
|
||||
|
Loading…
x
Reference in New Issue
Block a user