mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	service/cfg: Make GenerateConsoleUniqueId() return a pair (#5321)
Same behavior, but allows the use of structured bindings.
This commit is contained in:
		
							parent
							
								
									41abdb505c
								
							
						
					
					
						commit
						30414eeb4b
					
				
					 3 changed files with 17 additions and 14 deletions
				
			
		|  | @ -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( | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue