mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 12:31:59 +00:00
Revert "Use delete_file() to delete reg files in config_cache::delete_cache_files()"
This reverts commit d06c39b714ef48e5e6dc96bc62a73c994f6e8c45.
This commit is contained in:
parent
9d1ecacbb1
commit
c6bb5711b0
@ -396,13 +396,8 @@ namespace game_config {
|
||||
}
|
||||
|
||||
LOG_CACHE << "delete_cache_files(): deleting " << path << '\n';
|
||||
|
||||
if(filesystem::is_directory(path) && !filesystem::delete_directory(path)) {
|
||||
ERR_CACHE << "delete_cache_files(): could not delete dir "
|
||||
<< path << '\n';
|
||||
status = false;
|
||||
} else if(!filesystem::delete_file(path)) {
|
||||
ERR_CACHE << "delete_cache_files(): could not delete file "
|
||||
if(!filesystem::delete_directory(path)) {
|
||||
ERR_CACHE << "delete_cache_files(): could not delete "
|
||||
<< path << '\n';
|
||||
status = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user