Skip to content

Commit 246bc53

Browse files
authored
fix: align license update handling with online launch mode (#37)
1 parent c00c3dd commit 246bc53

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

maxima-lib/src/core/launch.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,12 @@ pub async fn start_game(
277277
}
278278
LaunchMode::OnlineOffline(_, ref persona, ref password) => {
279279
let auth = LicenseAuth::Direct(persona.to_owned(), password.to_owned());
280-
request_and_save_license(&auth, &content_id, path.to_owned().into()).await?;
280+
281+
if needs_license_update(&content_id).await? {
282+
request_and_save_license(&auth, &content_id, path.to_owned().into()).await?;
283+
} else {
284+
info!("Existing game license is still valid, not updating");
285+
}
281286
}
282287
}
283288

0 commit comments

Comments
 (0)