comparison CShow.cpp @ 1016:c45d51b3f4f4

Included header files cleanup
author Grumpy7
date Sun, 19 May 2013 17:55:19 +0200
parents
children 306ec23b37df
comparison
equal deleted inserted replaced
1003:9318dd3f3711 1016:c45d51b3f4f4
1 #include "CShow.h"
2
3 #include "VideoPlayer.h"
4 #include "Mouse.h"
5
6 void CShow::PlayMovie( MovieType eVideo, bool bShowMouseAfterPlayback )
7 {
8 int v3; // edx@5
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
18 if (bNoVideo)
19 return;
20
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:
71 MessageBoxW(nullptr, L"Invalid movie requested in CShow::Run()", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:72", 0);
72 break;
73 }
74 if ( bShowMouseAfterPlayback )
75 {
76 if (pAsyncMouse)
77 pAsyncMouse->Resume();
78 }
79 }
80