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
|
|
44 if (pAsyncMouse)
|
|
45 pAsyncMouse->Suspend();
|
|
46 switch ( eVideo )
|
|
47 {
|
|
48 case MOVIE_Invalid:
|
|
49 MessageBoxW(nullptr, L"No movie", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:40", 0);
|
|
50 break;
|
|
51 case MOVIE_3DOLogo:
|
|
52 ScreenSizeFlag = 0;
|
|
53 v3 = 0;
|
|
54 Name = "3dologo";
|
227
|
55 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
56 break;
|
|
57 case MOVIE_NWCLogo:
|
|
58 ScreenSizeFlag = 1;
|
|
59 v3 = 0;
|
|
60 Name = "new world logo";
|
227
|
61 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
62 break;
|
|
63 case MOVIE_JVC:
|
|
64 ScreenSizeFlag = 1;
|
|
65 v3 = 0;
|
|
66 Name = "jvc";
|
227
|
67 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
68 break;
|
|
69 case MOVIE_Intro:
|
|
70 ScreenSizeFlag = 1;
|
|
71 v3 = 0;
|
|
72 Name = "Intro";
|
227
|
73 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
74 break;
|
|
75 case MOVIE_Emerald:
|
|
76 ScreenSizeFlag = 1;
|
|
77 v3 = 0;
|
|
78 Name = "Intro Post";
|
227
|
79 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
80 break;
|
|
81 case MOVIE_Death:
|
|
82 ScreenSizeFlag = 1;
|
|
83 v3 = 2;
|
|
84 Name = "losegame";
|
227
|
85 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
86 break;
|
|
87 case MOVIE_Outro:
|
|
88 ScreenSizeFlag = 1;
|
|
89 v3 = 20;
|
|
90 Name = "end_seq1";
|
227
|
91 VideoPlayer::MovieLoop(Name, v3, ScreenSizeFlag, 1);
|
0
|
92 break;
|
|
93 default:
|
|
94 MessageBoxW(nullptr, L"Invalid movie requested in CShow::Run()", L"E:\\WORK\\MSDEV\\MM7\\MM7\\Code\\Show.cpp:72", 0);
|
|
95 break;
|
|
96 }
|
|
97 if ( bShowMouseAfterPlayback )
|
|
98 {
|
|
99 if (pAsyncMouse)
|
|
100 pAsyncMouse->Resume();
|
|
101 }
|
|
102 }
|
|
103
|
|
104
|
|
105 void (__thiscall ***vdestructor_ptr)(CShow *, bool);
|
|
106 };
|
|
107 #pragma pack(pop) |