From 657fc7feda6f6d0d7e1e2a7e01074db44343cefe Mon Sep 17 00:00:00 2001 From: Luke Street Date: Mon, 13 Feb 2023 00:13:40 -0500 Subject: [PATCH] Remove nightly feature; update README.md --- README.md | 15 +++++++++++++++ src/cmd/pak.rs | 2 +- src/main.rs | 2 -- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d75f3e..8b0ecb8 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,18 @@ Replaces the video within the given `FMV0` file. ```shell $ retrotool fmv0 replace [inout_fmv0] [in_mp4] ``` + +## License + +Licensed under either of + +* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) +* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) + +at your option. + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any +additional terms or conditions. diff --git a/src/cmd/pak.rs b/src/cmd/pak.rs index 6699634..49f9398 100644 --- a/src/cmd/pak.rs +++ b/src/cmd/pak.rs @@ -80,7 +80,7 @@ fn extract(args: ExtractArgs) -> Result<()> { asset.kind, name, asset.data.len(), - asset.data.is_owned(), + asset.info.compression_mode != 0, asset.meta.as_ref().map(|m| m.len()).unwrap_or_default() ); let file_name = asset diff --git a/src/main.rs b/src/main.rs index 6858ed4..64d9cde 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -#![feature(cow_is_borrowed)] - mod argh_version; mod cmd; mod format;