X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=5ccf3fb3784650147bc1f70aed77af72925dd0bb;hb=cea8726203188984c5d94dc15934d1e186d18c37;hp=b42c7e9823ce2a209c10a980a5b0e750e5c65a14;hpb=ff84e204dde10499c64dace35dc5c4a017b70765;p=rocksndiamonds.git diff --git a/src/libgame/system.c b/src/libgame/system.c index b42c7e98..5ccf3fb3 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); } @@ -1605,7 +1620,7 @@ void InitJoysticks() /* always start with reliable default values */ joystick.status = JOYSTICK_NOT_AVAILABLE; for (i = 0; i < MAX_PLAYERS; i++) - joystick.fd[i] = -1; /* joystick device closed */ + joystick.nr[i] = -1; /* no joystick configured */ SDLInitJoysticks(); } @@ -1614,3 +1629,8 @@ boolean ReadJoystick(int nr, int *x, int *y, boolean *b1, boolean *b2) { return SDLReadJoystick(nr, x, y, b1, b2); } + +boolean CheckJoystickOpened(int nr) +{ + return SDLCheckJoystickOpened(nr); +}