summaryrefslogtreecommitdiff
path: root/mpq-misc.c
blob: aa2d958dba1acdfbe4231644948c6c6ea38c022a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "mpq-misc.h"
#include "MPQCryptography.h"

/*
 * The various string hashing function.
 */

uint32_t mpqlib_hash_filename(const char * str) {
    return __mpqlib_hash_cstring(str, 0);
}

uint32_t mpqlib_hashA_filename(const char * str) {
    return __mpqlib_hash_cstring(str, 1);
}

uint32_t mpqlib_hashB_filename(const char * str) {
    return __mpqlib_hash_cstring(str, 2);
}