Enable fake compress for softpal pgd image by default

This commit is contained in:
2025-09-17 23:30:53 +08:00
parent 8afc11b943
commit 73ee2107f5
3 changed files with 8 additions and 5 deletions

View File

@@ -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,

View File

@@ -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 } => {

View File

@@ -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,
}