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
  •  
  •  
  •  
16 changes: 8 additions & 8 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ not (
| (binary_id(=or-io) & (
test(/^codec::texture::image::tests::/)
| test(/^container::rpf::crypto::encrypt_cache::tests::/)
| test(/^container::rpf::gta6_extract::tests::the_extracted_snapshot/)
| test(/^container::rpf::gta6_patch::tests::a_one_mebibyte_chunk_past_the_old_cap_is_patched_by_the_optimal_parse$/)
| test(/^container::rpf::gta6_extract::tests::the_real_executable_opens/)
| test(/^container::rpf::rpf9::gta6_extract::tests::the_extracted_snapshot/)
| test(/^container::rpf::rpf9::gta6_patch::tests::a_one_mebibyte_chunk_past_the_old_cap_is_patched_by_the_optimal_parse$/)
| test(/^container::rpf::rpf9::gta6_extract::tests::the_real_executable_opens/)
| test(/^gta6::headerless::write_geometry::cut::palette_tests::/)
| test(/^gta6::headerless::write_geometry::per_geometry::build_tests::/)
| test(/^gta6::script::native_addresses::tests::the_users_listings/)
Expand Down Expand Up @@ -433,11 +433,11 @@ not (
| binary_id(=or-project::a_pack_is_counted_by_the_entries_each_archive_holds_and_divides_between_contents)
| (binary_id(=or-project::gta6_mod) & test(/^a_gta6_build_row_given_its_own_body_plans_as_a_patched_copy$/))
| (binary_id(=or-renderer) & (
test(/^game_shaders::drawable::tests::/)
| test(/^game_shaders::model::tests::/)
| test(/^game_shaders::pipeline::tests::/)
| test(/^game_shaders::sprite::tests::/)
| test(/^game_shaders::trail::tests::/)
test(/^game_shaders::geometry::drawable::tests::/)
| test(/^game_shaders::geometry::model::tests::/)
| test(/^game_shaders::core::pipeline::tests::/)
| test(/^game_shaders::geometry::sprite::tests::/)
| test(/^game_shaders::geometry::trail::tests::/)
| test(/^gpu_timer::tests::/)
| test(/^particle_meshes::tests::/)
| test(/^particle_sprites::tests::/)
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ starts the editor take the focus of the owner's desktop. Do not run them.
panel, and exits non-zero on a panic, a panel that painted nothing, or a
run that wrote no preferences.
- It resolves its configuration to a scratch directory it removes, and
`src/self_check.rs` refuses to run against the real one; set
`src/self_check/mod.rs` refuses to run against the real one; set
`OPENRAGE_CONFIG_DIR` to keep what it writes.
- `--viewport` adds a surfaceless wgpu device and draws through the render
bridge. Nothing reaches winit or a window surface, so if a change cannot be
Expand Down
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions LICENSE-third-party.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ keep, then its origin.
| `crates/io/or-io/src/gta6/bcpack/bc1_tables.rs` | the two JSON tables of its data folder | The preset endpoints and the quadrant indices of the BC1 mode, which bcpack-rs fitted; the values are unchanged. |
| `crates/io/or-io/src/gta6/bcpack/tests.rs` | encode.rs of its sources | The coder the tests build their streams with; the tests are OpenRage's own. |

`crates/io/or-io/src/gta6/bcpack.rs` is OpenRage's own, and so are
`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
Expand Down Expand Up @@ -199,15 +199,15 @@ contributors' Rust translation of Google's Zopfli, offered under Apache-2.0
with the appendix line Copyright 2011 Google Inc. Its terms are the Apache-2.0
text reproduced at the end of this file for rusty_mp3, word for word but for
that line. It is pure Rust, and the package carries no NOTICE file. Only
`crates/io/or-io/src/container/rpf/gta6_patch.rs` calls it.
`crates/io/or-io/src/container/rpf/rpf9/gta6_patch.rs` calls it.

## Linked: the Opus codec

`or-media` decodes and encodes GTA VI's Opus `.awc` streams with the
[ropus](https://crates.io/crates/ropus) crate, version 0.12.18, a pure-Rust
fixed-point port of the Xiph.Org Opus codec, offered under BSD-3-Clause. Its
licence is reproduced at the end of this file, with the royalty-free patent
licences it points to. Only `crates/io/or-media/src/opus.rs` calls it.
licences it points to. Only `crates/io/or-media/src/opus/mod.rs` calls it.

## Bundled: the Inter typeface

Expand Down
13 changes: 13 additions & 0 deletions crates/domain/or-wardrobe/src/build/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//! Slot allocation, resource layout, metadata writing, build planning, verification and export.

pub mod alloc;
pub mod export;
pub mod freeze;
pub mod layout;
pub mod metadata;
pub mod options;
pub mod outfit;
pub mod plan;
pub mod replace_mode;
pub mod sizes;
pub mod verify;
19 changes: 19 additions & 0 deletions crates/domain/or-wardrobe/src/intake/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//! Bringing files, folders, resources and packages into a Wardrobe pack, and gathering facts about them.

mod ingest;

pub mod adopt;
pub mod cache;
pub mod facts;
pub mod follow;
pub mod gctproject;
pub(crate) mod images;
pub mod import;
pub mod measure;
pub mod pack_package;
pub mod package;
pub mod reopen;
pub mod resolve;
pub(crate) mod source_facts;

pub(crate) use ingest::{content_digest, decompiled, model, texture, Scratch};
83 changes: 22 additions & 61 deletions crates/domain/or-wardrobe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,69 +13,30 @@
//! ⚠ **Nothing here says a pack loads in game.** A build says that every file it wrote reloads
//! through the readers, which is all that can be measured without running GTA V.

pub mod adopt;
pub mod alloc;
pub mod alternate;
pub mod audio;
pub mod backup;
pub mod behaviour;
pub mod budget;
pub mod bulk;
pub mod cache;
pub mod changes;
pub mod credits;
pub mod dress;
pub mod dummies;
pub mod dump;
pub mod duplicate;
pub mod edit;
pub mod export;
pub mod facts;
pub mod firstperson;
pub mod fix;
pub mod flags;
pub mod follow;
pub mod freeze;
pub mod gctproject;
pub mod hair;
pub mod heels;
mod images;
pub mod import;
mod intake;
pub mod layout;
pub mod lock;
pub mod maps;
pub mod mask;
pub mod measure;
pub mod mesh;
pub mod metadata;
pub mod build;
pub mod intake;
pub mod model;
pub mod names;
pub mod options;
pub mod outfit;
pub mod pack_package;
pub mod package;
pub mod plan;
pub mod query;
pub mod redo;
pub mod reopen;
mod repair;
pub mod replace;
pub mod replace_mode;
pub mod resolve;
pub mod review;
pub mod rules;
pub mod search;
pub mod settings;
pub mod ops;
pub mod shop;
pub mod shop_edit;
pub mod sizes;
pub mod slots;
mod source_facts;
pub mod textures;
pub mod variations;
pub mod verify;
pub mod wind;

pub use build::{
alloc, export, freeze, layout, metadata, options, outfit, plan, replace_mode, sizes, verify,
};
pub use intake::{
adopt, cache, facts, follow, gctproject, import, measure, pack_package, package, reopen,
resolve,
};
pub(crate) use intake::{images, source_facts};
pub use model::{
alternate, audio, behaviour, dummies, firstperson, flags, hair, heels, mask, names, rules,
settings, wind,
};
pub(crate) use ops::repair;
pub use ops::{
backup, budget, bulk, duplicate, edit, fix, lock, maps, mesh, redo, replace, slots, textures,
variations,
};
pub use shop::{changes, credits, dress, dump, query, review, search, shop_edit};

pub use adopt::Clothing;
pub use alloc::{allocate, places_of, Allocation, Placed, Refused, MAX_PARTS, MAX_POSITION};
Expand Down
22 changes: 22 additions & 0 deletions crates/domain/or-wardrobe/src/model/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//! The Wardrobe data model: garments, variations, ped/slot naming, behaviour fields, settings and rules.

mod wardrobe;

pub mod alternate;
pub mod audio;
pub mod behaviour;
pub mod dummies;
pub mod firstperson;
pub mod flags;
pub mod hair;
pub mod heels;
pub mod mask;
pub mod names;
pub mod rules;
pub mod settings;
pub mod wind;

pub use wardrobe::{
new_id, schema, Carried, Error, Expression, Garment, Meta, Shop, ShopEntry, Stated, Variation,
Waiver, Wardrobe, FILE, FORMAT, SCHEMA,
};
17 changes: 17 additions & 0 deletions crates/domain/or-wardrobe/src/ops/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//! Pack editing, undo/redo, backups, locks, safe fixes, texture optimisation and the mesh doctor.

pub mod backup;
pub mod budget;
pub mod bulk;
pub mod duplicate;
pub mod edit;
pub mod fix;
pub mod lock;
pub mod maps;
pub mod mesh;
pub mod redo;
pub(crate) mod repair;
pub mod replace;
pub mod slots;
pub mod textures;
pub mod variations;
19 changes: 19 additions & 0 deletions crates/domain/or-wardrobe/src/shop/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//! Shop metadata, server dumps, dressing, queries, diffs and credits for a Wardrobe pack.

mod apparel;

pub mod changes;
pub mod credits;
pub mod dress;
pub mod dump;
pub mod query;
pub mod review;
pub mod search;
pub mod shop_edit;

pub(crate) use apparel::compact;
pub use apparel::{
apply, carried_path, clashes, discover, escape, id_of, ids_in, is_written, key_of, kind_of,
looks_like_shop, parse, parse_tree, registered, slot_of, write_entry, written, Found, Key,
Node, Offered, Place, Raw, Registered, ShopFile, ShopReport, Written, META_TYPE, ROOT,
};
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ fn the_engine_has_no_module_that_keeps_originals_or_files_written_over() {
#[test]
fn a_step_of_undo_carries_the_pack_and_its_copies_and_nothing_written_over() {
for file in [
"edit.rs",
"redo.rs",
"duplicate.rs",
"replace.rs",
"variations.rs",
"ops/edit.rs",
"ops/redo.rs",
"ops/duplicate.rs",
"ops/replace.rs",
"ops/variations.rs",
] {
let text = std::fs::read_to_string(src(file)).unwrap();
assert!(
Expand Down
17 changes: 17 additions & 0 deletions crates/domain/or-world-gta5/src/archetypes/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//! Archetypes, type files (`.ytyp`), catalogues, models, textures, vehicles and collision bounds.

mod resolve;

pub mod archetype_assets;
pub mod catalogue;
pub mod collision;
pub mod contents;
pub mod map_types;
pub mod model_catalogue;
pub(crate) mod models;
pub mod tables;
pub(crate) mod textures;
pub mod vehicles;
pub mod world_collision;

pub use resolve::ArchetypeIndex;
13 changes: 13 additions & 0 deletions crates/domain/or-world-gta5/src/authoring/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//! Authoring GTA V world files: creating, writing, planning, executing, validating, generating, prefabs and XML.

pub mod create;
pub mod execute;
pub mod generate;
pub mod manifest_build;
pub mod partition;
pub mod plan;
pub mod prefab;
pub mod script_text;
pub mod validate;
pub mod write;
pub mod xml;
Loading
Loading