Remove some breadcrumbs and fix a comment typo.
This commit is contained in:
parent
82f68c769b
commit
1d1e49fb5b
3 changed files with 1 additions and 4 deletions
|
@ -1602,14 +1602,12 @@ void game_controller::read_game_cfg(const preproc_map& defines, config& cfg, boo
|
|||
std::string oldstyle_cfg = *uc + ".cfg";
|
||||
std::string main_cfg = *uc + "/_main.cfg";
|
||||
std::string toplevel;
|
||||
std::cout << "Checking " << *uc << "\n";
|
||||
if (file_exists(oldstyle_cfg))
|
||||
toplevel = oldstyle_cfg;
|
||||
else if (file_exists(main_cfg))
|
||||
toplevel = main_cfg;
|
||||
else
|
||||
continue;
|
||||
std::cout << "Survived " << toplevel << "\n";
|
||||
|
||||
try {
|
||||
preproc_map user_defines_map(defines_map);
|
||||
|
|
|
@ -68,7 +68,6 @@ std::vector<std::string> available_campaigns()
|
|||
const std::string internal_cfg_file = *i + "/_main.cfg";
|
||||
const std::string external_pbl_file = *i + ".pbl";
|
||||
const std::string internal_pbl_file = *i + "/_server.pbl";
|
||||
std::cout << "Checking " << campaign_dir() + "/" + internal_pbl_file << "\n";
|
||||
if((std::find(files.begin(),files.end(),external_cfg_file) != files.end() || file_exists(campaign_dir() + "/" + internal_cfg_file)) &&
|
||||
(std::find(files.begin(),files.end(),external_pbl_file) != files.end() || (file_exists(campaign_dir() + "/" + internal_pbl_file)))) {
|
||||
res.push_back(*i);
|
||||
|
|
|
@ -110,7 +110,7 @@ if __name__ == "__main__":
|
|||
|
||||
def get_info(name):
|
||||
"""
|
||||
Get info for a locally installed campaign. If expects a direct path
|
||||
Get info for a locally installed campaign. It expects a direct path
|
||||
to the info.cfg file.
|
||||
"""
|
||||
if not os.path.exists(name): return None, None
|
||||
|
|
Loading…
Add table
Reference in a new issue