using System.IO; namespace RynthCore.Plugin.RynthLua; /// /// Where RynthLua keeps its files. The plugin always uses the defaults; the offline test /// harness (Tools\RynthLua.CompatTests) points and /// at a temporary folder before it loads the plugin, so a test /// run never touches the real game folders. /// internal static class RynthLuaPaths { /// RynthLua's folder: Scripts\, Data\, settings.json, editor.lua (<SuiteDir>\RynthLua, C:\Games\RynthSuite\RynthLua by default). public static string Root { get; set; } = Path.Combine(RynthCore.Install.RynthInstallPaths.SuiteDir, "RynthLua"); /// Where scripts lived while Lua was part of RynthAi (copied over once, then left alone). public static string LegacyScripts { get; set; } = Path.Combine(RynthCore.Install.RynthInstallPaths.RynthAiDir, "LuaScripts"); public static string Scripts => Path.Combine(Root, "Scripts"); public static string Data => Path.Combine(Root, "Data"); public static string Settings => Path.Combine(Root, "settings.json"); public static string Editor => Path.Combine(Root, "editor.lua"); }