mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Change GameListText order to improve configuration compatibility
This commit is contained in:
		
							parent
							
								
									f9cded05fd
								
							
						
					
					
						commit
						c866a8e428
					
				
					 3 changed files with 9 additions and 7 deletions
				
			
		|  | @ -307,13 +307,13 @@ void Config::ReadValues() { | ||||||
|     UISettings::values.game_list_icon_size = UISettings::GameListIconSize{icon_size}; |     UISettings::values.game_list_icon_size = UISettings::GameListIconSize{icon_size}; | ||||||
| 
 | 
 | ||||||
|     int row_1 = ReadSetting("row1", 2).toInt(); |     int row_1 = ReadSetting("row1", 2).toInt(); | ||||||
|     if (row_1 < 0 || row_1 > 3) { |     if (row_1 < 0 || row_1 >= UISettings::GAME_LIST_TEXT_LENGTH) { | ||||||
|         row_1 = 2; |         row_1 = 2; | ||||||
|     } |     } | ||||||
|     UISettings::values.game_list_row_1 = UISettings::GameListText{row_1}; |     UISettings::values.game_list_row_1 = UISettings::GameListText{row_1}; | ||||||
| 
 | 
 | ||||||
|     int row_2 = ReadSetting("row2", 0).toInt(); |     int row_2 = ReadSetting("row2", 0).toInt(); | ||||||
|     if (row_2 < -1 || row_2 > 3) { |     if (row_2 < -1 || row_2 >= UISettings::GAME_LIST_TEXT_LENGTH) { | ||||||
|         row_2 = 0; |         row_2 = 0; | ||||||
|     } |     } | ||||||
|     UISettings::values.game_list_row_2 = UISettings::GameListText{row_2}; |     UISettings::values.game_list_row_2 = UISettings::GameListText{row_2}; | ||||||
|  |  | ||||||
|  | @ -131,12 +131,12 @@ | ||||||
|             </item> |             </item> | ||||||
|             <item> |             <item> | ||||||
|              <property name="text"> |              <property name="text"> | ||||||
|               <string>Title Name (long)</string> |               <string>Title ID</string> | ||||||
|              </property> |              </property> | ||||||
|             </item> |             </item> | ||||||
|             <item> |             <item> | ||||||
|              <property name="text"> |              <property name="text"> | ||||||
|               <string>Title ID</string> |               <string>Title Name (long)</string> | ||||||
|              </property> |              </property> | ||||||
|             </item> |             </item> | ||||||
|            </widget> |            </widget> | ||||||
|  | @ -176,12 +176,12 @@ | ||||||
|             </item> |             </item> | ||||||
|             <item> |             <item> | ||||||
|              <property name="text"> |              <property name="text"> | ||||||
|               <string>Title Name (long)</string> |               <string>Title ID</string> | ||||||
|              </property> |              </property> | ||||||
|             </item> |             </item> | ||||||
|             <item> |             <item> | ||||||
|              <property name="text"> |              <property name="text"> | ||||||
|               <string>Title ID</string> |               <string>Title Name (long)</string> | ||||||
|              </property> |              </property> | ||||||
|             </item> |             </item> | ||||||
|            </widget> |            </widget> | ||||||
|  |  | ||||||
|  | @ -50,9 +50,11 @@ enum class GameListText { | ||||||
|     FileName,    ///< Display the file name of the entry
 |     FileName,    ///< Display the file name of the entry
 | ||||||
|     FullPath,    ///< Display the full path of the entry
 |     FullPath,    ///< Display the full path of the entry
 | ||||||
|     TitleName,   ///< Display the name of the title
 |     TitleName,   ///< Display the name of the title
 | ||||||
|     LongTitleName,   ///< Display the long name of the title
 |  | ||||||
|     TitleID,     ///< Display the title ID
 |     TitleID,     ///< Display the title ID
 | ||||||
|  |     LongTitleName, ///< Display the long name of the title
 | ||||||
| }; | }; | ||||||
|  | // The length of the GameListText, excluding NoText
 | ||||||
|  | constexpr int GAME_LIST_TEXT_LENGTH = 5; | ||||||
| 
 | 
 | ||||||
| struct Values { | struct Values { | ||||||
|     QByteArray geometry; |     QByteArray geometry; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue