Skip to content

Commit

Permalink
Fix MSVC compiling error (argc/argv not available to pass to init_get…
Browse files Browse the repository at this point in the history
…text)

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
  • Loading branch information
SmallJoker authored and Zeno- committed Nov 29, 2014
1 parent c30346e commit a3e019c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Expand Up @@ -157,7 +157,7 @@ static void list_game_ids();
static void list_worlds();
static void setup_log_params(const Settings &cmd_args);
static bool create_userdata_path();
static bool init_common(int *log_level, const Settings &cmd_args);
static bool init_common(int *log_level, const Settings &cmd_args, int argc, char *argv[]);
static void startup_message();
static bool read_config_file(const Settings &cmd_args);
static void init_debug_streams(int *log_level, const Settings &cmd_args);
Expand Down Expand Up @@ -831,7 +831,7 @@ int main(int argc, char *argv[])
}

GameParams game_params;
if (!init_common(&game_params.log_level, cmd_args))
if (!init_common(&game_params.log_level, cmd_args, argc, argv))
return 1;

#ifndef __ANDROID__
Expand Down Expand Up @@ -1086,7 +1086,7 @@ static bool create_userdata_path()
return success;
}

static bool init_common(int *log_level, const Settings &cmd_args)
static bool init_common(int *log_level, const Settings &cmd_args, int argc, char *argv[])
{
startup_message();
set_default_settings(g_settings);
Expand Down

0 comments on commit a3e019c

Please sign in to comment.