-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOptions.cs
More file actions
34 lines (30 loc) · 994 Bytes
/
Options.cs
File metadata and controls
34 lines (30 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using System.IO;
namespace gw2_launcher
{
class Options
{
public static string jeu = "";
public static string arguments = "";
public static string chemin = "";
public static bool compteCourant = true;
public static string utilisateur = "";
public static string pass = "";
public static void parse()
{
string[] args = Environment.GetCommandLineArgs();
if (args.Length > 2)
{ // les 2 premiers parametres sont le nom et l'emplacement du jeu
jeu = args[1];
arguments = args[2];
chemin = Path.GetFullPath(args[3]);
if (args.Length > 4)
{ // les 2 paramètres suivants sont le nom et le mot de passe du compte windows
compteCourant = false;
utilisateur = args[4];
pass = args[5];
}
}
}
}
}