Always run dfhack.init-example if dfhack.init doesn't exist

This previously only happened if no files matching *dfhack*.init
existed
develop
lethosor 2015-12-27 16:39:10 -05:00
parent e075a06486
commit c23ac50250
1 changed files with 1 additions and 1 deletions

@ -1256,7 +1256,7 @@ static void run_dfhack_init(color_ostream &out, Core *core)
std::vector<std::string> prefixes(1, "dfhack");
size_t count = loadScriptFiles(core, out, prefixes, ".");
if (!count)
if (!count || !Filesystem::isfile("dfhack.init"))
{
core->runCommand(out, "gui/no-dfhack-init");
core->loadScriptFile(out, "dfhack.init-example", true);