From 3a824eb859cc45712038ffeb82821e99eb436e87 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 17 Feb 2014 11:51:57 -0800 Subject: [PATCH] Do not try to load a default lua file. The default behavior is now that the game goes to the console without loading setup.lua, unless setup.lua is specified in eressea.ini as the script to be run. Should add an option to override this from the command line, too. --- src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index cd0e4053c..de537e874 100644 --- a/src/main.c +++ b/src/main.c @@ -38,7 +38,7 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include static const char *logfile= "eressea.log"; -static const char *luafile = "setup.lua"; +static const char *luafile = 0; static const char *entry_point = NULL; static const char *inifile = "eressea.ini"; static int memdebug = 0; @@ -60,7 +60,7 @@ static void parse_config(const char *filename) /* excerpt from [config] (the rest is used in bindings.c) */ game_name = iniparser_getstring(d, "config:game", game_name); } else { - log_error("could not open configuration file %s\n", filename); + log_warning("could not open configuration file %s\n", filename); } global.inifile = d; }