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;
|
2014-11-18 18:59:45 +01:00
|
|
|
extern const string lastCompatibleSaveGameVersionString;
|
2011-01-20 16:56:30 +01:00
|
|
|
extern const string networkVersionString;
|
|
|
|
|
2011-11-23 09:00:09 +01:00
|
|
|
void initSpecialStrings();
|
2011-01-20 16:56:30 +01:00
|
|
|
string getCrashDumpFileName();
|
2014-12-30 21:16:35 +01:00
|
|
|
string getPlatformTypeNameString();
|
|
|
|
string getPlatformArchTypeNameString();
|
2011-01-20 16:56:30 +01:00
|
|
|
string getPlatformNameString();
|
2013-11-29 22:13:30 +01:00
|
|
|
string getGITRevisionString();
|
|
|
|
string getRAWGITRevisionString();
|
2011-01-20 16:56:30 +01:00
|
|
|
string getCompilerNameString();
|
|
|
|
string getNetworkVersionString();
|
2013-11-29 22:13:30 +01:00
|
|
|
string getNetworkVersionGITString();
|
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
|
|
|
|
2017-10-10 08:09:52 +02:00
|
|
|
string getGameReadWritePath(const string &lookupKey="");
|
2011-11-02 18:17:28 +01:00
|
|
|
string getGameCustomCoreDataPath(string originalBasePath, string uniqueFilePath);
|
2011-01-20 16:56:30 +01:00
|
|
|
|
2014-12-31 00:05:24 +01:00
|
|
|
bool upgradeFilesInTemp();
|
|
|
|
|
2011-01-20 16:56:30 +01:00
|
|
|
}}//end namespace
|
|
|
|
|
|
|
|
#endif
|