From 2e60491ceb0548b0bea93207c13b974d6a6cf5cc Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Thu, 29 Feb 2024 17:25:29 +0100 Subject: 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. --- src/utils/xml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils') 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 { -- cgit v1.2.3-70-g09d2