summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-05-01 21:27:58 +0300
committerJared Adams <jaxad0127@gmail.com>2010-05-01 17:06:27 -0600
commit844e9a7a72faca6a212e788a3adc45e17f41dca6 (patch)
treef488e4c149687ea3d60f39c042c241df7275b581 /src/main.cpp
parentc22ea2f169f58e765fc699fcd71bfd3a3cd4f859 (diff)
downloadmana-844e9a7a72faca6a212e788a3adc45e17f41dca6.tar.gz
mana-844e9a7a72faca6a212e788a3adc45e17f41dca6.tar.bz2
mana-844e9a7a72faca6a212e788a3adc45e17f41dca6.tar.xz
mana-844e9a7a72faca6a212e788a3adc45e17f41dca6.zip
Add chat logging.
Add option in players setup page. Add command line option. Signed-off-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 56019976..404a1989 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -56,6 +56,7 @@ static void printHelp()
<< _(" -u --skip-update : Skip the update downloads") << endl
<< _(" -d --data : Directory to load game data from") << endl
<< _(" -L --localdata-dir : Directory to use as local data directory") << endl
+ << _(" -l --chat-log-dir : Chat log dir to use") << endl
<< _(" --screenshot-dir : Directory to store screenshots") << endl
#ifdef USE_OPENGL
<< _(" --no-opengl : Disable OpenGL for this session") << endl
@@ -86,6 +87,7 @@ static void parseOptions(int argc, char *argv[], Client::Options &options)
{ "skip-update", no_argument, 0, 'u' },
{ "username", required_argument, 0, 'U' },
{ "no-opengl", no_argument, 0, 'O' },
+ { "chat-log-dir", required_argument, 0, 'l' },
{ "version", no_argument, 0, 'v' },
{ "screenshot-dir", required_argument, 0, 'i' },
{ 0 }
@@ -144,6 +146,8 @@ static void parseOptions(int argc, char *argv[], Client::Options &options)
case 'O':
options.noOpenGL = true;
break;
+ case 'l':
+ options.chatLogDir = std::string(optarg);
case 'i':
options.screenshotDir = optarg;
break;