mirror of
https://github.com/xavo95/repak.git
synced 2025-01-18 10:54:38 +00:00
rebrand before crates.io publish
This commit is contained in:
parent
600bbd21a1
commit
d0f9767444
4 changed files with 15 additions and 12 deletions
|
@ -1,8 +1,11 @@
|
|||
[package]
|
||||
name = "un-pak"
|
||||
name = "unpak"
|
||||
authors = ["spuds"]
|
||||
repository = "https://github.com/bananaturtlesandwich/un-pak"
|
||||
repository = "https://github.com/bananaturtlesandwich/unpak"
|
||||
description = "a no-nonsense unreal pak parsing crate"
|
||||
license = "MIT OR Apache-2.0"
|
||||
keywords = ["modding", "parsing", "compression"]
|
||||
categories = ["filesystem", "parser-implementations"]
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
fn main() -> Result<(), un_pak::Error> {
|
||||
let pak = un_pak::Pak::new(
|
||||
fn main() -> Result<(), unpak::Error> {
|
||||
let pak = unpak::Pak::new(
|
||||
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
|
||||
un_pak::Version::CompressionEncryption,
|
||||
unpak::Version::CompressionEncryption,
|
||||
None,
|
||||
)?;
|
||||
for file in pak.files() {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
fn main() -> Result<(), un_pak::Error> {
|
||||
let mut pak = un_pak::Pak::new(
|
||||
fn main() -> Result<(), unpak::Error> {
|
||||
let mut pak = unpak::Pak::new(
|
||||
std::io::BufReader::new(std::io::Cursor::new(include_bytes!("rando_p.pak"))),
|
||||
un_pak::Version::CompressionEncryption,
|
||||
unpak::Version::CompressionEncryption,
|
||||
None,
|
||||
)?;
|
||||
for file in pak.files() {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
fn main() -> Result<(), un_pak::Error> {
|
||||
fn main() -> Result<(), unpak::Error> {
|
||||
// drag onto or open any pak with the example
|
||||
let path = std::env::args().nth(1).unwrap_or_default();
|
||||
for ver in un_pak::Version::iter() {
|
||||
match un_pak::Pak::new(
|
||||
for ver in unpak::Version::iter() {
|
||||
match unpak::Pak::new(
|
||||
std::io::BufReader::new(std::fs::OpenOptions::new().read(true).open(&path)?),
|
||||
ver,
|
||||
None,
|
||||
|
@ -11,7 +11,7 @@ fn main() -> Result<(), un_pak::Error> {
|
|||
println!("{}", pak.version());
|
||||
break;
|
||||
}
|
||||
Err(un_pak::Error::Version { version, .. }) => {
|
||||
Err(unpak::Error::Version { version, .. }) => {
|
||||
println!("{version}");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue