annotate CShow.h @ 145:dac041fc74e8

19.11.12
author Ritor1
date Mon, 19 Nov 2012 09:41:10 +0600
parents 17150bdf321e
children d8aa322a19e5
rev   line source
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
1 #pragma once
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
2 #include "VideoPlayer.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
3 #include "Mouse.h"
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
5
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
6
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
7 /* 302 */
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
8 enum MovieType
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
9 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
10 MOVIE_Invalid = 0x0,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
11 MOVIE_3DOLogo = 0x1,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
12 MOVIE_NWCLogo = 0x2,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
13 MOVIE_JVC = 0x3,
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
14 MOVIE_Emerald = 0x4,
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
15 MOVIE_Intro = 0x5,
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
16 MOVIE_Death = 0x6,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
17 MOVIE_Outro = 0x7,
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
18 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
19
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
20
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
21 #pragma pack(push, 1)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
22 struct CShow
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
23 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
24 //----- (004A9507) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
25 CShow() {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
26
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
27 //----- (004A9510) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
28 virtual ~CShow() {}
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
29
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
30
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
31 //----- (004A952D) --------------------------------------------------------
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
32 void CShow::PlayMovie(MovieType eVideo, bool bShowMouseAfterPlayback)
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
33 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
34 int v3; // edx@5
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
35 const char *Name; // ecx@5
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
36 std::string v5; // [sp-18h] [bp-24h]@4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
37 signed int v6; // [sp-Ch] [bp-18h]@10
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
38 int ScreenSizeFlag; // [sp-8h] [bp-14h]@4
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
39 int v8; // [sp-4h] [bp-10h]@4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
40 char v9; // [sp+0h] [bp-Ch]@14
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
41 char v10; // [sp+4h] [bp-8h]@4
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
42 int a3; // [sp+Bh] [bp-1h]@14
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
43
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
44 if (pAsyncMouse)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
45 pAsyncMouse->Suspend();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
46 switch ( eVideo )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
47 {
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
48 case MOVIE_Invalid:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
49 MessageBoxW(nullptr, L"No movie", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:40", 0);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
50 break;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
51 case MOVIE_3DOLogo:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
52 v8 = 1;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
53 ScreenSizeFlag = 0;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
54 v3 = 0;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
55 Name = "3dologo";
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
56 goto LABEL_13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
57 case MOVIE_NWCLogo:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
58 v8 = 1;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
59 ScreenSizeFlag = 1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
60 v3 = 0;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
61 Name = "new world logo";
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
62 goto LABEL_13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
63 case MOVIE_JVC:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
64 v8 = 1;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
65 ScreenSizeFlag = 1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
66 v3 = 0;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
67 Name = "jvc";
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
68 goto LABEL_13;
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
69 case MOVIE_Intro:
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
70 v8 = 1;
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
71 ScreenSizeFlag = 1;
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
72 v3 = 0;
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
73 Name = "Intro";
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
74 goto LABEL_13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
75 case MOVIE_Emerald:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
76 v8 = 1;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
77 ScreenSizeFlag = 1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
78 v3 = 0;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
79 Name = "Intro Post";
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
80 goto LABEL_13;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
81 case MOVIE_Death:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
82 v8 = 1;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
83 ScreenSizeFlag = 1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
84 v6 = 2;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
85 Name = "losegame";
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
86 goto LABEL_12;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
87 case MOVIE_Outro:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
88 v8 = 1;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
89 ScreenSizeFlag = 1;
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
90 v6 = 20;
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
91 Name = "end_seq1";
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
92 LABEL_12:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
93 v3 = v6;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
94 LABEL_13:
13
17150bdf321e исправлено неполное воспроизведение роликов, бинков
Серик@ПончиК
parents: 2
diff changeset
95 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, v8);
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
96 break;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
97 default:
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
98 MessageBoxW(nullptr, L"Invalid movie requested in CShow::Run()", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:72", 0);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
99 break;
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
100 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
101 if ( bShowMouseAfterPlayback )
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
102 {
2
2ca04ccb612a NoCD, main menu, various
Nomad
parents: 0
diff changeset
103 if (pAsyncMouse)
0
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
104 pAsyncMouse->Resume();
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
105 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
106 }
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
107
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
108
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
109 void (__thiscall ***vdestructor_ptr)(CShow *, bool);
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
110 };
8b8875f5b359 Initial commit
Nomad
parents:
diff changeset
111 #pragma pack(pop)