forked from Dniel97/artemis
Utils: exclude malformed game folders
This commit is contained in:
parent
0d5567c990
commit
baa885f674
@ -16,7 +16,8 @@ class Utils:
|
|||||||
if not dir.startswith("__"):
|
if not dir.startswith("__"):
|
||||||
try:
|
try:
|
||||||
mod = importlib.import_module(f"titles.{dir}")
|
mod = importlib.import_module(f"titles.{dir}")
|
||||||
ret[dir] = mod
|
if hasattr(mod, "game_codes") and hasattr(mod, "index"): # Minimum required to function
|
||||||
|
ret[dir] = mod
|
||||||
|
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
logging.getLogger("core").error(f"get_all_titles: {dir} - {e}")
|
logging.getLogger("core").error(f"get_all_titles: {dir} - {e}")
|
||||||
|
Loading…
Reference in New Issue
Block a user