File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1169,12 +1169,12 @@ private async void OnLoggedOn(SteamUser.LoggedOnCallback callback) {
1169
1169
}
1170
1170
1171
1171
// Support and convert SDA files
1172
- ulong steamID = callback . ClientSteamID ;
1173
- if ( BotDatabase . SteamGuardAccount == null && File . Exists ( steamID + ".maFile" ) ) {
1172
+ string maFilePath = Path . Combine ( Program . ConfigDirectory , callback . ClientSteamID . ConvertToUInt64 ( ) + ".maFile" ) ;
1173
+ if ( BotDatabase . SteamGuardAccount == null && File . Exists ( maFilePath ) ) {
1174
1174
Logging . LogGenericInfo ( "Converting SDA .maFile into ASF format..." , BotName ) ;
1175
1175
try {
1176
- BotDatabase . SteamGuardAccount = JsonConvert . DeserializeObject < SteamGuardAccount > ( File . ReadAllText ( steamID + ".maFile" ) ) ;
1177
- File . Delete ( steamID + ".maFile" ) ;
1176
+ BotDatabase . SteamGuardAccount = JsonConvert . DeserializeObject < SteamGuardAccount > ( File . ReadAllText ( maFilePath ) ) ;
1177
+ File . Delete ( maFilePath ) ;
1178
1178
Logging . LogGenericInfo ( "Success!" , BotName ) ;
1179
1179
} catch ( Exception e ) {
1180
1180
Logging . LogGenericException ( e , BotName ) ;
You can’t perform that action at this time.
0 commit comments