Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
206 changes: 103 additions & 103 deletions .config/nextest.toml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions LICENSE-third-party.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ keep, then its origin.
`crates/io/or-io/src/gta6/bcpack/mod.rs` is OpenRage's own, and so are
`crates/io/or-io/src/gta6/bcpack/bc2.rs`, which rebuilds BC2 blocks from their fifteen lanes,
`crates/io/or-io/src/gta6/bcpack/planes.rs`, which rebuilds BC1, BC3, BC4 and BC5 blocks through
tables, and `crates/io/or-io/src/gta6/bcpack/calibrate.rs`, which fits those tables on the user's
tables, and `crates/io/or-io/src/gta6/bcpack/calibrate/mod.rs`, which fits those tables on the user's
machine from the user's own packs. The lane
widths of the modes other than BC1 are facts stated in the documentation of
[ItsNotRexed/Leonida](https://github.com/ItsNotRexed/Leonida)
Expand All @@ -102,7 +102,7 @@ holds the BC2 quadrant ranks and initial preset entries adapted from
its MIT licence. Both MIT notices and Xbox2Windows's MIT notice are reproduced at the end of this
file.

`crates/io/or-io/src/gta6/bcpack/supplied.rs` reads a file of the coder's tables: one a user
`crates/io/or-io/src/gta6/bcpack/supplied/mod.rs` reads a file of the coder's tables: one a user
supplies, else `crates/io/or-io/data/bcpack-tables.bin`, which the tree holds by the owner's
ruling of 2026-11-27. That file is the one VIctory publishes, byte for byte. No licence is stated
for the tables, whose they are is not known, and OpenRage's licence does not cover them. Nothing
Expand Down Expand Up @@ -132,7 +132,7 @@ as generated source. What the reader takes from them is facts about the file's l

The tree holds no measurement of these on a pack. What it shows of them is the reader and its
tests, which read a made-up file in this layout
(`crates/io/or-io/src/gta6/bcpack/supplied_tests.rs`), and
(`crates/io/or-io/src/gta6/bcpack/supplied/tests.rs`), and
`openrage-cli ttpf tables --check` measures a file against a user's own packs: a BC6H or BC7
list read by another layout leaves blocks no encoder writes, and the other tables are held to
the plain mips beside the coded ones. The reader is OpenRage's own code. Two reviews held it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,5 +289,4 @@ pub fn light(
}

#[cfg(test)]
#[path = "exposure_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -728,5 +728,4 @@ pub fn name_hash(name: &str) -> u32 {
}

#[cfg(test)]
#[path = "frame_tests.rs"]
mod tests;
1 change: 0 additions & 1 deletion crates/domain/or-world-gta6/src/day/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,5 +622,4 @@ pub fn read_day(archive: &Path, stop: &dyn Fn() -> bool) -> io::Result<DayTables
}

#[cfg(test)]
#[path = "day_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -421,5 +421,4 @@ impl Atmosphere {
}

#[cfg(test)]
#[path = "sky_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -685,5 +685,4 @@ fn unit_interval(value: f64) -> f64 {
}

#[cfg(test)]
#[path = "sun_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,4 @@ pub fn read_executable_day(archive: &Path) -> ExecutableDay {
}

#[cfg(test)]
#[path = "vars_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -331,5 +331,4 @@ pub fn find_in_schedule(
}

#[cfg(test)]
#[path = "weather_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -501,5 +501,4 @@ impl WindState {
}

#[cfg(test)]
#[path = "wind_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -480,9 +480,7 @@ fn put(
}

#[cfg(any(test, feature = "made-up"))]
#[path = "edit_entities_made_up.rs"]
pub mod made_up;

#[cfg(test)]
#[path = "edit_entities_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ use or_io::meta::binary::hash_index::default_hash_index;
use or_io::meta::{MetaInstance, Value};
use or_world::transform::Pose;

#[path = "edit_entities.rs"]
pub mod entities;
#[path = "edit_extents.rs"]
pub mod extents;

pub const ENTITIES: u32 = lit(b"entities");
Expand Down Expand Up @@ -203,5 +201,4 @@ pub fn over(map: &StreamMap, tree: &MetaInstance) -> Option<StreamMap> {
}

#[cfg(test)]
#[path = "edit_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,12 @@ use glam::Vec3;
use or_title::gta6_mount::{self, HeldBack, MapFact, Mode, SCRIPT_MANAGED};
use or_world::streaming::MapBox;

