service/cfg: Make GenerateConsoleUniqueId() return a pair (#5321)

Same behavior, but allows the use of structured bindings.
This commit is contained in:
Mat M 2020-05-04 06:21:43 -04:00 committed by GitHub
parent 41abdb505c
commit 30414eeb4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 14 deletions

View file

@ -439,9 +439,7 @@ void ConfigureSystem::RefreshConsoleID() {
return;
}
u32 random_number;
u64 console_id;
cfg->GenerateConsoleUniqueId(random_number, console_id);
const auto [random_number, console_id] = cfg->GenerateConsoleUniqueId();
cfg->SetConsoleUniqueId(random_number, console_id);
cfg->UpdateConfigNANDSavegame();
ui->label_console_id->setText(