Add APP_ID_UNKNOWN sentinel value for required app_id field during savefile migration

This commit is contained in:
user 2024-05-30 15:25:26 +02:00
parent da5d2a9673
commit 4816279f9e
2 changed files with 3 additions and 1 deletions

View file

@ -1,2 +1,4 @@
pub mod gpu; pub mod gpu;
pub mod settings; pub mod settings;
pub const APP_ID_UNKNOWN: u64 = u64::MAX;

View file

@ -51,7 +51,7 @@ impl From<OldSettingsJson> for FileJson {
Self { Self {
version: LATEST_VERSION, version: LATEST_VERSION,
name: old_settings.name.clone(), name: old_settings.name.clone(),
app_id: todo!(), app_id: super::APP_ID_UNKNOWN, // `u64::MAX`, sentinel value.
variants, variants,
} }
} }