2011-01-20 16:56:30 +01:00
|
|
|
// ==============================================================
|
|
|
|
// This file is part of Glest (www.glest.org)
|
|
|
|
//
|
2011-12-14 08:40:48 +01:00
|
|
|
// Copyright (C) 2001-2008 Martiño Figueroa
|
2011-01-20 16:56:30 +01:00
|
|
|
//
|
2010-03-22 00:40:35 +01:00
|
|
|
// You can redistribute this code and/or modify it under
|
|
|
|
// the terms of the GNU General Public License as published
|
2011-01-20 16:56:30 +01:00
|
|
|
// by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version
|
|
|
|
// ==============================================================
|
|
|
|
|
|
|
|
#ifndef _GLEST_GAME_GAMEUTIL_H_
|
|
|
|
#define _GLEST_GAME_GAMEUTIL_H_
|
|
|
|
|
2012-04-20 03:04:05 +02:00
|
|
|
#ifdef WIN32
|
|
|
|
#include <winsock2.h>
|
|
|
|
#include <winsock.h>
|
|
|
|
#endif
|
|
|
|
|
2011-01-20 16:56:30 +01:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "util.h"
|
|
|
|
#include "leak_dumper.h"
|
|
|
|
|
|
|
|
using std::string;
|
|
|
|
using Shared::Util::sharedLibVersionString;
|
|
|
|
|
|
|
|
namespace Glest{ namespace Game{
|
|
|
|
|
2011-10-18 03:40:49 +02:00
|
|
|
extern const char *mailString;
|
2011-01-20 16:56:30 +01:00
|
|
|
extern const string glestVersionString;
|
|
|
|
extern const string networkVersionString;
|
|
|
|
|
2011-11-23 09:00:09 +01:00
|
|
|
void initSpecialStrings();
|
2011-01-20 16:56:30 +01:00
|
|
|
string getCrashDumpFileName();
|
|
|
|
string getPlatformNameString();
|
|
|
|
string getSVNRevisionString();
|
|
|
|
string getCompilerNameString();
|
|
|
|
string getNetworkVersionString();
|
2011-04-30 03:05:53 +02:00
|
|
|
string getNetworkVersionSVNString();
|
2011-01-20 16:56:30 +01:00
|
|
|
string getNetworkPlatformFreeVersionString();
|
|
|
|
string getAboutString1(int i);
|
|
|
|
string getAboutString2(int i);
|
|
|
|
string getTeammateName(int i);
|
|
|
|
string getTeammateRole(int i);
|
|
|
|
string getCompileDateTime();
|
|
|
|
|
2011-11-23 09:00:09 +01:00
|
|
|
string formatString(string str);
|
2010-03-22 00:40:35 +01:00
|
|
|
|
2010-12-09 21:41:11 +01:00
|
|
|
string getGameReadWritePath(string lookupKey="");
|
2011-11-02 18:17:28 +01:00
|
|
|
string getGameCustomCoreDataPath(string originalBasePath, string uniqueFilePath);
|
2011-01-20 16:56:30 +01:00
|
|
|
|
|
|
|
}}//end namespace
|
|
|
|
|
|
|
|
#endif
|