mirror of
https://github.com/glest/glest-source.git
synced 2025-08-08 17:36:30 +02:00
- fixed xml loading via rapidxml for some scenarios that had embeddex xml comments in lua
- added automation abilities for automated testing with automated saved games
This commit is contained in:
@@ -214,6 +214,8 @@ void updatePathClimbingParts(string &path);
|
||||
string formatPath(string path);
|
||||
|
||||
string replaceAll(string& context, const string& from, const string& to);
|
||||
vector<char> replaceAllBetweenTokens(vector<char>& context, const string startToken, const string endToken, const string newText, bool removeTokens=true);
|
||||
string replaceAllBetweenTokens(string& context, const string startToken, const string endToken, const string newText, bool removeTokens=true);
|
||||
bool removeFile(string file);
|
||||
bool renameFile(string oldFile, string newFile);
|
||||
void removeFolder(const string path);
|
||||
|
@@ -27,6 +27,7 @@ const char *GAME_ARGS[] = {
|
||||
|
||||
"--autostart-lastgame",
|
||||
"--load-saved-game",
|
||||
"--auto-test",
|
||||
"--connecthost",
|
||||
"--starthost",
|
||||
"--headless-server-mode",
|
||||
@@ -79,6 +80,7 @@ enum GAME_ARG_TYPE {
|
||||
|
||||
GAME_ARG_AUTOSTART_LASTGAME,
|
||||
GAME_ARG_AUTOSTART_LAST_SAVED_GAME,
|
||||
GAME_ARG_AUTO_TEST,
|
||||
GAME_ARG_CLIENT,
|
||||
GAME_ARG_SERVER,
|
||||
GAME_ARG_MASTERSERVER_MODE,
|
||||
@@ -147,6 +149,14 @@ void printParameterHelp(const char *argv0, bool foundInvalidArgs) {
|
||||
printf("\n \t\tWhere x is an optional name of the saved game file to load.");
|
||||
printf("\n \t\tIf x is not specified we load the last game that was saved.");
|
||||
|
||||
printf("\n%s=x,y,z\t\t\tRun in auto test mode.",GAME_ARGS[GAME_ARG_AUTO_TEST]);
|
||||
printf("\n \t\tWhere x is an optional maximum # seconds to play.");
|
||||
printf("\n \t\tIf x is not specified the default is 1200 seconds (20 minutes).");
|
||||
printf("\n \t\tWhere y is an optional game settings file to play.");
|
||||
printf("\n \t\tIf y is not specified (or is empty) then auto test cycles through playing scenarios.");
|
||||
printf("\n \t\tWhere z is the word exit indicating the game should exit after the game is finished or the time runs out.");
|
||||
printf("\n \t\tIf z is not specified (or is empty) then auto test continues to cycle.");
|
||||
|
||||
printf("\n%s=x\t\t\tAuto connect to host server at IP or hostname x",GAME_ARGS[GAME_ARG_CLIENT]);
|
||||
printf("\n%s\t\t\tAuto create a host server.",GAME_ARGS[GAME_ARG_SERVER]);
|
||||
|
||||
|
Reference in New Issue
Block a user