#[path = "index_install.rs"]
mod install;
#[path = "index_mount.rs"]
mod mount;
#[path = "index_open.rs"]
mod open;
#[path = "index_rows.rs"]
mod rows;
#[path = "index_scan.rs"]
mod scan;
#[path = "index_scan_table.rs"]
mod scan_table;
#[path = "index_states.rs"]
mod states;
use or_io::gta6::map::index_types as types;
use or_io::gta6::map::lights_index;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,4 @@ pub(super) fn archives_under(root: &Path) -> Vec<PathBuf> {
}

#[cfg(test)]
#[path = "index_mount_tests.rs"]
pub(super) mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,4 @@ fn build_through(
}

#[cfg(test)]
#[path = "index_open_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -223,5 +223,4 @@ pub(super) fn scan_by_table(
}

#[cfg(test)]
#[path = "index_scan_table_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -247,5 +247,4 @@ pub(super) fn switches(
}

#[cfg(test)]
#[path = "index_states_tests.rs"]
pub(super) mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,12 @@ use or_world::streaming::{Extent, Forest, Kind, Level, NodeId, NodeState, View,
use crate::index::{Enabled, ModelRef, WorldIndex};
use or_world::pool::Pool;

#[path = "stream_census.rs"]
mod census;
#[path = "stream_grass.rs"]
mod grass;
#[path = "stream_laid.rs"]
mod laid;
#[path = "stream_pick.rs"]
pub mod pick;
#[path = "stream_read.rs"]
mod read;
#[path = "stream_slod.rs"]
pub mod slod;
#[path = "stream_world.rs"]
mod world;

pub use census::Census;
Expand Down Expand Up @@ -928,5 +921,4 @@ impl Streamer {
}

#[cfg(test)]
#[path = "stream_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -445,5 +445,4 @@ fn describe(
}

#[cfg(test)]
#[path = "stream_pick_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const ALLOWED: &[(&str, &str)] = &[
"the editor's own staging folder, which a self-check and a test build keep out of",
),
(
"src/state/prefs.rs",
"src/state/prefs/mod.rs",
"the folder a self-check names for its scratch, which the run removes however it ends",
),
(
Expand All @@ -46,15 +46,15 @@ const ALLOWED: &[(&str, &str)] = &[
"the scratch folder of a photograph run, which its drop guard removes however the run ends",
),
(
"src/state/test_scratch.rs",
"src/state/tests/test_scratch.rs",
"the one scratch folder of a test process, removed as the process ends",
),
(
"src/state/a_self_check_keeps_to_itself.rs",
"src/state/tests/a_self_check_keeps_to_itself.rs",
"lists the editor's staging folder to see that a self-check added nothing to it",
),
(
"src/state/a_plugin_asks_before_it_runs.rs",
"src/state/tests/a_plugin_asks_before_it_runs.rs",
"names a document's path outside every install and writes nothing there",
),
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,5 +593,4 @@ pub(super) fn instance_node(instance: &Instance, index: usize) -> Result<Instanc
}

#[cfg(test)]
#[path = "build_tests.rs"]
pub(super) mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -255,5 +255,4 @@ fn triangle(
}

#[cfg(test)]
#[path = "intersect_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -280,5 +280,4 @@ impl Query {
}

#[cfg(test)]
#[path = "query_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,4 @@ impl Arena {
}

#[cfg(test)]
#[path = "refit_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -236,5 +236,4 @@ pub fn twice_described(
}

#[cfg(test)]
#[path = "select_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -1052,8 +1052,6 @@ pub fn walk_wave(
}

#[cfg(test)]
#[path = "walk_tests.rs"]
mod tests;
#[cfg(test)]
#[path = "wave_tests.rs"]
mod wave_tests;
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,4 @@ fn inverse(a: u32) -> u32 {
}

#[cfg(test)]
#[path = "columns_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,4 @@ fn volume(v: &[[f32; 3]; 4]) -> f64 {
}

#[cfg(test)]
#[path = "databases_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -411,5 +411,4 @@ impl Section<'_> {
}

#[cfg(test)]
#[path = "expressions_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -112,5 +112,4 @@ pub(super) fn remove_facial_output(
}

#[cfg(test)]
#[path = "expressions_group_d_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use super::expressions::{
};
use super::AnimError;

#[path = "expressions_group_d.rs"]
mod group_d;
pub use group_d::offered_facial_outputs;

Expand Down Expand Up @@ -517,9 +516,7 @@ pub fn write_edited_expressions(
}

#[cfg(test)]
#[path = "expressions_layout_tests.rs"]
mod tests;

#[cfg(test)]
#[path = "expressions_shape_tests.rs"]
mod shape_tests;
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,7 @@ impl Section<'_> {
}
}

#[path = "matcher_levels.rs"]
mod levels;

#[cfg(test)]
#[path = "matcher_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -628,5 +628,4 @@ fn object(
}

#[cfg(test)]
#[path = "metadata_tests.rs"]
mod tests;
1 change: 0 additions & 1 deletion crates/io/or-io/src/gta6/anim/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1571,5 +1571,4 @@ fn delta_ranges(
}

#[cfg(test)]
#[path = "anim_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,4 @@ fn the_clips_of_a_sample_of_the_build_state_the_signature_their_fields_give() {
assert!(t.edited > 0, "no clip of the sample took an edit");
}

#[path = "replace_build_tests.rs"]
mod replace;
Original file line number Diff line number Diff line change
Expand Up @@ -896,23 +896,13 @@ fn motion_at(bytes: &[u8], name: &str) -> usize {
}
pointer_at(bytes, entry + 8)
}
#[path = "clip_signature_tests.rs"]
mod clip_signature;
#[path = "clip_signature_build_tests.rs"]
mod clip_signature_build;
#[path = "motion_loop_tests.rs"]
mod motion_loop;
#[path = "write_tests.rs"]
mod write;
#[path = "write_derived_and_grown_tests.rs"]
mod write_derived_and_grown;
#[path = "write_edit_tests.rs"]
mod write_edit;
#[path = "write_in_extent_tests.rs"]
mod write_in_extent;
#[path = "write_mapped_tests.rs"]
mod write_mapped;
#[path = "write_relayout_tests.rs"]
mod write_relayout;
#[path = "write_replace_tests.rs"]
mod write_replace;
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ fn a_motion_s_loop_is_set_and_cleared_in_one_bit_and_the_section_keeps_its_lengt
assert_eq!(section(&cleared), &b.0[..]);
}

#[path = "motion_loop_build_tests.rs"]
mod on_the_build;
Original file line number Diff line number Diff line change
Expand Up @@ -402,5 +402,4 @@ fn read_event(n: &Names, event: &MetaInstance) -> Event {
}

#[cfg(test)]
#[path = "anim_scene_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -560,5 +560,4 @@ fn curve(
}

#[cfg(test)]
#[path = "audio_data_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
use std::collections::{BTreeMap, BTreeSet};
use std::hash::{DefaultHasher, Hash, Hasher};

use super::audio_data::{AudioData, AudioDataError, AudioDataKind, AudioItem};
use super::data::{AudioData, AudioDataError, AudioDataKind, AudioItem};

#[path = "audio_tables.rs"]
mod tables;

pub use tables::{SlotRole, SlotValue, TableField, TableItem, TableValue};
Expand Down Expand Up @@ -328,7 +327,7 @@ pub fn config_names(
"the pool offset {at} of key {key:#010X} starts no name"
))
})?;
if super::hash::name_hash32(name) != key {
if crate::gta6::hash::name_hash32(name) != key {
return Err(bad(format!(
"the pool name at {at} does not hash to its item's key {key:#010X}"
)));
Expand Down Expand Up @@ -409,5 +408,4 @@ impl WaveIndex {
}

#[cfg(test)]
#[path = "audio_links_tests.rs"]
mod tests;
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ impl ValueType {

/// The data offset of the item `key` names in `data`'s index, which its order sorts.
fn item_offset(data: &AudioData, key: u32) -> Option<u32> {
use crate::gta6::audio_data::index_order;
use super::super::data::index_order;
let i = (data.index)
.binary_search_by_key(&index_order(key), |e| index_order(e.0))
.ok()?;
Expand Down
5 changes: 5 additions & 0 deletions crates/io/or-io/src/gta6/audio/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//! GTA VI's audio container data, cross-reference links and radio station metadata.

pub mod data;
pub mod links;
pub mod radio;
Loading
Loading