diff --git a/src/args.rs b/src/args.rs index 887ca84..8529c28 100644 --- a/src/args.rs +++ b/src/args.rs @@ -469,9 +469,10 @@ pub struct Arg { /// Do not process TLG images in PSB files. pub psb_no_process_tlg: bool, #[cfg(feature = "softpal-img")] - #[arg(long, global = true, visible_alias = "pgd-fc")] - /// Whether to use fake compression for Softpal Pgd images - pub pgd_fake_compress: bool, + #[arg(long, global = true, visible_alias = "pgd-co")] + /// Whether to use compression for Softpal Pgd images. + /// WARN: Compress may cause image broken. + pub pgd_compress: bool, #[command(subcommand)] /// Command pub command: Command, diff --git a/src/main.rs b/src/main.rs index ef24afe..a8d2555 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2061,7 +2061,7 @@ fn main() { #[cfg(feature = "emote-img")] psb_process_tlg: !arg.psb_no_process_tlg, #[cfg(feature = "softpal-img")] - pgd_fake_compress: arg.pgd_fake_compress, + pgd_fake_compress: !arg.pgd_compress, }); match &arg.command { args::Command::Export { input, output } => { diff --git a/src/types.rs b/src/types.rs index f5ffe12..36d2c71 100644 --- a/src/types.rs +++ b/src/types.rs @@ -450,7 +450,9 @@ pub struct ExtraConfig { /// Process tlg images. pub psb_process_tlg: bool, #[cfg(feature = "softpal-img")] - /// Whether to use fake compression for Softpal Pgd images + #[default(true)] + /// Whether to use fake compression for Softpal Pgd images. Enabled by default. + /// WARN: Compress may cause image broken. pub pgd_fake_compress: bool, }