From f097e152cc13bbb3724c05b02c601862cbd32e7c Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Tue, 29 Aug 2023 13:18:14 +0100 Subject: [PATCH] Pass deduplicate one step further --- agb-image-converter/src/config.rs | 1 + agb-image-converter/src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/agb-image-converter/src/config.rs b/agb-image-converter/src/config.rs index 814fced2..39d8936c 100644 --- a/agb-image-converter/src/config.rs +++ b/agb-image-converter/src/config.rs @@ -11,4 +11,5 @@ pub(crate) trait Config { pub(crate) trait Image { fn filename(&self) -> String; fn colours(&self) -> Colours; + fn deduplicate(&self) -> bool; } diff --git a/agb-image-converter/src/lib.rs b/agb-image-converter/src/lib.rs index af3ab982..a247e04a 100644 --- a/agb-image-converter/src/lib.rs +++ b/agb-image-converter/src/lib.rs @@ -47,6 +47,10 @@ impl config::Image for BackgroundGfxOption { fn colours(&self) -> Colours { self.colours } + + fn deduplicate(&self) -> bool { + self.deduplicate + } } impl Parse for BackgroundGfxOption {