This commit is contained in:
Dragoon Dorise 2024-12-23 12:22:20 +01:00
parent 9ec7803e79
commit d98ed3ad1a
2 changed files with 5 additions and 1 deletions

View File

@ -139,6 +139,8 @@ def generate_game_lists(roms_path):
for system_dir in os.listdir(roms_dir):
if system_dir == "xbox360":
system_dir = "xbox360/roms"
if system_dir == "model2":
system_dir = "model2/roms"
full_path = os.path.join(roms_dir, system_dir)
if os.path.isdir(full_path) and not os.path.islink(full_path) and os.path.isfile(os.path.join(full_path, 'metadata.txt')):
file_count = sum([len(files) for r, d, files in os.walk(full_path) if not os.path.islink(r)])

View File

@ -79,7 +79,9 @@ def generate_systems_with_missing_images(roms_path, images_path):
for system_dir in os.listdir(roms_dir):
if system_dir == "xbox360":
system_dir = "xbox360/roms"
system_dir = "xbox360/roms"
if system_dir == "model2":
system_dir = "model2/roms"
full_path = os.path.join(roms_dir, system_dir)
if os.path.isdir(full_path) and not os.path.islink(full_path) and os.path.isfile(os.path.join(full_path, 'metadata.txt')):
file_count = sum([len(files) for r, d, files in os.walk(full_path) if not os.path.islink(r)])