forked from Wargus/wargus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wargus.cpp
68 lines (54 loc) · 2.79 KB
/
wargus.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
wargus.c - Wargus Game Launcher
Copyright (C) 2010-2011 Pali Rohár <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "wargus.h"
#define GAME_NAME "Wargus"
#define GAME_CD "Warcraft II DOS REZDAT.WAR or BNE INSTALL.MPQ/INSTALL.EXE file"
#define GAME_CD_FILE_PATTERNS "REZDAT.WAR", "rezdat.war", "War Resources", "INSTALL.EXE", "Install.exe", "Install.mpq", "INSTALL.MPQ", "install.exe", "install.mpq"
#define GAME "wargus"
#define EXTRACTOR_TOOL "wartool"
#define EXTRACTOR_ARGS "-v -r"
#define CHECK_EXTRACTED_VERSION 1
#define EXTRACTION_FILES REEXTRACT_MARKER_FILE
#define __wargus_contrib__ "campaigns", "campaigns", \
"contrib", "graphics/ui", \
"maps", "maps", \
"shaders", "shaders", \
"scripts", "scripts"
// ":optional:", \
// "music/TimGM6mb.sf2", "music/TimGM6mb.sf2"
#define CONTRIB_DIRECTORIES { __wargus_contrib__, NULL }
#define GAME_SHOULD_EXTRACT_AGAIN (tinyfd_messageBox("Extract more?", \
"Extract from an additional expansion CD?", \
"yesno", \
"question", \
1))
const char* SRC_PATH() { return __FILE__; }
#ifdef WIN32
#define TITLE_PNG "%s\\graphics\\ui\\title.png"
#else
#define TITLE_PNG "%s/graphics/ui/title.png"
#endif
#undef DATA_PATH
#define DATA_PATH "invalid"
#include <stratagus-game-launcher.h>