Guest User

Untitled

a guest
Jan 27th, 2018
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using System.Windows.Forms;
  7.  
  8. namespace LauncherArma3
  9. {
  10. static class Program
  11. {
  12. /// <summary>
  13. /// Point d'entrée principal de l'application.
  14. /// </summary>
  15. [STAThread]
  16. static void Main()
  17. {
  18. /* GENERAL OPTIONS */
  19.  
  20. string communityName = "[FR] BANDOLEROS ISLAND (MOD-TFK)"; /* Your serverName */
  21. string apiUrl = "http://5.83.160.217/"; /* Link to API launcher Arma 3 */
  22.  
  23. /* FTP NO FUNCTIONAL */
  24.  
  25. string ftp_url = "ftp://yoururl";
  26. string ftp_user = "username";
  27. string ftp_pass = "passwd";
  28.  
  29. /* FTP NO FUNCTIONAL */
  30.  
  31. bool modDev = true; /* enable or disable modDev */
  32.  
  33. /* ANOTHER VARIABLE */
  34.  
  35. string appdata = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "/v5.";
  36. string sessionToken = null;
  37.  
  38. Application.EnableVisualStyles();
  39. Application.SetCompatibleTextRenderingDefault(false);
  40.  
  41. if (!Directory.Exists(appdata + communityName))
  42. Directory.CreateDirectory(appdata + communityName);
  43. if (File.Exists(appdata + communityName + "/language.lang"))
  44. {
  45. Application.Run(new loginForm(communityName, apiUrl, ftp_url, ftp_user, ftp_pass, modDev));
  46. }
  47. else
  48. {
  49. Application.Run(new languageChoice(communityName, false));
  50. Application.Run(new loginForm(communityName, apiUrl, ftp_url, ftp_user, ftp_pass, modDev));
  51. }
  52. }
  53. }
  54. }
Add Comment
Please, Sign In to add comment