Skip to content

🌍 v2.9.4: Multi-Language Folder Names

Choose a tag to compare

@SlonickLab SlonickLab released this 20 Jun 11:26
· 56 commits to main since this release
5985666

Games with non-Latin names (Chinese, Japanese, Korean, Cyrillic, …) now get correctly-named folders instead of garbled "mojibake". Thanks to @YxlaGyb for surfacing the issue with a detailed Pull Request (#24)!


🐛 Bug Fixes

  • 🌍 Garbled folder names for CJK / Cyrillic games:
    • On a Chinese / Japanese / Korean Windows, a game with a non-Latin process name (e.g. 苍蓝彼端的四重奏.exe) used to create a folder with a corrupted name like ç»åºé¶æ. The cause: the script read process and file names through the legacy ANSI (*A) Win32 APIs, which speak the system code page and mangle anything outside it.
    • Fix: The script now uses the native Wide (UTF-16, *W) Win32 APIs end-to-end — GetModuleBaseNameW, QueryFullProcessImageNameW, and FindFirstFileW (with WIN32_FIND_DATAW) — converted straight to UTF-8. There is no code page involved, so names in any language round-trip perfectly, regardless of your Windows locale (even a Korean game on a German PC).
    • This is a more robust solution than a single-code-page (ACP) conversion, which only works when the characters happen to fit the machine's system language.

🧹 Code Health

  • 📦 Namespaced state & constants: Reorganized ~95 top-level locals into three tables — WIN (Win32 constants), STATE (runtime state), and NOTIF (notification config). This clears LuaJIT's hard 200-locals-per-chunk limit the script had reached (199 → 110), leaving plenty of headroom for future features.
  • 🛡️ Zero behavior change: Purely structural — every pcall() crash-guard and the full anti-cheat detection fallback chain are preserved exactly.
  • ✂️ UTF-8-safe truncation: Long filenames are trimmed to the MAX_PATH limit without ever splitting a multi-byte UTF-8 character.

💡 Update: Simply replace the Smart_Replay_Mover.lua file with the new version and restart OBS. All your settings and custom names will be preserved.