Revert "Use delete_file() to delete reg files in config_cache::delete_cache_files()"

This reverts commit d06c39b714ef48e5e6dc96bc62a73c994f6e8c45.
This commit is contained in:
Ignacio R. Morelle 2014-12-23 22:50:19 -03:00
parent 9d1ecacbb1
commit c6bb5711b0

View File

@ -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;
}