campaignd: Print version number and config file path on startup

This commit is contained in:
Ignacio R. Morelle 2015-07-08 20:50:09 -03:00
parent 14a5716b53
commit a503066838

View file

@ -140,6 +140,8 @@ server::~server()
int server::load_config()
{
LOG_CS << "Reading configuration from " << cfg_file_ << "...\n";
filesystem::scoped_istream in = filesystem::istream_file(cfg_file_);
read(cfg_, *in);
@ -826,7 +828,7 @@ int main(int argc, char**argv)
lg::timestamps(true);
try {
printf("argc %d argv[0] %s 1 %s\n",argc,argv[0],argv[1]);
std::cerr << "Wesnoth campaignd v" << game_config::revision << " starting...\n";
const std::string& cfg_path = filesystem::normalize_path("server.cfg");