mirror of
https://github.com/lifegpc/msg-tool.git
synced 2026-06-06 12:58:45 +08:00
Enable fake compress for softpal pgd image by default
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 } => {
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user