Create a compatible hash algorithm for both windows and linux cross-saving. Release Build 8579.

This commit is contained in:
2024-03-29 21:10:49 -05:00
parent 4c81506c64
commit ad79910848
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 0
#define VERSION_PATCH 0
#define VERSION_BUILD 8578
#define VERSION_BUILD 8579
#define stringify(a) stringify_(a)
#define stringify_(a) #a
+3 -1
View File
@@ -160,7 +160,9 @@ std::string util::GetHash(std::string fileName){
if(hash.size()==std::numeric_limits<uint8_t>::max()){
hashChar=hash[hashIndex];
}
hashChar+=file.get()*21-7;
char newChar=file.get();
if(newChar=='\r'||newChar=='\n')continue;
hashChar+=newChar*21-7;
hashChar^=hashIndex;
if(hashIndex>0)hashChar+=hash[hashIndex-1];
hashChar%=94;
Binary file not shown.