feat: Fixes in DB engines, SQL queries, added and improved Python management scripts, changed max level.

This commit is contained in:
Mind Rapist
2025-11-14 17:51:57 +02:00
parent 7a11534957
commit 3c8089c443
11 changed files with 293 additions and 72 deletions

View File

@@ -57,6 +57,7 @@ def setup_links_game(target_dir, name):
try_symlink(os.path.join(GAMEDIR, "share", "data"), "data", is_dir=True)
try_symlink(os.path.join(GAMEDIR, "share", "locale"), "locale", is_dir=True)
try_symlink(os.path.join(GAMEDIR, "share", "mark"), "mark", is_dir=True)
try_symlink(os.path.join(GAMEDIR, "share", "package"), "package", is_dir=True)
try_symlink(os.path.join(GAMEDIR, "share", "bin", "game"), name, is_dir=False)
# Helper function to create symlinks cross-platform
@@ -86,6 +87,9 @@ if os.path.exists(channels_dir):
print_green("> Clearing up channels...")
shutil.rmtree(channels_dir)
package_dir = os.path.join(GAMEDIR, "share", "package")
if not os.path.exists(package_dir):
os.makedirs(package_dir)
## DB Setup
print_green("> Setting up environment for the DB Cache...")
db_dir = os.path.join(GAMEDIR, "channels", "db")