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

Macros | Functions
stratagus-gameutils.h File Reference
#include <Shlwapi.h>
#include <Shlobj.h>
#include <direct.h>
#include <windows.h>
#include <wincon.h>
#include <process.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string>
#include <vector>
#include <iostream>
#include <sstream>
#include <istream>
#include "stratagus-tinyfiledialogs.h"

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define _CRT_SECURE_NO_WARNINGS
 
#define NTDDI_VERSION   0x05010200
 
#define _WIN32_WINNT   0x0501
 
#define WINVER   0x0501
 
#define PATH_MAX   MAX_PATH
 
#define mkdir(f, m)   _mkdir(f)
 
#define parentdir(x)   PathRemoveFileSpec(x); if (x[strlen(x) - 1] == '\\') x[strlen(x) - 1] = '\0'
 
#define QUOTE   "\""
 
#define BUFF_SIZE   MAX_PATH
 

Functions

void error (const char *title, const char *text)
 
void mkdir_p (const char *path)
 
void copy_dir (const char *source_folder, const char *target_folder)
 
void mkdir_p (const wchar_t *path)
 
void copy_dir (fs::path source_folder, fs::path target_folder)
 
char * GetExtractionLogPath (const char *game_name, char *data_path)
 
wchar_t * GetExtractionLogPath (const wchar_t *game_name, const wchar_t *data_path)
 
void ArgvQuote (const std::wstring &Argument, std::wstring &CommandLine, bool Force)
 
int runCommand (std::wstring &file, std::vector< std::wstring > argv, bool echo=false, std::wstring *outputCommandline=NULL)
 

Macro Definition Documentation

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

◆ _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS

◆ _WIN32_WINNT

#define _WIN32_WINNT   0x0501

◆ BUFF_SIZE

#define BUFF_SIZE   MAX_PATH

◆ mkdir

#define mkdir (   f,
 
)    _mkdir(f)

◆ NTDDI_VERSION

#define NTDDI_VERSION   0x05010200

◆ parentdir

#define parentdir (   x)    PathRemoveFileSpec(x); if (x[strlen(x) - 1] == '\\') x[strlen(x) - 1] = '\0'

◆ PATH_MAX

#define PATH_MAX   MAX_PATH

◆ QUOTE

#define QUOTE   "\""

◆ WINVER

#define WINVER   0x0501

Function Documentation

◆ ArgvQuote()

void ArgvQuote ( const std::wstring &  Argument,
std::wstring &  CommandLine,
bool  Force 
)

◆ copy_dir() [1/2]

void copy_dir ( const char *  source_folder,
const char *  target_folder 
)

◆ copy_dir() [2/2]

void copy_dir ( fs::path  source_folder,
fs::path  target_folder 
)

◆ error()

void error ( const char *  title,
const char *  text 
)

◆ GetExtractionLogPath() [1/2]

char* GetExtractionLogPath ( const char *  game_name,
char *  data_path 
)

◆ GetExtractionLogPath() [2/2]

wchar_t* GetExtractionLogPath ( const wchar_t *  game_name,
const wchar_t *  data_path 
)

◆ mkdir_p() [1/2]

void mkdir_p ( const char *  path)

◆ mkdir_p() [2/2]

void mkdir_p ( const wchar_t *  path)

◆ runCommand()

int runCommand ( std::wstring &  file,
std::vector< std::wstring >  argv,
bool  echo = false,
std::wstring *  outputCommandline = NULL 
)
(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.