[Bug fix][Enhance] Link Play Unlock Bug

- For Arcaea 6.12.0
- Support for "is_allow_marketing_email"
- Support for config "LOG_FOLDER_PATH" (Thanks to PR #234)
- Fix a bug about one song unlock bug in Link Play, due to wrong length of song unlock bytes.
This commit is contained in:
Lost-MSth
2026-01-29 23:33:00 +08:00
parent 8180eef856
commit bfb6a2ddda
10 changed files with 56 additions and 36 deletions

View File

@@ -1,6 +1,5 @@
# encoding: utf-8
import json
import os
from importlib import import_module
@@ -9,13 +8,7 @@ from core.config_manager import Config, ConfigManager
if os.path.exists('config.py') or os.path.exists('config'):
# 导入用户自定义配置
ConfigManager.load(import_module("config").Config)
else:
# Allow importing the config from a custom path given through an environment variable
configPath = os.environ.get("ARCAEA_JSON_CONFIG_PATH")
if configPath and os.path.exists(configPath):
with open(configPath, 'r') as file:
ConfigManager.load_dict(json.load(file))
# TODO: More config file formats
if Config.DEPLOY_MODE == 'gevent':
# 异步