Skip to content

Commit 0dadc1a

Browse files
committed
feat: add 1868 crossmap
1 parent f093d13 commit 0dadc1a

File tree

4 files changed

+5873
-16
lines changed

4 files changed

+5873
-16
lines changed

include/nob/ntv/fhtt.hpp

+8-6
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
#include <map>
55
#include <unordered_map>
66

7-
namespace nob {
8-
namespace ntv {
9-
extern const std::map<uint16_t, const std::unordered_map<uint64_t, uint64_t> &> fhtt_map;
10-
extern const std::unordered_map<uint64_t, uint64_t> *fhtt;
11-
}
12-
}
7+
namespace nob { namespace ntv {
8+
9+
extern const std::map<uint16_t, const std::unordered_map<uint64_t, uint64_t> *>
10+
fhtt_map;
11+
12+
extern const std::unordered_map<uint64_t, uint64_t> *fhtt;
13+
14+
}} // namespace nob::ntv

src/ntv/base.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -474,10 +474,10 @@ namespace nob {
474474

475475
auto fhtt_it = fhtt_map.find(game_build);
476476
if (fhtt_it != fhtt_map.end()) {
477-
fhtt = &fhtt_it->second;
477+
fhtt = fhtt_it->second;
478478
} else {
479479
log("nob::ntv::fhtt: not found!");
480-
fhtt = &fhtt_map.rbegin()->second;
480+
fhtt = fhtt_map.rbegin()->second;
481481
finded = false;
482482
}
483483

src/ntv/fhtt.cpp

+13-8
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,19 @@ const std::unordered_map<uint64_t, uint64_t> _fhtt_1737{
3333
#include "fhtt/1737.inc"
3434
};
3535

36-
const std::map<uint16_t, const std::unordered_map<uint64_t, uint64_t> &>
37-
fhtt_map{{1737, _fhtt_1737},
38-
{1604, _fhtt_1604},
39-
{1493, _fhtt_1493},
40-
{1365, _fhtt_1365},
41-
{1290, _fhtt_1290},
42-
{1180, _fhtt_1180},
43-
{1103, _fhtt_1103}};
36+
const std::unordered_map<uint64_t, uint64_t> _fhtt_1868{
37+
#include "fhtt/1868.inc"
38+
};
39+
40+
const std::map<uint16_t, const std::unordered_map<uint64_t, uint64_t> *>
41+
fhtt_map{{1868, &_fhtt_1868},
42+
{1737, &_fhtt_1737},
43+
{1604, &_fhtt_1604},
44+
{1493, &_fhtt_1493},
45+
{1365, &_fhtt_1365},
46+
{1290, &_fhtt_1290},
47+
{1180, &_fhtt_1180},
48+
{1103, &_fhtt_1103}};
4449

4550
const std::unordered_map<uint64_t, uint64_t> *fhtt = nullptr;
4651

0 commit comments

Comments
 (0)