… | |
… | |
25 | |
25 | |
26 | #include <util.h> |
26 | #include <util.h> |
27 | #include <tr1/unordered_map> |
27 | #include <tr1/unordered_map> |
28 | |
28 | |
29 | #define CHKSUM_MAXLEN 15 |
29 | #define CHKSUM_MAXLEN 15 |
30 | #define MAX_FACES 10000 // stupid gcfclient artificially limits |
30 | #define MAX_FACES 65535 // we reserve face #65535 |
31 | |
31 | |
32 | typedef uint16 faceidx; |
32 | typedef uint16 faceidx; |
33 | |
33 | |
34 | extern faceidx blank_face, empty_face, magicmouth_face; |
34 | extern faceidx blank_face, empty_face, magicmouth_face; |
35 | |
35 | |
36 | struct facedata |
36 | struct facedata |
37 | { |
37 | { |
38 | refcnt_buf data; // no need to be refcounted actually |
38 | refcnt_buf data; |
39 | uint8 chksum[CHKSUM_MAXLEN]; |
39 | uint8 chksum[CHKSUM_MAXLEN]; |
40 | uint8 chksum_len; |
40 | uint8 chksum_len; |
41 | |
41 | |
42 | facedata () |
42 | facedata () |
43 | : chksum_len (0) |
43 | : chksum_len (0) |