feat: improve RenPy conversion and support MIST runtime
This commit is contained in:
1 parent
f7f7f5b1b3
commit
f9eb5c1212
44 files changed
+2822
-174
No files matched your search
@@ -82,7 +82,9 @@ def find_game_dir(root: Path) -> Path:
|
||||
p = Path(dirpath)
|
||||
depth = len(p.relative_to(root).parts)
|
||||
score = (0 if p.name.lower() == "game" else 100) + depth
|
||||
if p.name.lower() in ("renpy", "common") or "renpy" in [x.lower() for x in p.parts[-3:]]:
|
||||
# Only engine internals inside this distribution matter. A collection's
|
||||
# parent directory may itself be named Renpy.
|
||||
if p.name.lower() in ("renpy", "common") or "renpy" in [x.lower() for x in p.relative_to(root).parts]:
|
||||
continue
|
||||
if best is None or score < best[0]:
|
||||
best = (score, p)
|
||||
|
||||
Reference in new issue
Block a user