Skip to content

Commit 7937d9a

Browse files
committed
wesnoth.cpp: use SDL_GetAndroidExternalStoragePath
SDL_AndroidGetExternalStoragePath -> SDL_GetAndroidExternalStoragePath
1 parent 41b73c7 commit 7937d9a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wesnoth.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,11 @@ static int process_command_args(commandline_options& cmdline_opts)
443443
}
444444
} else {
445445
#if defined(__ANDROID__) && !defined(WESNOTH_PATH)
446-
if(const char* ext_path = SDL_AndroidGetExternalStoragePath()) {
446+
if(const char* ext_path = SDL_GetAndroidExternalStoragePath()) {
447447
game_config::path = ext_path + std::string("/gamedata");
448448
PLAIN_LOG << "Determined game data directory: " << game_config::path;
449449
} else {
450-
PLAIN_LOG << "Cannot find game data directory, specify one with --data-dir. SDL_AndroidGetExternalStoragePath() failed: " << SDL_GetError();
450+
PLAIN_LOG << "Cannot find game data directory, specify one with --data-dir. SDL_GetAndroidExternalStoragePath() failed: " << SDL_GetError();
451451
}
452452
#endif
453453
// if a pre-defined path does not exist this will empty it

0 commit comments

Comments
 (0)