basic object for patchset grouping #3

Merged
tea merged 2 commits from patchset into main 2023-11-19 19:00:27 +00:00
Showing only changes of commit a572a142ca - Show all commits

11
dodo.py
View File

@ -94,6 +94,17 @@ class ScriptedPatchwork(BasePatchwork):
class RasterPatchwork(BasePatchwork): class RasterPatchwork(BasePatchwork):
pass 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_name = 'randchgs'
mod_install_path = get_var('descriptor_mod_path', 'C:/Users/User/Documents/Paradox Interactive/Hearts of Iron IV/mod/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')) dir_vanilla = Path(get_var('vanilla_path', '../vanilla/current'))