X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Flibgame%2Fsystem.c;h=7321731c75110895a24c6c0380a5036cdf338ee2;hp=3d499768e1a3a088d8559c2d89a4ba8b8e33a6ba;hb=187654874c567be3a92e0b53aa1df45407432265;hpb=bfae6eed033adc10e9f816182dd7812ae9cb3a0a diff --git a/src/libgame/system.c b/src/libgame/system.c index 3d499768..7321731c 100644 --- a/src/libgame/system.c +++ b/src/libgame/system.c @@ -29,6 +29,7 @@ /* ========================================================================= */ struct ProgramInfo program; +struct NetworkInfo network; struct OptionInfo options; struct VideoSystemInfo video; struct AudioSystemInfo audio; @@ -44,6 +45,7 @@ LevelDirTree *leveldir_first = NULL; LevelDirTree *leveldir_current = NULL; int level_nr; +struct LevelSetInfo levelset; struct LevelStats level_stats[MAX_LEVELS]; DrawWindow *window = NULL; @@ -103,6 +105,17 @@ void InitProgramInfo(char *argv0, char *config_filename, char *userdata_subdir, program.headless = FALSE; } +void InitNetworkInfo(boolean enabled, boolean connected, boolean serveronly, + char *server_host, int server_port) +{ + network.enabled = enabled; + network.connected = connected; + network.serveronly = serveronly; + + network.server_host = server_host; + network.server_port = server_port; +} + void InitScoresInfo() { char *global_scores_dir = getPath2(getCommonDataDir(), SCORES_DIRECTORY); @@ -110,6 +123,7 @@ void InitScoresInfo() program.global_scores = directoryExists(global_scores_dir); program.many_scores_per_name = !program.global_scores; +#if 0 if (options.debug) { if (program.global_scores) @@ -124,6 +138,7 @@ void InitScoresInfo() Error(ERR_DEBUG, "Using private, single-user scores directory."); } } +#endif free(global_scores_dir); } @@ -341,6 +356,7 @@ void InitOverlayInfo() overlay.grid_button[x][y] = setup.touch.grid_button[nr][x][y]; overlay.grid_button_highlight = CHAR_GRID_BUTTON_NONE; + overlay.grid_button_action = JOY_NO_ACTION; #if defined(USE_TOUCH_INPUT_OVERLAY) if (strEqual(setup.touch.control_type, TOUCH_CONTROL_VIRTUAL_BUTTONS))