Config packetlog

This commit is contained in:
Naruse
2025-04-18 09:13:44 +08:00
parent dc17150b86
commit 709b4af735
2 changed files with 10 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ class ConfigData:
SDKServer: ServerConfig
SRToolsServer: ServerConfig
RegionName: str
PacketLog: bool
def write_default_config():
config = ConfigData(
LogLevel="INFO",
@@ -24,6 +25,7 @@ class ConfigData:
SDKServer=ServerConfig(IP="127.0.0.1", Port=21000),
SRToolsServer=ServerConfig(IP="127.0.0.1", Port=25000),
RegionName="NeonSR",
PacketLog=True,
)
with open("Config.json", "w") as f:
f.write(json.dumps(asdict(config), indent=2))