mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	log/console: no need to test first call
Just let `console_shown` be initialized to the default status (console isn't shown on startup)
This commit is contained in:
		
							parent
							
								
									810b86f451
								
							
						
					
					
						commit
						4be2f12914
					
				
					 1 changed files with 5 additions and 8 deletions
				
			
		|  | @ -14,16 +14,13 @@ | |||
| 
 | ||||
| namespace Debugger { | ||||
| void ToggleConsole() { | ||||
|     static bool first_call = true, console_shown = true; | ||||
|     if (!first_call) { | ||||
|         if (console_shown == UISettings::values.show_console) { | ||||
|             return; | ||||
|         } else { | ||||
|             console_shown = UISettings::values.show_console; | ||||
|         } | ||||
|     static bool console_shown = false; | ||||
|     if (console_shown == UISettings::values.show_console) { | ||||
|         return; | ||||
|     } else { | ||||
|         first_call = false; | ||||
|         console_shown = UISettings::values.show_console; | ||||
|     } | ||||
|      | ||||
| #ifdef _WIN32 | ||||
|     FILE* temp; | ||||
|     if (UISettings::values.show_console) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue