#include <sys/types.h>
#include "stratagus-gameutils.h"
Go to the source code of this file.
|
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[]) |
|
◆ 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
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
Short name of game (lower ascii chars without space)
◆ GAME_CD
◆ GAME_NAME
◆ GAME_SHOULD_EXTRACT_AGAIN
#define GAME_SHOULD_EXTRACT_AGAIN false |
◆ REGKEY
#define REGKEY "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Stratagus" |
◆ SCRIPTS_PATH
Path to game scripts directory
◆ 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
◆ TITLE_PNG
#define TITLE_PNG "%s\\graphics\\ui\\title.png" |
OPTIONAL: Path to title screen (for testing if data was extracted)
◆ 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