From b3eae08f27cb416f0580bde1c6cebc92c2a26a21 Mon Sep 17 00:00:00 2001 From: Ian Burgwin Date: Tue, 9 Feb 2021 20:22:24 -0800 Subject: [PATCH] custominstall: make boot9 and seeddb optional for CustomInstall.__init__ (for gui changes) --- custominstall.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/custominstall.py b/custominstall.py index c7de3ea..a731e58 100644 --- a/custominstall.py +++ b/custominstall.py @@ -191,8 +191,8 @@ def get_install_size(title: 'Union[CIAReader, CDNReader]'): class CustomInstall: - def __init__(self, boot9, seeddb, movable, sd, cifinish_out=None, - overwrite_saves=False, skip_contents=False): + def __init__(self, *, movable, sd, cifinish_out=None, overwrite_saves=False, skip_contents=False, + boot9=None, seeddb=None): self.event = Events() self.log_lines = [] # Stores all info messages for user to view @@ -329,7 +329,8 @@ class CustomInstall: sd_path = join(sd_path, id1s[0]) - load_seeddb(self.seeddb) + if self.seeddb: + load_seeddb(self.seeddb) install_state = {'installed': [], 'failed': []}