mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-11 00:04:31 +00:00
fs: Replace deprecated Boost.Filesystem symbolic_link_exists()
This function has been deprecated since at least Boost 1.34 (2007).
This commit is contained in:
parent
ae8b3a580d
commit
1e33024171
@ -607,7 +607,7 @@ const std::string& get_version_path_suffix()
|
||||
if(!bfs::exists(old_saves_dir)) {
|
||||
LOG_FS << "Apple developer's userdata migration: symlinking " << old_saves_dir.string() << " to " << new_saves_dir.string();
|
||||
bfs::create_symlink(new_saves_dir, old_saves_dir);
|
||||
} else if(!bfs::symbolic_link_exists(old_saves_dir)) {
|
||||
} else if(!bfs::is_symlink(old_saves_dir)) {
|
||||
ERR_FS << "Apple developer's userdata migration: Problem! Old (non-containerized) directory " << old_saves_dir.string() << " is not a symlink. Your savegames are scattered around 2 locations.";
|
||||
}
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user