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

gameheaders/stratagus-maemo-extract.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <gtk/gtk.h>
#include <hildon/hildon.h>

Go to the source code of this file.


Defines

#define GAME_NAME
#define GAME_CD
#define GAME_CD_DIR
#define GAME_CD_FILE
#define GAME
#define EXTRACT_BIN
#define DATA_DIR   "/home/user/" GAME_CD_DIR
#define EXTRACT_DIR   "/home/user/MyDocs/stratagus/" GAME
#define EXTRACT_COMMAND   EXTRACT_BIN " " DATA_DIR " " EXTRACT_DIR
#define EXTRACT_INFO   ""
#define DATA_NEED_COPY   "Note: You need the original " GAME_CD "\nto extract the game data files.\nData files are needed to run " GAME_NAME ".\n\nFirst copy " GAME_CD " to folder\n" GAME_CD_DIR "\nthen press OK. " EXTRACT_INFO
#define DATA_FOUND   GAME_CD " data files was found in folder\n" GAME_CD_DIR "\n\nPlease be patient, the data may take\na couple of minutes to extract...\n\nPress OK to start extracting data now."
#define DATA_NOT_FOUND   "Error: " GAME_CD " data files was not found.\n\nCheck if you have file\n" GAME_CD_DIR "/" GAME_CD_FILE
#define EXTRACT_OK   GAME_CD " data files was successfull extracted."
#define EXTRACT_FAILED   "Error: Cannot extract " GAME_CD " data files\nextract program crashed."

Functions

static void message (char *title, char *text, int error)
int main (int argc, char *argv[])

Define Documentation

#define DATA_DIR   "/home/user/" GAME_CD_DIR

#define DATA_FOUND   GAME_CD " data files was found in folder\n" GAME_CD_DIR "\n\nPlease be patient, the data may take\na couple of minutes to extract...\n\nPress OK to start extracting data now."

#define DATA_NEED_COPY   "Note: You need the original " GAME_CD "\nto extract the game data files.\nData files are needed to run " GAME_NAME ".\n\nFirst copy " GAME_CD " to folder\n" GAME_CD_DIR "\nthen press OK. " EXTRACT_INFO

#define DATA_NOT_FOUND   "Error: " GAME_CD " data files was not found.\n\nCheck if you have file\n" GAME_CD_DIR "/" GAME_CD_FILE

#define EXTRACT_BIN

Full path to program which extract data

#define EXTRACT_COMMAND   EXTRACT_BIN " " DATA_DIR " " EXTRACT_DIR

Optional: Full patch to extract program with command line arguments for extracting data If not specified 'EXTRACT_BIN DATA_DIR EXTRACT_DIR' is used

#define EXTRACT_DIR   "/home/user/MyDocs/stratagus/" GAME

#define EXTRACT_FAILED   "Error: Cannot extract " GAME_CD " data files\nextract program crashed."

#define EXTRACT_INFO   ""

Optional: Additional extract data game info Default empty

#define EXTRACT_OK   GAME_CD " data files was successfull extracted."

#define GAME

Short name of game (lower ascii chars without space)

#define GAME_CD

Full name of data CD

#define GAME_CD_DIR

Relative path of /home/user where is data CD

#define GAME_CD_FILE

Filename of one data file

#define GAME_NAME

Full name of your Game


Function Documentation

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

static void message ( char *  title,
char *  text,
int  error 
) [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.