games: Use Python's JSON module

This commit is contained in:
Jamie Gravendeel
2025-11-29 18:53:34 +01:00
parent a3fef27505
commit b11c1b314f
2 changed files with 62 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: Copyright 2025 Zoey Ahmed
# SPDX-FileCopyrightText: Copyright 2025 Jamie Gravendeel
import gettext
import locale
@@ -12,13 +13,14 @@ import gi
gi.require_versions({
"Gtk": "4.0",
"Adw": "1",
"Json": "1.0",
})
from gi.repository import Gio
from gi.repository import Gio, GLib
from .config import LOCALEDIR, PKGDATADIR
DATA_DIR = Path(GLib.get_user_data_dir(), "cartridges")
_RESOURCES = ("data", "icons", "ui")
signal.signal(signal.SIGINT, signal.SIG_DFL)