mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Core: Replace a sprintf in core_timing with StringFromFormat
This commit is contained in:
		
							parent
							
								
									cbdf4d4c8e
								
							
						
					
					
						commit
						093d6fbcdc
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		|  | @ -7,11 +7,12 @@ | ||||||
| #include <atomic> | #include <atomic> | ||||||
| #include <mutex> | #include <mutex> | ||||||
| 
 | 
 | ||||||
| #include "common/msg_handler.h" |  | ||||||
| #include "common/chunk_file.h" | #include "common/chunk_file.h" | ||||||
|  | #include "common/msg_handler.h" | ||||||
|  | #include "common/string_util.h" | ||||||
| 
 | 
 | ||||||
| #include "core/core_timing.h" |  | ||||||
| #include "core/core.h" | #include "core/core.h" | ||||||
|  | #include "core/core_timing.h" | ||||||
| 
 | 
 | ||||||
| int g_clock_rate_arm11 = 268123480; | int g_clock_rate_arm11 = 268123480; | ||||||
| 
 | 
 | ||||||
|  | @ -586,9 +587,10 @@ std::string GetScheduledEventsSummary() | ||||||
|         const char *name = event_types[ptr->type].name; |         const char *name = event_types[ptr->type].name; | ||||||
|         if (!name) |         if (!name) | ||||||
|             name = "[unknown]"; |             name = "[unknown]"; | ||||||
|         char temp[512]; | 
 | ||||||
|         sprintf(temp, "%s : %i %08x%08x\n", name, (int)ptr->time, (u32)(ptr->userdata >> 32), (u32)(ptr->userdata)); |         text += Common::StringFromFormat("%s : %i %08x%08x\n", name, (int)ptr->time, | ||||||
|         text += temp; |                                         (u32)(ptr->userdata >> 32), (u32)(ptr->userdata)); | ||||||
|  | 
 | ||||||
|         ptr = ptr->next; |         ptr = ptr->next; | ||||||
|     } |     } | ||||||
|     return text; |     return text; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue