mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 03:44:00 +02:00
- more cppcheck cleanup, AND some new inernal steam commandline parameters to reset stats and enable debugging
This commit is contained in:
@@ -193,8 +193,8 @@ void findAll(const vector<string> &paths, const string &fileFilter, vector<strin
|
||||
void findAll(const string &path, vector<string> &results, bool cutExtension=false, bool errorOnNotFound=true);
|
||||
vector<string> getFolderTreeContentsListRecursively(const string &path, const string &filterFileExt, bool includeFolders=false, vector<string> *recursiveMap=NULL);
|
||||
|
||||
string getGameVersion();
|
||||
string getGameGITVersion();
|
||||
//string getGameVersion();
|
||||
//string getGameGITVersion();
|
||||
void setGameVersion(const string &version);
|
||||
void setGameGITVersion(const string &git);
|
||||
|
||||
@@ -297,19 +297,19 @@ inline string trim (const string & s, const string & t = SPACES) {
|
||||
return trim_left (trim_right (d, t), t) ;
|
||||
} // end of trim
|
||||
|
||||
string getFullFileArchiveExtractCommand(string fileArchiveExtractCommand,
|
||||
string fileArchiveExtractCommandParameters, string outputpath, string archivename);
|
||||
string getFullFileArchiveCompressCommand(string fileArchiveCompressCommand,
|
||||
string fileArchiveCompressCommandParameters, string archivename, string archivefiles);
|
||||
string getFullFileArchiveExtractCommand(const string &fileArchiveExtractCommand,
|
||||
string fileArchiveExtractCommandParameters, const string &outputpath, const string &archivename);
|
||||
string getFullFileArchiveCompressCommand(const string &fileArchiveCompressCommand,
|
||||
string fileArchiveCompressCommandParameters, const string &archivename, const string &archivefiles);
|
||||
|
||||
bool executeShellCommand(string cmd,int expectedResult=IGNORE_CMD_RESULT_VALUE,ShellCommandOutputCallbackInterface *cb=NULL);
|
||||
string executable_path(const string &exeName,bool includeExeNameInPath=false);
|
||||
|
||||
void saveDataToFile(string filename, string data);
|
||||
void saveDataToFile(string filename, const string &data);
|
||||
|
||||
bool valid_utf8_file(const char* file_name);
|
||||
|
||||
string getFileTextContents(string path);
|
||||
//string getFileTextContents(string path);
|
||||
|
||||
string safeCharPtrCopy(const char *ptr, int maxLength=-1);
|
||||
|
||||
|
@@ -99,6 +99,8 @@ const char *GAME_ARGS[] = {
|
||||
|
||||
"--create-data-archives",
|
||||
"--steam",
|
||||
"--steam-debug",
|
||||
"--steam-reset-stats",
|
||||
|
||||
"--verbose"
|
||||
|
||||
@@ -184,6 +186,8 @@ enum GAME_ARG_TYPE {
|
||||
|
||||
GAME_ARG_CREATE_DATA_ARCHIVES,
|
||||
GAME_ARG_STEAM,
|
||||
GAME_ARG_STEAM_DEBUG,
|
||||
GAME_ARG_STEAM_RESET_STATS,
|
||||
|
||||
GAME_ARG_VERBOSE_MODE,
|
||||
|
||||
|
@@ -59,7 +59,7 @@ public:
|
||||
// =====================================================
|
||||
// Misc
|
||||
// =====================================================
|
||||
void message(string message,bool isNonGraphicalModeEnabled, string writepath);
|
||||
void message(const string &message,bool isNonGraphicalModeEnabled, const string &writepath);
|
||||
void exceptionMessage(const exception &excp);
|
||||
|
||||
string getCommandLine();
|
||||
|
@@ -238,9 +238,9 @@ bool isKeyPressed(SDL_Keycode compareKey, SDL_KeyboardEvent input, vector<int> m
|
||||
bool isKeyPressed(SDL_Keycode compareKey, SDL_KeyboardEvent input, bool modifiersAllowed=true);
|
||||
|
||||
SDL_Keycode extractKeyPressed(SDL_KeyboardEvent input);
|
||||
bool isAllowedInputTextKey(SDL_Keycode key);
|
||||
//bool isAllowedInputTextKey(SDL_Keycode key);
|
||||
|
||||
wchar_t extractKeyPressedUnicode(SDL_KeyboardEvent input);
|
||||
//wchar_t extractKeyPressedUnicode(SDL_KeyboardEvent input);
|
||||
vector<int> extractKeyPressedUnicodeLength(string text);
|
||||
bool isAllowedInputTextKey(wchar_t &key);
|
||||
|
||||
|
Reference in New Issue
Block a user