* Initializes all the elements in the Intro screen. * @param game Pointer to the core game. * @param wasLetterBoxed Was the game letterboxed? */
| 39 | * @param wasLetterBoxed Was the game letterboxed? |
| 40 | */ |
| 41 | IntroState::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 | * |
nothing calls this directly
no test coverage detected