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