Add APP_ID_UNKNOWN
sentinel value for required app_id
field during savefile migration
This commit is contained in:
parent
da5d2a9673
commit
4816279f9e
2 changed files with 3 additions and 1 deletions
|
@ -1,2 +1,4 @@
|
|||
pub mod gpu;
|
||||
pub mod settings;
|
||||
|
||||
pub const APP_ID_UNKNOWN: u64 = u64::MAX;
|
||||
|
|
|
@ -51,7 +51,7 @@ impl From<OldSettingsJson> for FileJson {
|
|||
Self {
|
||||
version: LATEST_VERSION,
|
||||
name: old_settings.name.clone(),
|
||||
app_id: todo!(),
|
||||
app_id: super::APP_ID_UNKNOWN, // `u64::MAX`, sentinel value.
|
||||
variants,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue