Skip to content

Commit

Permalink
Remove patch module for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteZ1337 committed Apr 16, 2024
1 parent c58986a commit e24fe39
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/command/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pub type ArtHeader = Vec<AssetMetadata>;

pub mod pack;
pub mod unpack;
pub mod patch;
// pub mod patch;
2 changes: 1 addition & 1 deletion src/command/unpack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use binrw::BinRead;
use binrw::io::BufReader;

use crate::{crypto, NewArgs};
use crate::read_ext::ReadExt;
use crate::command::ArtHeader;
use crate::read_ext::ReadExt;
use crate::unity::AssetsFile;

pub fn unpack(args: &NewArgs, input: &PathBuf, output: &PathBuf) -> anyhow::Result<()> {
Expand Down
5 changes: 3 additions & 2 deletions src/crypto.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::slice;
use std::path::Path;
use std::fs::File;
use std::io::{Read, Seek};
use std::path::Path;
use std::slice;

use crate::{KeyExtractError, NewArgs};

const KEY_OFFSET: usize = 0x39420;
Expand Down
9 changes: 3 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
use std::fs::File;
use std::io::{BufReader, Cursor, Read, Seek, SeekFrom, Write};
use std::path::{Path, PathBuf};
use std::io::{Read, Seek, Write};
use std::path::PathBuf;

use binrw::{BinRead, binrw, BinWrite};
use clap::Parser;
use clap_derive::{Parser, Subcommand, ValueEnum};
use serde::{Deserialize, Serialize};
use thiserror::Error;
use walkdir::WalkDir;

use crate::command::{pack, unpack};
use crate::read_ext::ReadExt;
use crate::command::{AssetMetadata, pack, patch, unpack};
use crate::unity::AssetsFile;

mod crypto;
mod read_ext;
Expand Down

0 comments on commit e24fe39

Please sign in to comment.