mirror of
				https://github.com/RetroDECK/ES-DE.git
				synced 2025-04-10 19:15:13 +00:00 
			
		
		
		
	(Windows) Added an extra precaution in case of an invalid locale entry
This commit is contained in:
		
							parent
							
								
									2d3a559cee
								
							
						
					
					
						commit
						e3148e6cda
					
				|  | @ -36,6 +36,10 @@ namespace Utils | |||
|             std::string localeName {Utils::String::wideStringToString(localeNameWide)}; | ||||
|             localeName.erase(localeName.find('\0')); | ||||
| 
 | ||||
|             // This should never happen, but who knows with Windows.
 | ||||
|             if (localeName.empty()) | ||||
|                 return std::make_pair("en", "US"); | ||||
| 
 | ||||
|             std::vector<std::string> localeVector; | ||||
| 
 | ||||
|             // Of course Windows doesn't follow standards and names locales with dashes
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Leon Styhre
						Leon Styhre