This commit is contained in:
kramo
2023-03-14 21:20:59 +01:00
parent 434b7a11f1
commit 32d9f9a880
16 changed files with 99 additions and 63 deletions

View File

@@ -17,11 +17,12 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
def save_games(games):
import os, json
import json
import os
def save_games(games):
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "cartridges", "games")
existing = []
if os.path.exists(games_dir) == False:
os.makedirs(games_dir)