Skip to content
This repository was archived by the owner on Sep 12, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion lutris_bulk_adder/lutris_bulk_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ def main():
except sqlite3.OperationalError:
print("SQLite error, is {} a valid Lutris database?".format(args.lutris_database))
sys.exit(1)
game_id = cur.fetchone()[0] + 1

new_id = cur.fetchone()[0];
if new_id is None:
new_id = 0;

game_id = new_id + 1

# Scan dir for ROMs
files = scan_for_filetypes(args.directory, args.file_types)
Expand Down