diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-13 00:57:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-13 00:57:07 +0300 |
commit | 84a3ff2804a2df97a9b95d033b2c35de73271972 (patch) | |
tree | d880b4ebe54674c8f3280c3d698fd4b3b0955563 /src/resources/resourcemanager.cpp | |
parent | 68a06297d94c0a2780b0bbb4070813f931cdfc24 (diff) | |
download | ManaVerse-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.gz ManaVerse-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.bz2 ManaVerse-84a3ff2804a2df97a9b95d033b2c35de73271972.tar.xz ManaVerse-84a3ff2804a2df97a9b95d033b2c35de73271972.zip |
also clear resource cache if switching servers.
Diffstat (limited to 'src/resources/resourcemanager.cpp')
-rw-r--r-- | src/resources/resourcemanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/resourcemanager.cpp b/src/resources/resourcemanager.cpp index c8230550a..83beb8e9c 100644 --- a/src/resources/resourcemanager.cpp +++ b/src/resources/resourcemanager.cpp @@ -1151,3 +1151,10 @@ void ResourceManager::deleteFilesInDirectory(std::string path) if (dir) closedir(dir); } + +void ResourceManager::clearCache() +{ + cleanProtected(); + while (cleanOrphans(true)) + continue; +} |