Skip to content

Commit

Permalink
Allow building without a default version (ce-j) (#184)
Browse files Browse the repository at this point in the history
* Allow building without a default version (ce-j)

* Use earliest version as default instead
  • Loading branch information
cadmic authored Sep 20, 2024
1 parent 40e9f6f commit e7fc78e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e7fc78e

Please sign in to comment.