annotate CShow.cpp @ 1016:c45d51b3f4f4

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