From: Holger Schemel Date: Sat, 20 May 2017 18:39:40 +0000 (+0200) Subject: added debug output for scores directory used (global or private) X-Git-Tag: 4.0.1.0~42 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b10d40ccb1a79ec0053848080edf3bcab12b9b67;p=rocksndiamonds.git added debug output for scores directory used (global or private) --- diff --git a/src/libgame/system.c b/src/libgame/system.c index b42c7e98..b5de8c9e 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -107,6 +107,21 @@ void InitScoresInfo() program.global_scores = directoryExists(global_scores_dir); program.many_scores_per_name = !program.global_scores; + if (options.debug) + { + if (program.global_scores) + { + Error(ERR_DEBUG, "Using global, multi-user scores directory '%s'.", + global_scores_dir); + Error(ERR_DEBUG, "Remove to enable single-user scores directory."); + Error(ERR_DEBUG, "(This enables multipe score entries per user.)"); + } + else + { + Error(ERR_DEBUG, "Using private, single-user scores directory."); + } + } + free(global_scores_dir); }