Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
d121fee
reimplement: SHC_3BB0A8C1_0x0040BFA0 100.00% Reimplemented
gynt Sep 24, 2026
9e03184
reimplement: SHC_3BB0A8C1_0x00409F50 100.00% Reimplemented
gynt Sep 24, 2026
759d1a4
reimplement: SHC_3BB0A8C1_0x0040EF40 100.00% Reimplemented
gynt Sep 24, 2026
4bfdf6e
reimplement: SHC_3BB0A8C1_0x0040D090 100.00% Reimplemented
gynt Sep 24, 2026
9bf1ab9
reimplement: SHC_3BB0A8C1_0x0040B720 100.00% Reimplemented
gynt Sep 24, 2026
3eb4c87
reimplement: SHC_3BB0A8C1_0x0040B7B0 100.00% Reimplemented
gynt Sep 24, 2026
bab00ea
reimplement: SHC_3BB0A8C1_0x0040AFB0 100.00% Reimplemented
gynt Sep 24, 2026
33e2fda
reimplement: SHC_3BB0A8C1_0x0040AEF0 100.00% Reimplemented
gynt Sep 24, 2026
cbb1fcc
reimplement: SHC_3BB0A8C1_0x0040B090 100.00% Reimplemented
gynt Sep 24, 2026
55246ea
reimplement: SHC_3BB0A8C1_0x00410C40 100.00% Reimplemented
gynt Sep 24, 2026
434c8d5
reimplement: SHC_3BB0A8C1_0x0040B660 100.00% Reimplemented
gynt Sep 24, 2026
14a9beb
reimplement: SHC_3BB0A8C1_0x00419BE0 100.00% Reimplemented
gynt Sep 24, 2026
5692fb1
reimplement: SHC_3BB0A8C1_0x0040F4F0 100.00% Reimplemented
gynt Sep 24, 2026
3bd0c41
reimplement: SHC_3BB0A8C1_0x00417450 100.00% Reimplemented
gynt Sep 24, 2026
1537660
reimplement: SHC_3BB0A8C1_0x0040F3D0 100.00% Reimplemented
gynt Sep 24, 2026
6afc972
reimplement: SHC_3BB0A8C1_0x0040F040 100.00% Reimplemented
gynt Sep 24, 2026
4740d20
reimplement: SHC_3BB0A8C1_0x0040F1E0 100.00% Reimplemented
gynt Sep 24, 2026
816b844
reimplement: SHC_3BB0A8C1_0x0040E040 100.00% Reimplemented
gynt Sep 24, 2026
d332b40
reimplement: SHC_3BB0A8C1_0x0040E330 100.00% Reimplemented
gynt Sep 24, 2026
0b8bdad
reimplement: SHC_3BB0A8C1_0x0040C9F0 100.00% Reimplemented
gynt Sep 24, 2026
b79eb29
reimplement: SHC_3BB0A8C1_0x0041BF50 100.00% Reimplemented
gynt Sep 24, 2026
e634eb8
reimplement: SHC_3BB0A8C1_0x0040F750 100.00% Reimplemented
gynt Sep 24, 2026
7343926
reimplement: SHC_3BB0A8C1_0x0040F360 100.00% Reimplemented
gynt Sep 24, 2026
04fbe0e
reimplement: SHC_3BB0A8C1_0x00419D70 100.00% Reimplemented
gynt Sep 24, 2026
0f2aacd
reimplement: SHC_3BB0A8C1_0x00419C70 100.00% Reimplemented
gynt Sep 24, 2026
1ae70ed
reimplement: SHC_3BB0A8C1_0x004197C0 100.00% Reimplemented
gynt Sep 24, 2026
0829fb9
reimplement: SHC_3BB0A8C1_0x00410290 100.00% Reimplemented
gynt Sep 24, 2026
892f451
reimplement: SHC_3BB0A8C1_0x004173D0 100.00% Reimplemented
gynt Sep 24, 2026
5f6d574
reimplement: SHC_3BB0A8C1_0x0041C240 100.00% Reimplemented
gynt Sep 24, 2026
6fc17c2
reimplement: SHC_3BB0A8C1_0x0041A860 100.00% Reimplemented
gynt Sep 24, 2026
65a53d5
reimplement: SHC_3BB0A8C1_0x00419780 100.00% Reimplemented
gynt Sep 24, 2026
25cc424
reimplement: SHC_3BB0A8C1_0x00424220 100.00% Reimplemented
gynt Sep 24, 2026
621af8f
reimplement: SHC_3BB0A8C1_0x00424270 100.00% Reimplemented
gynt Sep 24, 2026
69da994
reimplement: SHC_3BB0A8C1_0x00420BF0 100.00% Reimplemented
gynt Sep 24, 2026
8d830ff
reimplement: SHC_3BB0A8C1_0x0041A7A0 100.00% Reimplemented
gynt Sep 24, 2026
14f0632
reimplement: SHC_3BB0A8C1_0x00422400 100.00% Reimplemented
gynt Sep 24, 2026
447f93a
reimplement: SHC_3BB0A8C1_0x00410920 100.00% Reimplemented
gynt Sep 24, 2026
fa28779
reimplement: SHC_3BB0A8C1_0x00409DB0 100.00% Reimplemented
gynt Sep 24, 2026
81e4da9
reimplement: SHC_3BB0A8C1_0x00409E80 100.00% Reimplemented
gynt Sep 24, 2026
d3fc369
reimplement: SHC_3BB0A8C1_0x00422230 100.00% Reimplemented
gynt Sep 24, 2026
8b6e0df
reimplement: SHC_3BB0A8C1_0x0040CAC0 100.00% Reimplemented
gynt Sep 24, 2026
a29a1d7
reimplement: SHC_3BB0A8C1_0x0040C1A0 100.00% Reimplemented
gynt Sep 24, 2026
70936ee
reimplement: SHC_3BB0A8C1_0x00419A30 100.00% Reimplemented
gynt Sep 24, 2026
32e0285
reimplement: SHC_3BB0A8C1_0x0040CB90 100.00% Reimplemented
gynt Sep 24, 2026
150f21e
reimplement: SHC_3BB0A8C1_0x0040A4A0 100.00% Reimplemented
gynt Sep 24, 2026
6bd8fbc
reimplement: SHC_3BB0A8C1_0x00419800 100.00% Reimplemented
gynt Sep 24, 2026
ba93aee
reimplement: SHC_3BB0A8C1_0x0041C190 100.00% Reimplemented
gynt Sep 24, 2026
355570f
reimplement: SHC_3BB0A8C1_0x0040C4B0 100.00% Reimplemented
gynt Sep 24, 2026
fb2f2ba
reimplement: SHC_3BB0A8C1_0x0040C9B0 100.00% Reimplemented
gynt Sep 24, 2026
df43495
reimplement: SHC_3BB0A8C1_0x0040E740 100.00% Reimplemented
gynt Sep 24, 2026
48b4147
reimplement: SHC_3BB0A8C1_0x0040BA10 100.00% Reimplemented
gynt Sep 24, 2026
1be6dce
reimplement: SHC_3BB0A8C1_0x0040BC40 100.00% Reimplemented
gynt Sep 24, 2026
9ef3f6f
reimplement: SHC_3BB0A8C1_0x0041A8D0 100.00% Reimplemented
gynt Sep 24, 2026
57a1bb3
reimplement: SHC_3BB0A8C1_0x0040B1A0 100.00% Reimplemented
gynt Sep 24, 2026
4d88095
reimplement: SHC_3BB0A8C1_0x0040EBF0 100.00% Reimplemented
gynt Sep 24, 2026
5c2677d
reimplement: SHC_3BB0A8C1_0x0040F090 100.00% Reimplemented
gynt Sep 24, 2026
021ca6d
reimplement: SHC_3BB0A8C1_0x0040B5D0 100.00% Reimplemented
gynt Sep 24, 2026
c5a893b
reimplement: SHC_3BB0A8C1_0x0040A8A0 100.00% Reimplemented
gynt Sep 24, 2026
2a904b0
reimplement: SHC_3BB0A8C1_0x0040E990 100.00% Reimplemented
gynt Sep 24, 2026
dbd1235
reimplement: SHC_3BB0A8C1_0x0040C060 100.00% Reimplemented
gynt Sep 24, 2026
06b7b8f
reimplement: SHC_3BB0A8C1_0x0040A400 100.00% Reimplemented
gynt Sep 24, 2026
1471b55
reimplement: SHC_3BB0A8C1_0x0040F540 100.00% Reimplemented
gynt Sep 24, 2026
2443217
reimplement: SHC_3BB0A8C1_0x0041C570 100.00% Reimplemented
gynt Sep 24, 2026
7605f82
header improvements
gynt Sep 24, 2026
19f957a
reimplement: SHC_3BB0A8C1_0x0040DC70 100.00% Reimplemented
gynt Sep 24, 2026
47e9982
reimplement: SHC_3BB0A8C1_0x00409FF0 25.00% Reimplemented functionall…
gynt Sep 24, 2026
fc73a0f
reimplement: SHC_3BB0A8C1_0x0040A060 76.10% Reimplemented functionall…
gynt Sep 24, 2026
ba0ef20
reimplement: SHC_3BB0A8C1_0x0040A260 71.55% Reimplemented functionall…
gynt Sep 24, 2026
cfd07da
reimplement: SHC_3BB0A8C1_0x0040B260 25.15% Reimplemented functionall…
gynt Sep 24, 2026
b2a7a9e
reimplement: SHC_3BB0A8C1_0x0040B540 70.21% Reimplemented functionall…
gynt Sep 24, 2026
1118671
reimplement: SHC_3BB0A8C1_0x0040B840 88.11% Reimplemented functionall…
gynt Sep 24, 2026
6444a5a
reimplement: SHC_3BB0A8C1_0x0040B900 94.64% Needs 2nd param, orig is …
gynt Sep 24, 2026
f269f18
reimplement: SHC_3BB0A8C1_0x0040B980 93.48% Reimplemented functionall…
gynt Sep 24, 2026
f46fae9
reimplement: SHC_3BB0A8C1_0x0040BFE0 56.47% Reimplemented functionall…
gynt Sep 24, 2026
929a6fb
reimplement: SHC_3BB0A8C1_0x0040C1F0 63.58% Reimplemented functionall…
gynt Sep 24, 2026
5bf0853
reimplement: SHC_3BB0A8C1_0x0040C300 81.70% Reimplemented functionall…
gynt Sep 24, 2026
2d2b08d
reimplement: SHC_3BB0A8C1_0x0040C5F0 78.57% Reimplemented functionall…
gynt Sep 24, 2026
69f146d
reimplement: SHC_3BB0A8C1_0x0040C800 91.36% Reimplemented functionall…
gynt Sep 24, 2026
fa2d1b8
reimplement: SHC_3BB0A8C1_0x0040CC30 95.22% Reimplemented functionall…
gynt Sep 24, 2026
ff0e3d3
reimplement: SHC_3BB0A8C1_0x0040CF20 92.04% Reimplemented functionall…
gynt Sep 24, 2026
1e66391
reimplement: SHC_3BB0A8C1_0x0040D120 29.24% Reimplemented functionall…
gynt Sep 24, 2026
bb6f7e6
reimplement: SHC_3BB0A8C1_0x0040D400 29.24% Reimplemented functionall…
gynt Sep 24, 2026
60b23c4
reimplement: SHC_3BB0A8C1_0x0040D6E0 29.13% Reimplemented functionall…
gynt Sep 24, 2026
8b2fd5a
reimplement: SHC_3BB0A8C1_0x0040D9C0 32.06% Reimplemented functionall…
gynt Sep 24, 2026
fdf1210
reimplement: SHC_3BB0A8C1_0x0040E120 35.49% Reimplemented functionall…
gynt Sep 24, 2026
69cae37
reimplement: SHC_3BB0A8C1_0x0040E410 70.34% Reimplemented functionall…
gynt Sep 24, 2026
33a061a
reimplement: SHC_3BB0A8C1_0x0040E610 90.12% Reimplemented functionall…
gynt Sep 24, 2026
197100f
reimplement: SHC_3BB0A8C1_0x0040E900 75.36% Reimplemented functionall…
gynt Sep 24, 2026
d380431
reimplement: SHC_3BB0A8C1_0x0040EA00 70.19% Reimplemented functionall…
gynt Sep 24, 2026
6f25a5e
reimplement: SHC_3BB0A8C1_0x0040EDF0 91.51% Reimplemented functionall…
gynt Sep 24, 2026
4282df0
reimplement: SHC_3BB0A8C1_0x0040EFD0 63.16% Reimplemented functionall…
gynt Sep 24, 2026
c8b56f8
reimplement: SHC_3BB0A8C1_0x0040F460 28.99% Reimplemented functionall…
gynt Sep 24, 2026
c1df832
reimplement: SHC_3BB0A8C1_0x0040F620 45.22% Reimplemented functionall…
gynt Sep 24, 2026
15191ba
reimplement: SHC_3BB0A8C1_0x0040F8A0 91.67% Reimplemented functionall…
gynt Sep 24, 2026
402d4c7
reimplement: SHC_3BB0A8C1_0x0040F9D0 31.42% Reimplemented functionall…
gynt Sep 24, 2026
2fefe7e
reimplement: SHC_3BB0A8C1_0x0040FC40 36.92% Reimplemented functionall…
gynt Sep 24, 2026
250dd1a
reimplement: SHC_3BB0A8C1_0x00410320 46.34% Reimplemented functionall…
gynt Sep 24, 2026
e5e16a9
reimplement: SHC_3BB0A8C1_0x00410440 47.06% Reimplemented functionall…
gynt Sep 24, 2026
c3f7a32
reimplement: SHC_3BB0A8C1_0x004105F0 82.19% Reimplemented functionall…
gynt Sep 24, 2026
8deaa78
reimplement: SHC_3BB0A8C1_0x004106D0 79.25% Reimplemented functionall…
gynt Sep 24, 2026
29b817b
reimplement: SHC_3BB0A8C1_0x00410800 54.24% Reimplemented functionall…
gynt Sep 24, 2026
dccdce7
reimplement: SHC_3BB0A8C1_0x004109F0 86.08% Reimplemented functionall…
gynt Sep 24, 2026
071c307
reimplement: SHC_3BB0A8C1_0x00410B10 64.90% Reimplemented functionall…
gynt Sep 24, 2026
266383a
reimplement: SHC_3BB0A8C1_0x00419960 41.24% Reimplemented functionall…
gynt Sep 24, 2026
5bbd3e3
reimplement: SHC_3BB0A8C1_0x00419AC0 77.42% Reimplemented functionall…
gynt Sep 24, 2026
3ffcde8
reimplement: SHC_3BB0A8C1_0x00419EB0 28.78% Reimplemented functionall…
gynt Sep 24, 2026
e46e4fc
reimplement: SHC_3BB0A8C1_0x00419FA0 48.28% Reimplemented functionall…
gynt Sep 24, 2026
a41824c
reimplement: SHC_3BB0A8C1_0x0041ADE0 19.58% Reimplemented functionall…
gynt Sep 24, 2026
a8cd675
reimplement: SHC_3BB0A8C1_0x0041B2B0 22.33% Reimplemented functionall…
gynt Sep 24, 2026
829771c
reimplement: SHC_3BB0A8C1_0x0041B7C0 33.59% Reimplemented functionall…
gynt Sep 24, 2026
a2e6006
reimplement: SHC_3BB0A8C1_0x0041B940 58.06% Reimplemented functionall…
gynt Sep 24, 2026
52bc578
reimplement: SHC_3BB0A8C1_0x0041BA00 46.85% Reimplemented functionall…
gynt Sep 24, 2026
1c873e8
reimplement: SHC_3BB0A8C1_0x0041BAB0 58.54% Reimplemented functionall…
gynt Sep 24, 2026
6b071fa
reimplement: SHC_3BB0A8C1_0x0041BB30 90.78% Reimplemented functionall…
gynt Sep 24, 2026
60818ab
reimplement: SHC_3BB0A8C1_0x0041BC10 70.10% Reimplemented functionall…
gynt Sep 24, 2026
22ece89
reimplement: SHC_3BB0A8C1_0x0041BCA0 89.02% Reimplemented functionall…
gynt Sep 24, 2026
5047521
reimplement: SHC_3BB0A8C1_0x0041BD70 32.80% Reimplemented functionall…
gynt Sep 24, 2026
e2a9f16
reimplement: SHC_3BB0A8C1_0x0041BFD0 63.67% Reimplemented functionall…
gynt Sep 24, 2026
e1d8a13
reimplement: SHC_3BB0A8C1_0x0041C310 43.73% Reimplemented functionall…
gynt Sep 24, 2026
7f259d9
reimplement: SHC_3BB0A8C1_0x0041C6F0 24.84% Reimplemented functionall…
gynt Sep 24, 2026
f733d7e
reimplement: SHC_3BB0A8C1_0x0041C810 51.46% Reimplemented functionall…
gynt Sep 24, 2026
5462c95
reimplement: SHC_3BB0A8C1_0x00420D20 20.19% Reimplemented functionall…
gynt Sep 24, 2026
55ff2ed
reimplement: SHC_3BB0A8C1_0x00421890 66.67% Reimplemented functionall…
gynt Sep 24, 2026
4ebd248
reimplement: SHC_3BB0A8C1_0x00421990 58.25% Reimplemented functionall…
gynt Sep 24, 2026
6e5522b
reimplement: SHC_3BB0A8C1_0x00421A40 30.57% Reimplemented functionall…
gynt Sep 24, 2026
ae66839
reimplement: SHC_3BB0A8C1_0x00421BE0 16.36% Reimplemented functionall…
gynt Sep 24, 2026
73a6cf3
reimplement: SHC_3BB0A8C1_0x00421D70 42.15% Reimplemented functionall…
gynt Sep 24, 2026
21f47ec
reimplement: SHC_3BB0A8C1_0x004224F0 29.08% Reimplemented functionall…
gynt Sep 24, 2026
250bd50
reimplement: SHC_3BB0A8C1_0x00422B80 68.97% Reimplemented functionall…
gynt Sep 24, 2026
111fcfb
reimplement: SHC_3BB0A8C1_0x00422C60 50.59% Reimplemented functionall…
gynt Sep 24, 2026
08d0961
reimplement: SHC_3BB0A8C1_0x00422E20 77.44% Reimplemented functionall…
gynt Sep 24, 2026
783f289
header improvements
gynt Sep 24, 2026
b124dc9
clang-formatting
gynt Sep 24, 2026
0ab12b4
feat(compiler): set /GL for BuildingsState functions with LTCG regist…
gynt Sep 24, 2026
8f76b71
reimplement: SHC_3BB0A8C1_0x0041BC10 100.00% Reimplemented
gynt Sep 24, 2026
a4fa262
reimplement: SHC_3BB0A8C1_0x00421A40 100.00% Reimplemented
gynt Sep 24, 2026
4c3dd2a
reimplement: SHC_3BB0A8C1_0x0041BAB0 100.00% Reimplemented
gynt Sep 24, 2026
d7f95ae
reimplement: SHC_3BB0A8C1_0x0041BA00 100.00% Reimplemented
gynt Sep 24, 2026
2af24f9
reimplement: SHC_3BB0A8C1_0x0040C5F0 100.00% Reimplemented
gynt Sep 24, 2026
3d256ff
reimplement: SHC_3BB0A8C1_0x0040C1F0 100.00% Reimplemented
gynt Sep 24, 2026
2b5702f
reimplement: SHC_3BB0A8C1_0x0040BFE0 100.00% Reimplemented
gynt Sep 24, 2026
eba9957
reimplement: SHC_3BB0A8C1_0x0041B940 100.00% Reimplemented
gynt Sep 24, 2026
51ed910
reimplement: SHC_3BB0A8C1_0x0040F620 100.00% Reimplemented
gynt Sep 24, 2026
2cba334
reimplement: SHC_3BB0A8C1_0x0041C810 100.00% Reimplemented
gynt Sep 24, 2026
efb8d67
reimplement: SHC_3BB0A8C1_0x00409FF0 88.89% Reimplemented functionall…
gynt Sep 24, 2026
31d7885
reimplement: SHC_3BB0A8C1_0x00410440 90.68% Reimplemented functionall…
gynt Sep 24, 2026
3767097
reimplement: SHC_3BB0A8C1_0x00421990 89.11% Reimplemented functionall…
gynt Sep 24, 2026
744d4b3
reimplement: SHC_3BB0A8C1_0x00419EB0 55.64% Reimplemented functionall…
gynt Sep 24, 2026
8bbaa1f
reimplement: SHC_3BB0A8C1_0x0041B7C0 52.80% Reimplemented functionall…
gynt Sep 24, 2026
2dfbc2e
reimplement: SHC_3BB0A8C1_0x0041B2B0 26.21% Reimplemented functionall…
gynt Sep 24, 2026
4513084
reimplement: SHC_3BB0A8C1_0x0041ADE0 24.38% Reimplemented functionall…
gynt Sep 24, 2026
ad3bd39
reimplement: SHC_3BB0A8C1_0x0041BD70 72.36% Reimplemented functionall…
gynt Sep 24, 2026
56b757d
reimplement: SHC_3BB0A8C1_0x00421BE0 62.61% Reimplemented functionall…
gynt Sep 24, 2026
7e5a408
reimplement: SHC_3BB0A8C1_0x00422C60 72.16% Reimplemented functionall…
gynt Sep 24, 2026
ea20ddc
reimplement: SHC_3BB0A8C1_0x0041C310 43.65% Reimplemented functionall…
gynt Sep 24, 2026
492896a
feat(compiler): set /GL for sortBuildingIDsNeedPeasantsQueue and play…
gynt Sep 24, 2026
404691f
reimplement: SHC_3BB0A8C1_0x0040FC40 100.00% Reimplemented
gynt Sep 24, 2026
67814ad
reimplement: SHC_3BB0A8C1_0x0040F9D0 72.60% Reimplemented functionall…
gynt Sep 24, 2026
10aaffc
reimplement: SHC_3BB0A8C1_0x0041B2B0 56.98% Reimplemented functionall…
gynt Sep 24, 2026
698f847
reimplement: SHC_3BB0A8C1_0x0041ADE0 46.11% Reimplemented functionall…
gynt Sep 24, 2026
a39bb06
reimplement: SHC_3BB0A8C1_0x0040F460 66.67% Reimplemented functionall…
gynt Sep 24, 2026
f68ea79
reimplement: SHC_3BB0A8C1_0x00419FA0 48.28% Reimplemented functionall…
gynt Sep 24, 2026
5cc762d
reimplement: SHC_3BB0A8C1_0x0040E120 54.04% Reimplemented functionall…
gynt Sep 24, 2026
2138cf7
reimplement: SHC_3BB0A8C1_0x0040D9C0 58.46% Reimplemented functionall…
gynt Sep 24, 2026
c591a81
reimplement: SHC_3BB0A8C1_0x00421D70 45.27% Reimplemented functionall…
gynt Sep 24, 2026
2c9e1ee
reimplement: SHC_3BB0A8C1_0x0040D6E0 50.37% Reimplemented functionall…
gynt Sep 24, 2026
dca7fde
reimplement: SHC_3BB0A8C1_0x0041BFD0 67.82% Reimplemented functionall…
gynt Sep 24, 2026
45daee7
reimplement: SHC_3BB0A8C1_0x0041C310 43.65% Reimplemented functionall…
gynt Sep 24, 2026
bd826cd
reimplement: SHC_3BB0A8C1_0x0040B260 30.92% Reimplemented functionall…
gynt Sep 24, 2026
54ea7a4
reimplement: SHC_3BB0A8C1_0x0040D120 52.28% Reimplemented functionall…
gynt Sep 24, 2026
569aed1
reimplement: SHC_3BB0A8C1_0x0040D400 52.28% Reimplemented functionall…
gynt Sep 24, 2026
485f6a5
reimplement: SHC_3BB0A8C1_0x00420D20 62.45% Reimplemented functionall…
gynt Sep 24, 2026
000a9b6
reimplement: SHC_3BB0A8C1_0x0041C6F0 45.33% Reimplemented functionall…
gynt Sep 24, 2026
87be423
reimplement: SHC_3BB0A8C1_0x00422E20 81.34% Reimplemented functionall…
gynt Sep 24, 2026
7f81724
reimplement: SHC_3BB0A8C1_0x004224F0 48.14% Reimplemented functionall…
gynt Sep 24, 2026
52335f8
reimplement: SHC_3BB0A8C1_0x00419960 41.24% Reimplemented functionall…
gynt Sep 24, 2026
0ee2b57
reimplement: SHC_3BB0A8C1_0x00410320 52.94% Reimplemented functionall…
gynt Sep 24, 2026
272567b
improve style
gynt Sep 24, 2026
10c5b5d
Merge remote-tracking branch 'origin/main' into reimpl/BuildingsState
gynt Oct 23, 2026
7f6c5c2
fix(BuildingsState): make the branch build and measure against curren…
gynt Oct 23, 2026
768a2c3
style(BuildingsState): own-class include and clang-format over the br…
gynt Nov 1, 2026
3918857
Adopt the Wilps Map/Buildings/BuildingsState bodies that measure bett…
gynt Nov 2, 2026
484eeed
Merge origin/main into reimpl/BuildingsState
gynt Nov 8, 2026
07b85a5
tools(quick_diff): take the base compile command from a non-/GL file
gynt Nov 8, 2026
7d06b61
fix(BuildingsState): build the branch-only sources against main's hea…
gynt Nov 8, 2026
7274169
build(BuildingsState): compile 7 more BuildingsState callers with /GL
gynt Nov 8, 2026
484858a
reimplement: SHC_3BB0A8C1_0x00419EB0 100.00% Reimplemented
gynt Nov 8, 2026
4d444bd
reimplement: SHC_3BB0A8C1_0x0040F8A0 93.06% register allocation differs
gynt Nov 8, 2026
d0f4ee0
reimplement: SHC_3BB0A8C1_0x0041B7C0 50.42% register allocation differs
gynt Nov 8, 2026
4fb68ea
reimplement: SHC_3BB0A8C1_0x0041B2B0 63.14% register allocation differs
gynt Nov 8, 2026
e6329cc
reimplement: SHC_3BB0A8C1_0x0041ADE0 51.40% register allocation differs
gynt Nov 8, 2026
b8b58d8
reimplement: SHC_3BB0A8C1_0x0040A060 86.59% index add folded into add…
gynt Nov 8, 2026
0200783
reimplement: SHC_3BB0A8C1_0x00419FA0 100.00% Reimplemented
gynt Nov 8, 2026
94b1608
reimplement: SHC_3BB0A8C1_0x0040D9C0 94.57% shared tail emitted twice
gynt Nov 8, 2026
9d4484e
reimplement: SHC_3BB0A8C1_0x00421D70 63.42% register allocation differs
gynt Nov 8, 2026
633045b
reimplement: SHC_3BB0A8C1_0x00419780 94.74% end-of-array symbol differs
gynt Nov 8, 2026
71e1def
reimplement: SHC_3BB0A8C1_0x0041C810 100.00% Reimplemented
gynt Nov 8, 2026
a13e78b
reimplement: SHC_3BB0A8C1_0x0041BFD0 76.12% LTCG global reuse missing
gynt Nov 8, 2026
d8a1559
reimplement: SHC_3BB0A8C1_0x0041C310 48.00% LTCG ecx reuse missing
gynt Nov 8, 2026
2ade23d
reimplement: SHC_3BB0A8C1_0x0040B260 100.00% Reimplemented
gynt Nov 8, 2026
93f0f45
reimplement: SHC_3BB0A8C1_0x00421BE0 57.76% register allocation differs
gynt Nov 8, 2026
d59175a
reimplement: SHC_3BB0A8C1_0x00420D20 86.39% outpost case block placement
gynt Nov 8, 2026
0a48084
reimplement: SHC_3BB0A8C1_0x0041C6F0 45.33% register allocation differs
gynt Nov 8, 2026
458a9dc
reimplement: SHC_3BB0A8C1_0x0040A260 100.00% Reimplemented
gynt Nov 8, 2026
5f6d191
reimplement: SHC_3BB0A8C1_0x00422C60 85.06% register allocation differs
gynt Nov 8, 2026
74e0643
reimplement: SHC_3BB0A8C1_0x00422E20 98.00% register allocation differs
gynt Nov 8, 2026
f2a9d80
reimplement: SHC_3BB0A8C1_0x004224F0 85.03% stack slot packing differs
gynt Nov 8, 2026
1a5e27c
reimplement: SHC_3BB0A8C1_0x0040EDF0 91.51% ebx/ebp swapped
gynt Nov 8, 2026
4d70c68
reimplement: SHC_3BB0A8C1_0x0040CF20 92.04% ebx/ebp swapped
gynt Nov 8, 2026
8ee749d
reimplement: SHC_3BB0A8C1_0x00410320 100% Reimplemented
gynt Nov 8, 2026
d5fba96
tools: quick_gl.py, quick_diff for files built with /GL
gynt Nov 8, 2026
f160656
build(BuildingsState): /GL for 3 more callers and the callees they re…
gynt Nov 8, 2026
2767c54
tools(quick_gl): link the callees' callees as well
gynt Nov 8, 2026
83d315e
reimplement: SHC_3BB0A8C1_0x0041B7C0 88.37% size 6 arm placement differs
gynt Nov 8, 2026
058aa40
reimplement: SHC_3BB0A8C1_0x0041B2B0 98.24% tile sum reassociated
gynt Nov 8, 2026
ddb631c
reimplement: SHC_3BB0A8C1_0x0041ADE0 100.00% Reimplemented
gynt Nov 8, 2026
5880427
reimplement: SHC_3BB0A8C1_0x0040A060 88.41% register allocation differs
gynt Nov 8, 2026
65ece27
reimplement: SHC_3BB0A8C1_0x0040D9C0 100.00% Reimplemented
gynt Nov 8, 2026
1705713
reimplement: SHC_3BB0A8C1_0x00421D70 90.26% register allocation differs
gynt Nov 8, 2026
7e65f15
reimplement: SHC_3BB0A8C1_0x0041C310 69.08% repeated test folded
gynt Nov 8, 2026
4e88468
reimplement: SHC_3BB0A8C1_0x00421BE0 82.76% scheduling differs
gynt Nov 8, 2026
bae8be0
reimplement: SHC_3BB0A8C1_0x0041C6F0 84.08% register allocation differs
gynt Nov 8, 2026
d7a0b6b
reimplement: SHC_3BB0A8C1_0x00422C60 100.00% Reimplemented
gynt Nov 8, 2026
4e9cb21
reimplement: SHC_3BB0A8C1_0x00422E20 100.00% Reimplemented
gynt Nov 8, 2026
fb2fb1b
reimplement: SHC_3BB0A8C1_0x004224F0 100.00% Reimplemented
gynt Nov 8, 2026
3a288e7
build(BuildingsState): /GL for findFirstBuildingOfType
gynt Nov 8, 2026
50a8784
reimplement: SHC_3BB0A8C1_0x0041B7C0 100.00% Reimplemented
gynt Nov 8, 2026
2dd9131
reimplement: SHC_3BB0A8C1_0x0041B2B0 98.24% tile sum reassociated
gynt Nov 8, 2026
19cfe05
reimplement: SHC_3BB0A8C1_0x0040A060 100.00% Reimplemented
gynt Nov 8, 2026
6b30f06
reimplement: SHC_3BB0A8C1_0x0041BFD0 100.00% Reimplemented
gynt Nov 8, 2026
25bd322
reimplement: SHC_3BB0A8C1_0x0041C310 100.00% Reimplemented
gynt Nov 8, 2026
0d2767f
reimplement: SHC_3BB0A8C1_0x00421BE0 82.76% scheduling differs
gynt Nov 8, 2026
ca8b142
reimplement: SHC_3BB0A8C1_0x00420D20 92.87% outpost case placed after…
gynt Nov 8, 2026
e7d746b
reimplement: SHC_3BB0A8C1_0x0041C6F0 100.00% Reimplemented
gynt Nov 8, 2026
05ec7ed
reimplement: SHC_3BB0A8C1_0x0040EDF0 100.00% Reimplemented
gynt Nov 8, 2026
e43665a
reimplement: SHC_3BB0A8C1_0x0040CF20 92.04% ebx/ebp swapped
gynt Nov 8, 2026
79c482f
reimplement: SHC_3BB0A8C1_0x0040F8A0 100.00% Reimplemented
gynt Nov 8, 2026
6ab529c
reimplement: SHC_3BB0A8C1_0x0041B2B0 98.24% tile sum reassociated
gynt Nov 8, 2026
42236b7
reimplement: SHC_3BB0A8C1_0x00421BE0 100.00% Reimplemented
gynt Nov 8, 2026
916503d
reimplement: SHC_3BB0A8C1_0x00420D20 93.00% outpost case placed after…
gynt Nov 8, 2026
8dffce1
reimplement: SHC_3BB0A8C1_0x0040CF20 100.00% Reimplemented
gynt Nov 8, 2026
88f21fb
style: apply the Reimplementation Style Guide to 24 BuildingsState cp…
gynt Nov 8, 2026
6091456
Merge origin/main into reimpl/BuildingsState
gynt Dec 3, 2026
85211eb
BuildingsState: adapt two sources to main's signatures
gynt Dec 3, 2026
df46e5d
status: setupBuildingData measures 71.7% after the merge with main
gynt Dec 3, 2026
6124f6e
reimplement: SHC_3BB0A8C1_0x00421D70 90.60% register allocation differs
gynt Dec 3, 2026
f4b5586
reimplement: SHC_3BB0A8C1_0x00420D20 87.02% outpost case kept inline
gynt Dec 4, 2026
bb20e45
status: SHC_3BB0A8C1_0x00419780 initBuildingCosts 100.0% Reimplemente…
gynt Dec 4, 2026
bf1c59f
Merge remote-tracking branch 'origin/main' into d234
gynt Dec 5, 2026
a2935e1
status: setupBuildingData measures 93.0 after merging main; precise g…
gynt Dec 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/compiler-flags-gl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ src/OpenSHC/UI/DisplayElements/GetIfDisplayElementStateNotZero.cpp
src/OpenSHC/UI/DisplayElements/FindDisplayElementWithID.cpp
src/OpenSHC/Map/Buildings/BuildingsState/aiFindBuildingToAttack.cpp
src/OpenSHC/Map/Buildings/BuildingsState/computeBuildingEntranceFlagsForOrientations.cpp
src/OpenSHC/Map/Buildings/BuildingsState/determineBuildingEntranceFromCustomArea.cpp
src/OpenSHC/Map/Buildings/BuildingsState/determineBuildingEntranceFromKeepArea.cpp
src/OpenSHC/Map/Buildings/BuildingsState/resolveBuildingEntryAccessibility.cpp
src/OpenSHC/Map/Buildings/BuildingsState/sortBuildingIDsNeedPeasantsQueue.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
#include "../BuildingsState.func.hpp"

