_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

Macros | Functions
stratagus-game-launcher.h File Reference
#include <sys/types.h>
#include "stratagus-gameutils.h"

Go to the source code of this file.

Macros

#define GAME_NAME
 
#define GAME_CD
 
#define GAME
 
#define DATA_PATH
 
#define SCRIPTS_PATH
 
#define STRATAGUS_BIN
 
#define GAME_SHOULD_EXTRACT_AGAIN   false
 
#define TITLE_PNG   "%s\\graphics\\ui\\title.png"
 
#define REGKEY   "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Stratagus"
 
#define TITLE   GAME_NAME
 
#define EXTRACTOR_NOT_FOUND   GAME_NAME " could not find its extraction tool.\n" EXTRACTOR_TOOL "!\n"
 
#define STRATAGUS_NOT_FOUND   "Stratagus is not installed.\nYou need Stratagus to run " GAME_NAME "!\n"
 
#define DATA_NOT_EXTRACTED   GAME_NAME " data was not extracted, is corrupted, or outdated.\nYou need to extract it from original " GAME_CD "."
 

Functions

static void SetUserDataPath (char *data_path)
 
int check_version (char *tool_path, char *data_path)
 
static void ExtractData (char *extractor_tool, char *const extractor_args[], char *destination, char *scripts_path, int force=0, char *datafileCstr=NULL)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ DATA_NOT_EXTRACTED

#define DATA_NOT_EXTRACTED   GAME_NAME " data was not extracted, is corrupted, or outdated.\nYou need to extract it from original " GAME_CD "."

◆ DATA_PATH

#define DATA_PATH

Path to game data directory

◆ EXTRACTOR_NOT_FOUND

#define EXTRACTOR_NOT_FOUND   GAME_NAME " could not find its extraction tool.\n" EXTRACTOR_TOOL "!\n"

◆ GAME

#define GAME

Short name of game (lower ascii chars without space)

◆ GAME_CD

#define GAME_CD

Full name of data CD

◆ GAME_NAME

#define GAME_NAME

Full name of your Game

◆ GAME_SHOULD_EXTRACT_AGAIN

#define GAME_SHOULD_EXTRACT_AGAIN   false

◆ REGKEY

#define REGKEY   "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Stratagus"

◆ SCRIPTS_PATH

#define SCRIPTS_PATH

Path to game scripts directory

◆ STRATAGUS_BIN

#define STRATAGUS_BIN

Path to stratagus executable binary

◆ STRATAGUS_NOT_FOUND

#define STRATAGUS_NOT_FOUND   "Stratagus is not installed.\nYou need Stratagus to run " GAME_NAME "!\n"

◆ TITLE

#define TITLE   GAME_NAME

◆ TITLE_PNG

#define TITLE_PNG   "%s\\graphics\\ui\\title.png"

OPTIONAL: Path to title screen (for testing if data was extracted)

Function Documentation

◆ check_version()

int check_version ( char *  tool_path,
char *  data_path 
)

◆ ExtractData()

static void ExtractData ( char *  extractor_tool,
char *const  extractor_args[],
char *  destination,
char *  scripts_path,
int  force = 0,
char *  datafileCstr = NULL 
)
static

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ SetUserDataPath()

static void SetUserDataPath ( char *  data_path)
static
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.