summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-29 17:25:29 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-29 17:25:29 +0100
commit2e60491ceb0548b0bea93207c13b974d6a6cf5cc (patch)
tree43ea8aefa4aa1646df82a5163b9cdae0a39df48e /src/utils
parentdd1db3753ecf8a4d782aee1f518759763d8caf87 (diff)
downloadmana-2e60491ceb0548b0bea93207c13b974d6a6cf5cc.tar.gz
mana-2e60491ceb0548b0bea93207c13b974d6a6cf5cc.tar.bz2
mana-2e60491ceb0548b0bea93207c13b974d6a6cf5cc.tar.xz
mana-2e60491ceb0548b0bea93207c13b974d6a6cf5cc.zip
Re-download updates when their checksum no longer matches
The Mana World currently likes to just update its "TMW.zip" file, whereas updates were always given unique names in the past. With this change, the client checks the Adler32 checksum to know when it should re-download an update file. This matches the behavior of ManaPlus commit 96150f1aeacf55d311c41ffe12d9e754b1cda001.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/xml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp
index 2fb9d66b..fea5589f 100644
--- a/src/utils/xml.cpp
+++ b/src/utils/xml.cpp
@@ -58,7 +58,7 @@ namespace XML
if (useResman)
{
ResourceManager *resman = ResourceManager::getInstance();
- data = (char*) resman->loadFile(filename.c_str(), size);
+ data = (char*) resman->loadFile(filename, size);
}
else
{