Make the campaign server print a message to stderr...
if it cannot find COPYING.txt.
This commit is contained in:
parent
1b8ea2f80f
commit
31a9bffb4d
1 changed files with 6 additions and 0 deletions
|
@ -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 ©ing = 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()
|
||||
|
|
Loading…
Add table
Reference in a new issue