From e7fc78e3b554958a5a1bca701db95e33eacfb169 Mon Sep 17 00:00:00 2001 From: cadmic Date: Fri, 20 Sep 2024 11:51:01 -0700 Subject: [PATCH] Allow building without a default version (ce-j) (#184) * Allow building without a default version (ce-j) * Use earliest version as default instead --- configure.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure.py b/configure.py index 2191a5f8..dbcc49bb 100755 --- a/configure.py +++ b/configure.py @@ -121,8 +121,15 @@ for version in ALL_VERSIONS if (Path("orig") / version / "main.dol").exists() ] + +if not config.versions: + sys.exit("Error: no main.dol found for any version") + if "ce-j" in config.versions: config.default_version = "ce-j" +else: + # Use the earliest version as default + config.default_version = config.versions[0] config.warn_missing_config = True config.warn_missing_source = False