public static void WriteConfigValues(string cfgpath) { string[] lines = { SecurityFuncs.Base64Encode(GlobalVars.CloseOnLaunch.ToString()), SecurityFuncs.Base64Encode(GlobalVars.UserID.ToString()), SecurityFuncs.Base64Encode(GlobalVars.PlayerName.ToString()), SecurityFuncs.Base64Encode(GlobalVars.SelectedClient.ToString()), SecurityFuncs.Base64Encode(GlobalVars.Map.ToString()), SecurityFuncs.Base64Encode(GlobalVars.RobloxPort.ToString()) }; File.WriteAllText(cfgpath, SecurityFuncs.Base64Encode(string.Join("|", lines))); }
void Button1Click(object sender, EventArgs e) { using (var sfd = new SaveFileDialog()) { sfd.Filter = "Text files (*.txt)|*.txt"; sfd.FilterIndex = 2; sfd.FileName = "clientinfo.txt"; sfd.Title = "Save clientinfo.txt"; if (sfd.ShowDialog() == DialogResult.OK) { string[] lines = { SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesPlayerName.ToString()), SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_UsesID.ToString()), SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LoadsAssetsOnline.ToString()), SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_LegacyMode.ToString()), SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientMD5.ToString()), SecurityFuncs.Base64Encode(GlobalVars.ClientCreator_SelectedClientDesc.ToString()) }; File.WriteAllText(sfd.FileName, SecurityFuncs.Base64Encode(string.Join("|", lines))); } } }