1 /*
2 Copyright (C) 1997-2001 Id Software, Inc.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
13 See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 //
21 // rf_video.c
22 // Cinematic (Quake II CIN and Quake III RoQ) playback and handling
23 //
24
25 #include "rf_local.h"
26
27 /*
28 ==================
29 R_StopCinematic
30 ==================
31 */
R_StopCinematic(cinematic_t * cin)32 void R_StopCinematic (cinematic_t *cin)
33 {
34 }
35
36
37 /*
38 ==================
39 R_PlayCinematic
40 ==================
41 */
R_PlayCinematic(cinematic_t * cin)42 void R_PlayCinematic (cinematic_t *cin)
43 {
44 // int fileLen;
45 roqChunk_t *chunk = &cin->roqChunk;
46
47 cin->width = cin->height = 0;
48 // fileLen = FS_OpenFile (cin->name, cin->fileNum, FS_MODE_READ_BINARY);
49 if (!cin->fileNum) {
50 cin->time = 0;
51 return;
52 }
53
54 // Read the header
55 // RoQ_ReadChunk (cin);
56 if (chunk->id != RoQ_HEADER1 || chunk->id != RoQ_HEADER2 || chunk->id != RoQ_HEADER3) {
57 R_StopCinematic (cin);
58 cin->time = 0;
59 return;
60 }
61 }
62