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

Stratagus Game Launcher

Stratagus Game Launcher is C code for generating launcher for any Stratagus game. Game launcher for concrete game check if game data exists in default Stratagus location and spawn Stratagus process with correct game data location. If does not exist it show GUI or console error message.

Before including this header, you need to define:

GAME_NAME

GAME_CD

GAME

On Non Windows system you need to specify also paths:

DATA_PATH

SCRIPTS_PATH

STRATAGUS_BIN

On Windows paths are reading from InstallLocation key in Uninstall section: Software\Microsoft\Windows\CurrentVersion\Uninstall\Stratagus

Example use of code:

 #define GAME_NAME "My Game Name"
 #define GAME_CD "Original Game CD Name"
 #define GAME "my_game"

 #ifndef WIN32
 #define DATA_PATH "/usr/share/games/stratagus/my_game"
 #define SCRIPTS_PATH "/usr/share/games/stratagus/my_game"
 #define STRATAGUS_BIN "/usr/games/stratagus"
 #endif

 #include <stratagus-game-launcher.h>
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.