bnd: fix docs from rebase
This commit is contained in:
parent
0f9ac5330e
commit
a8f4033174
|
@ -23,9 +23,8 @@ pub fn extract_bnd_file(
|
||||||
|
|
||||||
/// Extract BND contents to disk.
|
/// Extract BND contents to disk.
|
||||||
///
|
///
|
||||||
/// Files in the BND are written in the output_path directory, creating it if needed, without
|
/// Files in the BND are written in the output_dir directory, creating
|
||||||
/// preserving directory structure. If the BND do not contain paths, it will be named after its ID.
|
/// it if needed, without preserving directory structure.
|
||||||
/// If it does not have IDs, consecutive integers will be used.
|
|
||||||
pub fn extract_bnd(
|
pub fn extract_bnd(
|
||||||
bnd: &bnd::Bnd,
|
bnd: &bnd::Bnd,
|
||||||
bnd_data: &Vec<u8>,
|
bnd_data: &Vec<u8>,
|
||||||
|
@ -83,7 +82,6 @@ fn extract_bnd_entry(
|
||||||
///
|
///
|
||||||
/// Wraps around `load_bnd` to load the BND from disk. It returns the
|
/// Wraps around `load_bnd` to load the BND from disk. It returns the
|
||||||
/// parsed BND metadata and the whole file as a byte vector.
|
/// parsed BND metadata and the whole file as a byte vector.
|
||||||
/// Wraps around `load_bnd` to load the BND from disk.
|
|
||||||
pub fn load_bnd_file(bnd_path: &str) -> Result<(bnd::Bnd, Vec<u8>), UnpackError> {
|
pub fn load_bnd_file(bnd_path: &str) -> Result<(bnd::Bnd, Vec<u8>), UnpackError> {
|
||||||
let mut bnd_file = fs::File::open(bnd_path)?;
|
let mut bnd_file = fs::File::open(bnd_path)?;
|
||||||
let file_len = bnd_file.metadata()?.len() as usize;
|
let file_len = bnd_file.metadata()?.len() as usize;
|
||||||
|
|
Reference in a new issue