mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu.git
				synced 2025-05-12 00:45:25 +00:00 
			
		
		
		
	file_util: return string by const reference for GetExeDirectory()
This disallows modifying the internal string buffer (which shouldn't be modified anyhow).
This commit is contained in:
		
							parent
							
								
									368e1d25be
								
							
						
					
					
						commit
						63e64f0131
					
				| @ -592,7 +592,7 @@ std::string GetBundleDirectory() { | |||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||||
| std::string& GetExeDirectory() { | const std::string& GetExeDirectory() { | ||||||
|     static std::string exe_path; |     static std::string exe_path; | ||||||
|     if (exe_path.empty()) { |     if (exe_path.empty()) { | ||||||
|         wchar_t wchar_exe_path[2048]; |         wchar_t wchar_exe_path[2048]; | ||||||
|  | |||||||
| @ -133,7 +133,7 @@ std::string GetBundleDirectory(); | |||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #ifdef _WIN32 | #ifdef _WIN32 | ||||||
| std::string& GetExeDirectory(); | const std::string& GetExeDirectory(); | ||||||
| std::string AppDataRoamingDirectory(); | std::string AppDataRoamingDirectory(); | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lioncash
						Lioncash