public void Export(string path) { if (string.IsNullOrEmpty(path)) { return; } if (!path.ToLower().EndsWith($".{_saveExt}")) { path += $".{_saveExt}"; } var jc = new JSONClass { { "version", _saveVersion.ToString(NumberFormatInfo.InvariantInfo) }, { "settings", _settings.GetJSON() }, { "keybindings", _keyMapManager.GetJSON() }, { "analogMaps", _analogMapManager.GetJSON() }, }; _plugin.SaveJSON(jc, path); }