Add VRC OSC tooling

This commit is contained in:
messypy
2026-06-03 21:39:55 +09:00
committed by every_holiday
parent 072e819b0b
commit 54854969b9
24 changed files with 2982 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
from datetime import datetime
from common.project_paths import RUNTIME_LOG_FILE
def appendRuntimeLog(title, text):
RUNTIME_LOG_FILE.parent.mkdir(parents=True, exist_ok=True)
now = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
body = str(text).strip()
if not body:
body = "(empty)"
with RUNTIME_LOG_FILE.open("a", encoding="utf-8") as file:
file.write(f"\n[{now}] {title}\n")
file.write(body)
file.write("\n")
return RUNTIME_LOG_FILE