MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / IntroState

Method IntroState

src/Menu/IntroState.cpp:41–50  ·  view source on GitHub ↗

* Initializes all the elements in the Intro screen. * @param game Pointer to the core game. * @param wasLetterBoxed Was the game letterboxed? */

Source from the content-addressed store, hash-verified

39 * @param wasLetterBoxed Was the game letterboxed?
40 */
41IntroState::IntroState(Game *game, bool wasLetterBoxed) : State(game), _wasLetterBoxed(wasLetterBoxed)
42{
43 _oldMusic = Options::musicVolume;
44 _oldSound = Options::soundVolume;
45 Options::musicVolume = Options::soundVolume = std::max(_oldMusic, _oldSound);
46 _game->setVolume(Options::soundVolume, Options::musicVolume, -1);
47 _introFile = CrossPlatform::getDataFile("UFOINTRO/UFOINT.FLI");
48 _introSoundFileDOS = CrossPlatform::getDataFile("SOUND/INTRO.CAT");
49 _introSoundFileWin = CrossPlatform::getDataFile("SOUND/SAMPLE3.CAT");
50}
51
52/**
53 *

Callers

nothing calls this directly

Calls 2

getDataFileFunction · 0.85
setVolumeMethod · 0.80

Tested by

no test coverage detected