mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Pica/Regs: Use binary search to look up reg names
This gets rid of the static unordered_map. Also changes the return type const char*, avoiding unnecessary allocations (the result was only used by calling .c_str() on it.)
This commit is contained in:
		
							parent
							
								
									602f57da38
								
							
						
					
					
						commit
						f241bb72f5
					
				
					 3 changed files with 11 additions and 16 deletions
				
			
		|  | @ -72,7 +72,7 @@ QVariant GPUCommandListModel::data(const QModelIndex& index, int role) const { | |||
|     if (role == Qt::DisplayRole) { | ||||
|         switch (index.column()) { | ||||
|         case 0: | ||||
|             return QString::fromLatin1(Pica::Regs::GetCommandName(write.cmd_id).c_str()); | ||||
|             return QString::fromLatin1(Pica::Regs::GetRegisterName(write.cmd_id)); | ||||
|         case 1: | ||||
|             return QString("%1").arg(write.cmd_id, 3, 16, QLatin1Char('0')); | ||||
|         case 2: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue