From d75fe8f32607b967c049fa903da021e601a8cfc6 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 22 Nov 2022 20:07:17 -0300 Subject: [PATCH] Change temporary logging behavior so as to not leave Mac users out --- src/86box.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/86box.c b/src/86box.c index be420bcee..222da5f3a 100644 --- a/src/86box.c +++ b/src/86box.c @@ -598,8 +598,10 @@ usage: } /* TEMPORARY */ - if (!log_path[0]) - strcpy(log_path, "86box.log"); + if (!log_path[0]) { + strcpy(log_path, exe_path); + strcat(log_path, "86box.log"); + } /* One argument (config file) allowed. */ if (c < argc) {