From a572a142ca85e56200ca34a7eb354aef1115e7bc Mon Sep 17 00:00:00 2001 From: Aleksey Date: Sun, 19 Nov 2023 22:06:49 +0400 Subject: [PATCH] basic object for patchset grouping --- dodo.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dodo.py b/dodo.py index 6c3f963..cbcf918 100644 --- a/dodo.py +++ b/dodo.py @@ -94,6 +94,17 @@ class ScriptedPatchwork(BasePatchwork): class RasterPatchwork(BasePatchwork): pass + +class Patchset(list): + def __init__(self, *args, **kwargs): + self.modimage_path = kwargs.pop('modimage_path') + super().__init__(*args, **kwargs) + + def image_files(self): + for patches in self: + if isinstance(patches, BasePatchwork): + pass + mod_name = 'randchgs' mod_install_path = get_var('descriptor_mod_path', 'C:/Users/User/Documents/Paradox Interactive/Hearts of Iron IV/mod/randchgs') dir_vanilla = Path(get_var('vanilla_path', '../vanilla/current'))