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