#include "OpenSHC/Map/Navigation/PathFindingState.func.hpp"
#include "OpenSHC/Map/Buildings/BuildingType.hpp"
#include "OpenSHC/Map/LogicHelpers/Logic1.hpp"
#include "OpenSHC/WindowsHelper/Enums/BOOLEnum.hpp"

#include "OpenSHC/Globals/DAT_BuildingDefinedData.hpp"
#include "OpenSHC/Globals/DAT_BuildingsState.hpp"
#include "OpenSHC/Globals/DAT_PathFindingState.hpp"
#include "OpenSHC/Globals/DAT_TileMapState.hpp"
#include "OpenSHC/Globals/DAT_ViewportRenderState.hpp"

namespace OpenSHC {
namespace Map {
namespace Buildings {

using OpenSHC::Map::Buildings::BuildingType;
using OpenSHC::WindowsHelper::Enums::BOOLEnum;

// FUNCTION: STRONGHOLDCRUSADER 0x0041B2B0
BuildingEntranceSearchResult BuildingsState::determineBuildingEntranceFromCustomArea(
int buildingID, int param_2, int param_3, int x, int y)
{
// Finds an entrance tile of the building that can be reached from the tile (x, y).
// param_3 enlarges the area around the building by one tile, param_2 - 1 matching tiles are skipped.
// Returns 1 if an entrance was found, 2 if only an unreachable one (e.g. behind a locked gate) and 0
// otherwise.
// Matching note: the original sums the tile as ((row - param_3) + x) + DAT_TempXOffset, ours as
// ((row + x) - param_3) + DAT_TempXOffset. MSVC reassociates the sum, so no operand order or grouping
// changes it (all 24 orders, split statements, casts, unsigned types, also under /GL). The order follows
// the compiler's internal symbol numbering: one extra stored expression before the first tile
// computation (e.g. this->campfireSpotX = param_2 + 50) gives the original order, two to four do not,
// five does again; ~100 neutral rewrites of the setup code do not shift it. Computing tileX apart from
// the row is what gives the entry stores the original's DAT_TempXOffset - param_3 + x order.

// Tiles that cannot hold an entrance
enum {
BLOCKING_LOGIC = LogicHelpers::L_SEA | LogicHelpers::L_ROCKY | LogicHelpers::L_BUILDING
| LogicHelpers::L_TREE | LogicHelpers::L_RIVER | LogicHelpers::L_CRENEL_VARIATIONUnk
| LogicHelpers::L_KEEP_NON_MANOR_HOUSE | LogicHelpers::L_MOAT
};
int const playerID = this->buildings[buildingID].owner;
int found = 0;
int const areaFrom
= DAT_TileMapState::instance
.PathConnectionLayer[DAT_ViewportRenderState::instance.translationMatrix[y].addXgetTile + x];
// Only the first search allows the larger height difference for quarries
int heightStep = 16;
if (DAT_BuildingsState::instance.buildings[buildingID].buildingType == BT_QUARRY) {
heightStep = 32;
}
int const size = this->buildings[buildingID].widthOrHeight + param_3 * 2;
int tileCount = DAT_BuildingDefinedData::instance.BuildingAccessibleTilesCount[size];
int index;
if (tileCount > 0) {
index = (short)this->buildings[buildingID].entranceAttemptTileIndex % tileCount;
this->buildings[buildingID].entranceAttemptTileIndex = index;
} else {
index = 0;
}
this->buildings[buildingID].buildingEntryX = 0;
this->buildings[buildingID].buildingEntryY = 0;
int const height = this->buildings[buildingID].terrainHeightUnk;

// Tiles next to the building.
// Matching note: the three searches share one counter; a counter per for loop changes the stack slots
int tries;
for (tries = 0; tries < tileCount; ++tries) {
MACRO_CALL_MEMBER(OpenSHC::Map::Buildings::BuildingsState_Func::setupBuildingEntrancesOffset, this)(
size, 1, index, 0);
int const tileY = this->buildings[buildingID].y - param_3 + this->DAT_TempYOffset;
int const tileX = this->buildings[buildingID].x - param_3 + this->DAT_TempXOffset;
int const tile = DAT_ViewportRenderState::instance.translationMatrix[tileY].addXgetTile + tileX;
int tileHeight = DAT_TileMapState::instance.HeightLayer[tile];
if (DAT_TileMapState::instance.BuildingLayer[tile] != 0) {
tileHeight += MACRO_CALL_MEMBER(
OpenSHC::Map::Buildings::BuildingsState_Func::getBuildingHeightForBuildingID,
DAT_BuildingsState::ptr)(DAT_TileMapState::instance.BuildingLayer[tile]);
}
if ((DAT_TileMapState::instance.LogicLayer[tile] & BLOCKING_LOGIC) == 0
&& height <= tileHeight + heightStep && height >= tileHeight - heightStep
&& (areaFrom == 0 || DAT_TileMapState::instance.PathConnectionLayer[tile] == areaFrom
|| MACRO_CALL_MEMBER(OpenSHC::Map::Navigation::PathFindingState_Func::
calculateCanPlayerUnitsNavigateToAreaFromArea,
DAT_PathFindingState::ptr)(
playerID, areaFrom, DAT_TileMapState::instance.PathConnectionLayer[tile], 0)
!= 0)
&& ++found >= param_2) {
this->buildings[buildingID].buildingEntryX
= this->DAT_TempXOffset - param_3 + this->buildings[buildingID].x;
this->buildings[buildingID].buildingEntryY
= this->buildings[buildingID].y - param_3 + this->DAT_TempYOffset;
return OpenSHC::Map::Buildings::Enums::BESR_FOUND;
}
++index;
if (index >= tileCount) {
index = 0;
}
}

// Tiles one step further away (the original reuses the tile count variable)
tileCount = DAT_BuildingDefinedData::instance.BuildingAccessibleTilesCountForOneLarger[size];
for (tries = 0; tries < tileCount; ++tries) {
MACRO_CALL_MEMBER(
OpenSHC::Map::Buildings::BuildingsState_Func::setupNextCandidateLocationComputeOffsets2, this)(
size, 1, index, 0);
int const tileY = this->buildings[buildingID].y - param_3 + this->DAT_TempYOffset;
int const tileX = this->buildings[buildingID].x - param_3 + this->DAT_TempXOffset;
int const tile = DAT_ViewportRenderState::instance.translationMatrix[tileY].addXgetTile + tileX;
int tileHeight = DAT_TileMapState::instance.HeightLayer[tile];
if (DAT_TileMapState::instance.BuildingLayer[tile] != 0) {
tileHeight += MACRO_CALL_MEMBER(
OpenSHC::Map::Buildings::BuildingsState_Func::getBuildingHeightForBuildingID,
DAT_BuildingsState::ptr)(DAT_TileMapState::instance.BuildingLayer[tile]);
}
if ((DAT_TileMapState::instance.LogicLayer[tile] & BLOCKING_LOGIC) == 0 && height <= tileHeight + 16
&& height >= tileHeight - 16
&& (areaFrom == 0 || DAT_TileMapState::instance.PathConnectionLayer[tile] == areaFrom
|| MACRO_CALL_MEMBER(OpenSHC::Map::Navigation::PathFindingState_Func::
calculateCanPlayerUnitsNavigateToAreaFromArea,
DAT_PathFindingState::ptr)(
playerID, areaFrom, DAT_TileMapState::instance.PathConnectionLayer[tile], 0)
!= 0
|| DAT_BuildingDefinedData::instance
.ABuildingTypeValueArray[this->buildings[buildingID].buildingType])
&& ++found >= param_2) {
this->buildings[buildingID].buildingEntryX
= this->DAT_TempXOffset - param_3 + this->buildings[buildingID].x;
this->buildings[buildingID].buildingEntryY
= this->buildings[buildingID].y - param_3 + this->DAT_TempYOffset;
return OpenSHC::Map::Buildings::Enums::BESR_FOUND;
}
++index;
if (index >= tileCount) {
index = 0;
}
}

// Accept any walkable tile next to the building
tileCount = DAT_BuildingDefinedData::instance.BuildingAccessibleTilesCount[size];
if (tileCount > 0) {
index = (short)this->buildings[buildingID].entranceAttemptTileIndex % tileCount;
this->buildings[buildingID].entranceAttemptTileIndex = index;
} else {
index = 0;
}
for (tries = 0; tries < tileCount; ++tries) {
MACRO_CALL_MEMBER(OpenSHC::Map::Buildings::BuildingsState_Func::setupBuildingEntrancesOffset, this)(
size, 1, index, 0);
int const tileY = this->buildings[buildingID].y - param_3 + this->DAT_TempYOffset;
int const tileX = this->buildings[buildingID].x - param_3 + this->DAT_TempXOffset;
int const tile = DAT_ViewportRenderState::instance.translationMatrix[tileY].addXgetTile + tileX;
int tileHeight = DAT_TileMapState::instance.HeightLayer[tile];
if (DAT_TileMapState::instance.BuildingLayer[tile] != 0) {
tileHeight += MACRO_CALL_MEMBER(
OpenSHC::Map::Buildings::BuildingsState_Func::getBuildingHeightForBuildingID,
DAT_BuildingsState::ptr)(DAT_TileMapState::instance.BuildingLayer[tile]);
}
if ((DAT_TileMapState::instance.LogicLayer[tile] & BLOCKING_LOGIC) == 0 && height <= tileHeight + 16
&& height >= tileHeight - 16 && DAT_TileMapState::instance.PathConnectionLayer[tile] != 0
&& ++found >= param_2) {
this->buildings[buildingID].buildingEntryX
= this->DAT_TempXOffset - param_3 + this->buildings[buildingID].x;
this->buildings[buildingID].buildingEntryY
= this->buildings[buildingID].y - param_3 + this->DAT_TempYOffset;
return OpenSHC::Map::Buildings::Enums::BESR_UNREACHABLE;
}
++index;
if (index >= tileCount) {
index = 0;
}
}
return OpenSHC::Map::Buildings::Enums::BESR_NOT_FOUND;
}

}
}
}
Loading