From 19599a87c5f9b35d56d9c7f594946f8b39e25f15 Mon Sep 17 00:00:00 2001 From: Ari Fogel Date: Thu, 10 Oct 2024 04:46:21 -0700 Subject: [PATCH] Fix FF7 remake crash when no mods are selected (#165) --- games/game_finalfantasy7remake.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/games/game_finalfantasy7remake.py b/games/game_finalfantasy7remake.py index e37fafc..44dd74f 100644 --- a/games/game_finalfantasy7remake.py +++ b/games/game_finalfantasy7remake.py @@ -47,6 +47,8 @@ def _active_mod_paths(self) -> Iterable[Path]: yield mods_parent_path / mod def _active_mod_mappings(self, mod_paths: List[Path]) -> Iterable[mobase.Mapping]: + if not mod_paths: + return pak_priority_digits = math.floor(math.log10(len(mod_paths))) + 1 for priority, mod_path in enumerate(mod_paths):