Make the campaign server print a message to stderr...

if it cannot find COPYING.txt.
This commit is contained in:
Elias Pschernig 2007-05-14 19:09:14 +00:00
parent 1b8ea2f80f
commit 31a9bffb4d

View file

@ -20,6 +20,7 @@
#include "serialization/binary_wml.hpp"
#include "serialization/parser.hpp"
#include "wassert.hpp"
#include "game_config.hpp"
#include "SDL.h"
@ -263,6 +264,11 @@ namespace {
config &copying = dir->add_child("file");
copying["name"] = "COPYING.txt";
copying["contents"] = contents;
if (contents.empty()) {
std::cerr << "Could not find " << "data/COPYING.txt" <<
", path is \"" << game_config::path << "\"\n";
}
}
void campaign_server::run()