Mercurial > mm7
comparison MMT.cpp @ 2469:8516bb27d7f0
use_MMT
author | Ritor1 |
---|---|
date | Mon, 18 Aug 2014 13:11:39 +0600 |
parents | b054ea5daf45 |
children | 94cf712fc780 |
comparison
equal
deleted
inserted
replaced
2468:48cc5e0d8fc9 | 2469:8516bb27d7f0 |
---|---|
13 #include "LOD.h" | 13 #include "LOD.h" |
14 #include "Render.h" | 14 #include "Render.h" |
15 #include "GUIFont.h" | 15 #include "GUIFont.h" |
16 #include "lib/libpng/png.h" | 16 #include "lib/libpng/png.h" |
17 #include "ErrorHandling.h" | 17 #include "ErrorHandling.h" |
18 | 18 #include "Bink_Smacker.h" |
19 #include "Game.h" | 19 #include "Game.h" |
20 | 20 |
21 | 21 |
22 void ShowLogoVideo() | 22 void ShowLogoVideo() |
23 { | 23 { |
24 RGBTexture tex; // [sp+Ch] [bp-30h]@1 | 24 RGBTexture tex; // [sp+Ch] [bp-30h]@1 |
25 //unsigned int uTrackStartMS; // [sp+34h] [bp-8h]@8 | 25 unsigned int uTrackStartMS; // [sp+34h] [bp-8h]@8 |
26 //unsigned int uTrackEndMS; // [sp+38h] [bp-4h]@8 | 26 unsigned int uTrackEndMS; // [sp+38h] [bp-4h]@8 |
27 | 27 |
28 pMediaPlayer->bStopBeforeSchedule = false; | 28 pMediaPlayer->bStopBeforeSchedule = false; |
29 | |
29 // pMediaPlayer->pResetflag = 0; | 30 // pMediaPlayer->pResetflag = 0; |
30 bGameoverLoop = 1; | 31 bGameoverLoop = 1; |
31 if (!bNoVideo) | 32 if (!bNoVideo) |
32 { | 33 { |
33 pRenderer->PresentBlackScreen(); | 34 pRenderer->PresentBlackScreen(); |
34 pMediaPlayer->PlayFullscreenMovie(MOVIE_3DOLogo, true); | 35 pMediaPlayer->PlayFullscreenMovie(MOVIE_3DOLogo, true); |
35 if ( !pMediaPlayer->bStopBeforeSchedule ) | 36 if ( !pMediaPlayer->bStopBeforeSchedule ) |
36 { | 37 { |
37 pMediaPlayer->PlayFullscreenMovie(MOVIE_NWCLogo, true); | 38 pMediaPlayer->PlayFullscreenMovie(MOVIE_NWCLogo, true); |
38 if ( !pMediaPlayer->bStopBeforeSchedule ) | 39 if ( !pMediaPlayer->bStopBeforeSchedule ) |
39 pMediaPlayer->PlayFullscreenMovie(MOVIE_JVC, true); | 40 //pMediaPlayer->PlayFullscreenMovie(MOVIE_JVC, true);//Ritor1: crash |
41 //if ( !pMediaPlayer->bStopBeforeSchedule ) | |
42 if (!use_MMT) | |
43 pMediaPlayer->PlayFullscreenMovie(MOVIE_Intro, true); | |
40 } | 44 } |
41 } | 45 } |
42 char pContainerName[64]; | 46 char pContainerName[64]; |
43 | 47 |
44 sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx"); | 48 if (use_MMT) |
45 tex.LoadPCXFile(pContainerName, 0); | 49 { |
50 sprintf(pContainerName, "data\\New_Icons/%s", "MMTTITLE.pcx"); | |
51 tex.LoadPCXFile(pContainerName, 0); | |
52 } | |
53 else | |
54 tex.Load("mm6title.pcx", 2); | |
46 | 55 |
47 pRenderer->BeginScene(); | 56 pRenderer->BeginScene(); |
48 pRenderer->DrawTextureRGB(0, 0, &tex); | 57 pRenderer->DrawTextureRGB(0, 0, &tex); |
49 free(tex.pPixels); | 58 free(tex.pPixels); |
50 tex.pPixels = 0; | 59 tex.pPixels = 0; |
51 MainMenuUI_LoadFontsAndSomeStuff(); | 60 MainMenuUI_LoadFontsAndSomeStuff(); |
52 DrawMMTCopyrightWindow();//Text message in ÌÌÒ menu | 61 |
62 if (use_MMT) | |
63 DrawMMTCopyrightWindow();//Text message in ÌÌÒ menu | |
64 else | |
65 DrawMM7CopyrightWindow(); | |
53 | 66 |
54 pRenderer->EndScene(); | 67 pRenderer->EndScene(); |
55 pRenderer->Present(); | 68 pRenderer->Present(); |
56 | 69 |
57 #ifndef _DEBUG | 70 #ifndef _DEBUG |
58 Sleep(1500); // let the copyright window stay for a while | 71 Sleep(1500); // let the copyright window stay for a while |
59 #endif | 72 #endif |
60 | 73 if (!use_MMT) |
61 /*if (!bNoSound && pAudioPlayer->hAILRedbook ) | 74 { |
62 { | 75 if (!bNoSound && pAudioPlayer->hAILRedbook ) |
63 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0)); | 76 { |
64 AIL_redbook_stop(pAudioPlayer->hAILRedbook); | 77 pAudioPlayer->SetMusicVolume((signed __int64)(pSoundVolumeLevels[uMusicVolimeMultiplier] * 64.0)); |
65 AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS); | 78 AIL_redbook_stop(pAudioPlayer->hAILRedbook); |
66 AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS); | 79 AIL_redbook_track_info(pAudioPlayer->hAILRedbook, 14, &uTrackStartMS, &uTrackEndMS); |
67 } */ | 80 AIL_redbook_play(pAudioPlayer->hAILRedbook, uTrackStartMS + 1, uTrackEndMS); |
81 } | |
82 } | |
68 bGameoverLoop = 0; | 83 bGameoverLoop = 0; |
69 } | 84 } |
70 | 85 |
71 void abort_(const char * s, ...) | 86 void abort_(const char * s, ...) |
72 { | 87 { |