cfg: Set system setup complete flag when formatting save. (#6331)

This commit is contained in:
Steveice10 2023-03-08 15:05:00 -08:00 committed by GitHub
parent 07e02a1acf
commit 976995ba08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -639,7 +639,8 @@ ResultCode Module::FormatConfig() {
// 0x00110000 - The low u16 indicates whether the system setup is required, such as when the
// system is booted for the first time or after doing a System Format: 0 = setup required,
// non-zero = no setup required
res = CreateConfigInfoBlk(SystemSetupRequiredBlockID, 0x4, 0xC, zero_buffer);
u32 system_setup_flag = 1;
res = CreateConfigInfoBlk(SystemSetupRequiredBlockID, 0x4, 0xC, &system_setup_flag);
if (!res.IsSuccess())
return res;