Skip to content

Commit

Permalink
Actually rename the crate folder
Browse files Browse the repository at this point in the history
  • Loading branch information
garyttierney committed Mar 11, 2024
1 parent 7919e8c commit 694b244
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ members = [
"crates/formats",
"crates/cli",
"crates/viewer",
"crates/vfs",
"crates/dvdbnd",
]

[workspace.package]
Expand All @@ -48,7 +48,7 @@ ptr_cast_constness = "warn"

[workspace.dependencies]
fstools_formats = { path = "crates/formats", version = "0.1.0" }
fstools_dvdbnd = { path = "crates/vfs", version = "0.1.0" }
fstools_dvdbnd = { path = "crates/dvdbnd", version = "0.1.0" }
memmap2 = "0.7"
rayon = "1"
thiserror = "1"
2 changes: 1 addition & 1 deletion benches/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub fn vfs_open_benchmark(c: &mut Criterion) {
er_path.join("sd/sd"),
];

let vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create vfs");
let vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create dvdbnd");

black_box(vfs)
})
Expand Down
4 changes: 2 additions & 2 deletions crates/cli/src/bin/bdt-extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn main() -> Result<(), std::io::Error> {
er_path.join("sd/sd"),
];

let vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create vfs");
let vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create dvdbnd");

let dictionary = std::fs::read_to_string(args.dictionary)?;
let lines = dictionary
Expand All @@ -53,7 +53,7 @@ fn main() -> Result<(), std::io::Error> {
let mut buffer = Vec::new();
entry
.read_to_end(&mut buffer)
.expect("Could not read from vfs to file buffer");
.expect("Could not read from dvdbnd to file buffer");

let output_path = std::path::PathBuf::from(format!("./extract/{}", path));
let directory = output_path.parent().unwrap();
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/bin/matbin-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fn main() -> Result<(), Box<dyn Error>> {
er_path.join("sd/sd"),
];

let vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create vfs");
let vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create dvdbnd");
let matbinbnd = vfs.open("/material/allmaterial.matbinbnd.dcx").unwrap();

let (_, mut decoder) = DcxHeader::read(matbinbnd)?;
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions crates/vfs/src/bnd.rs → crates/dvdbnd/src/bnd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pub struct BndMountHost {

#[derive(Debug, Error)]
pub enum BndMountError {
#[error("Could not get vfs file reader: {0}")]
#[error("Could not get dvdbnd file reader: {0}")]
VfsOpen(#[from] DvdBndEntryError),

#[error("Could not get copy bnd4 bytes from vfs reader: {0}")]
#[error("Could not get copy bnd4 bytes from dvdbnd reader: {0}")]
DataCopy(io::Error),

#[error("Could not parse Dcx: {0}")]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion crates/viewer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fn main() {
er_path.join("sd/sd"),
];

let mut vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create vfs");
let mut vfs = DvdBnd::create(archives.clone(), &keys).expect("unable to create dvdbnd");

vfs.mount("/parts/wp_a_0210.partsbnd.dcx")
.expect("Could not mount bnd");
Expand Down
2 changes: 1 addition & 1 deletion tests/dcx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fn main() -> Result<(), Box<dyn Error>> {
er_path.join("sd/sd"),
];

let vfs = Arc::new(DvdBnd::create(archives.clone(), &keys).expect("unable to create vfs"));
let vfs = Arc::new(DvdBnd::create(archives.clone(), &keys).expect("unable to create dvdbnd"));

let dictionary = include_str!("data/EldenRingDictionary.txt");
let lines = dictionary
Expand Down

0 comments on commit 694b244

Please sign in to comment.