| 1 |
// |
| 2 |
// Copyright(C) 1993-1996 Id Software, Inc. |
| 3 |
// Copyright(C) 1993-2008 Raven Software |
| 4 |
// Copyright(C) 2005-2014 Simon Howard |
| 5 |
// |
| 6 |
// This program is free software; you can redistribute it and/or |
| 7 |
// modify it under the terms of the GNU General Public License |
| 8 |
// as published by the Free Software Foundation; either version 2 |
| 9 |
// of the License, or (at your option) any later version. |
| 10 |
// |
| 11 |
// This program is distributed in the hope that it will be useful, |
| 12 |
// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 |
// GNU General Public License for more details. |
| 15 |
// |
| 16 |
|
| 17 |
#include "s_sound.h" |
| 18 |
#include "g_game.h" |
| 19 |
#include "d_main.h" |
| 20 |
|
| 21 |
static void Hexen_D_DrawTitle(const char *_x) |
| 22 |
{ |
| 23 |
D_SetPage("TITLE", 280, 0); |
| 24 |
S_StartSongName("hexen", true); |
| 25 |
} |
| 26 |
|
| 27 |
static void Hexen_D_DrawTitle2(const char *_x) |
| 28 |
{ |
| 29 |
D_SetPage("TITLE", 210, 0); |
| 30 |
} |
| 31 |
|
| 32 |
static void Hexen_D_DrawCredits(const char *_x) |
| 33 |
{ |
| 34 |
D_SetPage("CREDIT", 200, 0); |
| 35 |
} |
| 36 |
|
| 37 |
const demostate_t hexen_demostates[][4] = |
| 38 |
{ |
| 39 |
{ |
| 40 |
{ Hexen_D_DrawTitle, NULL }, |
| 41 |
{ Hexen_D_DrawTitle, NULL }, |
| 42 |
{ Hexen_D_DrawTitle, NULL }, |
| 43 |
{ Hexen_D_DrawTitle, NULL }, |
| 44 |
}, |
| 45 |
|
| 46 |
{ |
| 47 |
{ Hexen_D_DrawTitle2, NULL }, |
| 48 |
{ Hexen_D_DrawTitle2, NULL }, |
| 49 |
{ Hexen_D_DrawTitle2, NULL }, |
| 50 |
{ Hexen_D_DrawTitle2, NULL }, |
| 51 |
}, |
| 52 |
|
| 53 |
{ |
| 54 |
{ G_DeferedPlayDemo, "demo1" }, |
| 55 |
{ G_DeferedPlayDemo, "demo1" }, |
| 56 |
{ G_DeferedPlayDemo, "demo1" }, |
| 57 |
{ G_DeferedPlayDemo, "demo1" }, |
| 58 |
}, |
| 59 |
|
| 60 |
{ |
| 61 |
{ Hexen_D_DrawCredits, NULL }, |
| 62 |
{ Hexen_D_DrawCredits, NULL }, |
| 63 |
{ Hexen_D_DrawCredits, NULL }, |
| 64 |
{ Hexen_D_DrawCredits, NULL }, |
| 65 |
}, |
| 66 |
|
| 67 |
{ |
| 68 |
{ G_DeferedPlayDemo, "demo2" }, |
| 69 |
{ G_DeferedPlayDemo, "demo2" }, |
| 70 |
{ G_DeferedPlayDemo, "demo2" }, |
| 71 |
{ G_DeferedPlayDemo, "demo2" }, |
| 72 |
}, |
| 73 |
|
| 74 |
{ |
| 75 |
{ Hexen_D_DrawCredits, NULL }, |
| 76 |
{ Hexen_D_DrawCredits, NULL }, |
| 77 |
{ Hexen_D_DrawCredits, NULL }, |
| 78 |
{ Hexen_D_DrawCredits, NULL }, |
| 79 |
}, |
| 80 |
|
| 81 |
{ |
| 82 |
{ G_DeferedPlayDemo, "demo3" }, |
| 83 |
{ G_DeferedPlayDemo, "demo3" }, |
| 84 |
{ G_DeferedPlayDemo, "demo3" }, |
| 85 |
{ G_DeferedPlayDemo, "demo3" }, |
| 86 |
}, |
| 87 |
|
| 88 |
{ |
| 89 |
{NULL}, |
| 90 |
{NULL}, |
| 91 |
{NULL}, |
| 92 |
{NULL}, |
| 93 |
} |
| 94 |
}; |