mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	Merge pull request #662 from Subv/delete_file
FileSys: Append the requested path to the filesystem base path in DeleteFile
This commit is contained in:
		
						commit
						fd1f5c5414
					
				@ -58,11 +58,13 @@ ResultVal<std::unique_ptr<StorageBackend>> Disk_FileSystem::OpenFile(const std::
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ResultCode Disk_FileSystem::DeleteFile(const std::string& path) const {
 | 
					ResultCode Disk_FileSystem::DeleteFile(const std::string& path) const {
 | 
				
			||||||
    if (!FileUtil::Exists(path)) {
 | 
					    std::string full_path = base_directory + path;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    if (!FileUtil::Exists(full_path)) {
 | 
				
			||||||
        return ERROR_PATH_NOT_FOUND;
 | 
					        return ERROR_PATH_NOT_FOUND;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    FileUtil::Delete(path);
 | 
					    FileUtil::Delete(full_path);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return RESULT_SUCCESS;
 | 
					    return RESULT_SUCCESS;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user