|
|
|
@ -20,16 +20,18 @@ namespace TheGameExtreme.IO
|
|
|
|
|
public static int LoadParameterGamePreparation()
|
|
|
|
|
{
|
|
|
|
|
XmlSerializer xs = new XmlSerializer(typeof(int));
|
|
|
|
|
FileStream fs = new FileStream(pathPlayers, FileMode.Open);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
int players = (int)xs.Deserialize(fs);
|
|
|
|
|
fs.Close();
|
|
|
|
|
return players;
|
|
|
|
|
using (FileStream fs = new FileStream(pathPlayers, FileMode.Open))
|
|
|
|
|
{
|
|
|
|
|
int players = (int)xs.Deserialize(fs);
|
|
|
|
|
return players;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch
|
|
|
|
|
{
|
|
|
|
|
fs.Close();
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|