mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	android: common: file_util: Add user_path, ConfigDir, and CacheDir.
This commit is contained in:
		
							parent
							
								
									1c61f066d1
								
							
						
					
					
						commit
						bf8224213d
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -683,7 +683,11 @@ void SetUserPath(const std::string& path) { | |||
|         g_paths.emplace(UserPath::ConfigDir, user_path + CONFIG_DIR DIR_SEP); | ||||
|         g_paths.emplace(UserPath::CacheDir, user_path + CACHE_DIR DIR_SEP); | ||||
| #elif ANDROID | ||||
|         ASSERT_MSG(false, "Specified path {} is not valid", path); | ||||
|         if (FileUtil::Exists(ROOT_DIR DIR_SEP SDCARD_DIR)) { | ||||
|             user_path = ROOT_DIR DIR_SEP SDCARD_DIR DIR_SEP EMU_DATA_DIR DIR_SEP; | ||||
|             g_paths.emplace(UserPath::ConfigDir, user_path + CONFIG_DIR DIR_SEP); | ||||
|             g_paths.emplace(UserPath::CacheDir, user_path + CACHE_DIR DIR_SEP); | ||||
|         } | ||||
| #else | ||||
|         if (FileUtil::Exists(ROOT_DIR DIR_SEP USERDATA_DIR)) { | ||||
|             user_path = ROOT_DIR DIR_SEP USERDATA_DIR DIR_SEP; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue