diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-13 00:47:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-13 00:47:33 +0300 |
commit | 68a06297d94c0a2780b0bbb4070813f931cdfc24 (patch) | |
tree | efc4f1227231c4d6e72d7d315f23a3405ddb63fd /src/gui/updaterwindow.h | |
parent | a18645643144058d67301435505a506e36e0aa6b (diff) | |
download | manaplus-68a06297d94c0a2780b0bbb4070813f931cdfc24.tar.gz manaplus-68a06297d94c0a2780b0bbb4070813f931cdfc24.tar.bz2 manaplus-68a06297d94c0a2780b0bbb4070813f931cdfc24.tar.xz manaplus-68a06297d94c0a2780b0bbb4070813f931cdfc24.zip |
fix resource files unloading while switching servers.
Diffstat (limited to 'src/gui/updaterwindow.h')
-rw-r--r-- | src/gui/updaterwindow.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/updaterwindow.h b/src/gui/updaterwindow.h index 1ee35195a..3cc8392e5 100644 --- a/src/gui/updaterwindow.h +++ b/src/gui/updaterwindow.h @@ -126,15 +126,25 @@ class UpdaterWindow final : public Window, static void loadLocalUpdates(const std::string &dir); + static void unloadUpdates(const std::string &dir); + static void addUpdateFile(const ResourceManager *const resman, const std::string &path, const std::string &fixPath, const std::string &file, const bool append); + static void removeUpdateFile(const ResourceManager *const resman, + const std::string &path, + const std::string &fixPath, + const std::string &file); + static void loadManaPlusUpdates(const std::string &dir, const ResourceManager *const resman); + static void unloadManaPlusUpdates(const std::string &dir, + const ResourceManager *const resman); + private: void download(); |