private static SaveMobileAuth ( SteamAuth.AuthenticatorLinker linker ) : bool | ||
linker | SteamAuth.AuthenticatorLinker | |
return | bool |
private static bool SaveMobileAuth(AuthenticatorLinker linker)
{
try
{
string sgFile = JsonConvert.SerializeObject(linker.LinkedAccount, Formatting.Indented);
const string fileName = "account.maFile";
File.WriteAllText(fileName, sgFile);
}
catch (Exception)
{
return false;
}
return true;
}