mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Save debug.txt to build dir for RUN_IN_PLACE build (#7615)
This commit is contained in:
parent
03f89e8ffc
commit
5aa865e56b
@ -532,11 +532,8 @@ static bool read_config_file(const Settings &cmd_args)
|
||||
|
||||
static void init_log_streams(const Settings &cmd_args)
|
||||
{
|
||||
#if RUN_IN_PLACE
|
||||
std::string log_filename = DEBUGFILE;
|
||||
#else
|
||||
std::string log_filename = porting::path_user + DIR_DELIM + DEBUGFILE;
|
||||
#endif
|
||||
|
||||
if (cmd_args.exists("logfile"))
|
||||
log_filename = cmd_args.get("logfile");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user