Mercurial > mm7
comparison CShow.cpp @ 1048:d36681a9e4f8
Слияние
author | Ritor1 |
---|---|
date | Thu, 23 May 2013 11:17:01 +0600 |
parents | 39f42990698f |
children | 0aeac0b9ca30 |
comparison
equal
deleted
inserted
replaced
1047:76ce871b0076 | 1048:d36681a9e4f8 |
---|---|
1 #include <assert.h> | |
2 | |
1 #include "CShow.h" | 3 #include "CShow.h" |
2 | 4 |
3 #include "VideoPlayer.h" | 5 #include "VideoPlayer.h" |
4 #include "Mouse.h" | 6 #include "Mouse.h" |
5 | 7 |
6 void CShow::PlayMovie( MovieType eVideo, bool bShowMouseAfterPlayback ) | 8 void CShow::PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback) |
7 { | 9 { |
8 int v3; // edx@5 | 10 if (bNoVideo) return; |
9 const char *Name; // ecx@5 | |
10 //std::string v5; // [sp-18h] [bp-24h]@4 | |
11 //signed int v6; // [sp-Ch] [bp-18h]@10 | |
12 int ScreenSizeFlag; // [sp-8h] [bp-14h]@4 | |
13 //int v8; // [sp-4h] [bp-10h]@4 | |
14 //char v9; // [sp+0h] [bp-Ch]@14 | |
15 //char v10; // [sp+4h] [bp-8h]@4 | |
16 //int a3; // [sp+Bh] [bp-1h]@14 | |
17 | 11 |
18 if (bNoVideo) | 12 switch (eVideo) |
19 return; | 13 { |
14 case MOVIE_3DOLogo: VideoPlayer::MovieLoop("3dologo", 0, 0, 1); break; | |
15 case MOVIE_NWCLogo: VideoPlayer::MovieLoop("new world logo", 0, 1, 1); break; | |
16 case MOVIE_JVC: VideoPlayer::MovieLoop("jvc", 0, 1, 1); break; | |
17 case MOVIE_Intro: VideoPlayer::MovieLoop("Intro", 0, 1, 1); break; | |
18 case MOVIE_Emerald: VideoPlayer::MovieLoop("Intro Post", 0, 1, 1); break; | |
19 case MOVIE_Death: VideoPlayer::MovieLoop("losegame", 2, 1, 1); break; | |
20 case MOVIE_Outro: VideoPlayer::MovieLoop("end_seq1", 20, 1, 1); break; | |
20 | 21 |
21 if (pAsyncMouse) | |
22 pAsyncMouse->Suspend(); | |
23 switch ( eVideo ) | |
24 { | |
25 case MOVIE_Invalid: | |
26 MessageBoxW(nullptr, L"No movie", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:40", 0); | |
27 break; | |
28 case MOVIE_3DOLogo: | |
29 ScreenSizeFlag = 0; | |
30 v3 = 0; | |
31 Name = "3dologo"; | |
32 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
33 break; | |
34 case MOVIE_NWCLogo: | |
35 ScreenSizeFlag = 1; | |
36 v3 = 0; | |
37 Name = "new world logo"; | |
38 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
39 break; | |
40 case MOVIE_JVC: | |
41 ScreenSizeFlag = 1; | |
42 v3 = 0; | |
43 Name = "jvc"; | |
44 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
45 break; | |
46 case MOVIE_Intro: | |
47 ScreenSizeFlag = 1; | |
48 v3 = 0; | |
49 Name = "Intro"; | |
50 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
51 break; | |
52 case MOVIE_Emerald: | |
53 ScreenSizeFlag = 1; | |
54 v3 = 0; | |
55 Name = "Intro Post"; | |
56 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
57 break; | |
58 case MOVIE_Death: | |
59 ScreenSizeFlag = 1; | |
60 v3 = 2; | |
61 Name = "losegame"; | |
62 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
63 break; | |
64 case MOVIE_Outro: | |
65 ScreenSizeFlag = 1; | |
66 v3 = 20; | |
67 Name = "end_seq1"; | |
68 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1); | |
69 break; | |
70 default: | 22 default: |
71 MessageBoxW(nullptr, L"Invalid movie requested in CShow::Run()", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:72", 0); | 23 assert(false && "Invalid movie requested in " __FUNCTION__); |
72 break; | 24 break; |
73 } | 25 } |
74 if ( bShowMouseAfterPlayback ) | |
75 { | |
76 if (pAsyncMouse) | |
77 pAsyncMouse->Resume(); | |
78 } | |
79 } | 26 } |
80 | 27 |