Skip to content

Commit a3e019c

Browse files
SmallJokerZeno-
authored andcommitted
Fix MSVC compiling error (argc/argv not available to pass to init_gettext)
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
1 parent c30346e commit a3e019c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static void list_game_ids();
157157
static void list_worlds();
158158
static void setup_log_params(const Settings &cmd_args);
159159
static bool create_userdata_path();
160-
static bool init_common(int *log_level, const Settings &cmd_args);
160+
static bool init_common(int *log_level, const Settings &cmd_args, int argc, char *argv[]);
161161
static void startup_message();
162162
static bool read_config_file(const Settings &cmd_args);
163163
static void init_debug_streams(int *log_level, const Settings &cmd_args);
@@ -831,7 +831,7 @@ int main(int argc, char *argv[])
831831
}
832832

833833
GameParams game_params;
834-
if (!init_common(&game_params.log_level, cmd_args))
834+
if (!init_common(&game_params.log_level, cmd_args, argc, argv))
835835
return 1;
836836

837837
#ifndef __ANDROID__
@@ -1086,7 +1086,7 @@ static bool create_userdata_path()
10861086
return success;
10871087
}
10881088

1089-
static bool init_common(int *log_level, const Settings &cmd_args)
1089+
static bool init_common(int *log_level, const Settings &cmd_args, int argc, char *argv[])
10901090
{
10911091
startup_message();
10921092
set_default_settings(g_settings);

0 commit comments

Comments
 (0)