mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	citra_qt: on osx chdir to bundle dir to allow detection of user folder
This commit is contained in:
		
							parent
							
								
									cae913d3d5
								
							
						
					
					
						commit
						42d0654eec
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -1887,6 +1887,11 @@ int main(int argc, char* argv[]) { | ||||||
|     QCoreApplication::setOrganizationName("Citra team"); |     QCoreApplication::setOrganizationName("Citra team"); | ||||||
|     QCoreApplication::setApplicationName("Citra"); |     QCoreApplication::setApplicationName("Citra"); | ||||||
| 
 | 
 | ||||||
|  | #ifdef __APPLE__ | ||||||
|  |     std::string bin_path = FileUtil::GetBundleDirectory() + DIR_SEP + ".."; | ||||||
|  |     chdir(bin_path.c_str()); | ||||||
|  | #endif | ||||||
|  | 
 | ||||||
|     QApplication app(argc, argv); |     QApplication app(argc, argv); | ||||||
| 
 | 
 | ||||||
|     // Qt changes the locale and causes issues in float conversion using std::to_string() when
 |     // Qt changes the locale and causes issues in float conversion using std::to_string() when
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue