Enable Tracks 7-9 across menus, loaders, modes, tests, and update README

This commit is contained in:
Luxferre committed 2026-12-01 14:18:37 +02:00
1 parent 5a42ca9968
commit fc76e447fe
15 files changed
+256 -103

No files matched your search

+14 -6
View File
@@ -32,11 +32,13 @@ int main() {
Vfs vfs;
CHECK(vfs.init(HIOCTANE_DEFAULT_DATA_DIR));
// 1. Palette & ColorTables (0..5)
CHECK(assets::count_available_tracks(vfs) == 9);
// 1. Palette & ColorTables (0..8)
Palette pal;
CHECK(pal.load(vfs));
CHECK(pal.colors[1].a == 255);
for (int w = 0; w < 6; ++w) {
for (int w = 0; w < 9; ++w) {
ColorTables tbl;
CHECK(tbl.load(vfs, w, pal));
WorldTextures wtex;
@@ -44,16 +46,22 @@ int main() {
CHECK(wtex.tile_rgba.size() == 256u * 64u * 64u * 4u);
CHECK(wtex.sky_rgba.size() == 256u * 256u * 4u);
}
std::cout << "[PASS] Palette, 6 ColorTables, 6 WorldTextures & Skies\n";
std::cout << "[PASS] Palette, 9 ColorTables, 9 WorldTextures & Skies\n";
// 2. All 6 Levels (decompression, CRC16, entities, columns, blocks, waypoints, checkpoints)
for (int l = 1; l <= 6; ++l) {
// 2. All 9 Levels (decompression, CRC16, entities, columns, blocks, waypoints, checkpoints)
for (int l = 1; l <= 9; ++l) {
LevelData lvl;
CHECK(lvl.load(vfs, l));
CHECK(lvl.map.size() == kMapWidth * kMapHeight);
CHECK(!lvl.main_waypoints.empty());
CHECK(!lvl.checkpoints.empty());
CHECK(lvl.checkpoints[0].index == 0);
for (const auto& cp : lvl.checkpoints) {
CHECK(cp.x0 != cp.x1 || cp.z0 != cp.z1);
}
if (l == 7) {
CHECK(lvl.checkpoints.size() == 6);
}
// Verify all referenced columns & floor tiles are within valid bounds
int col_cells = 0;
@@ -80,7 +88,7 @@ int main() {
<< " pickups=" << lvl.pickups.size()
<< " h=[" << min_h << ".." << max_h << "]\n";
}
std::cout << "[PASS] All 6 Levels parsed & validated\n";
std::cout << "[PASS] All 9 Levels parsed & validated\n";
// 3. Object texture atlases & all 3D models in OBJECTS/DATA/
ObjectTextureAtlas obj_atlas;