[Kernel] Implement File::OpenLinkFile

This commit is contained in:
wheremyfoodat 2023-03-10 01:04:04 +02:00
parent 2e11cef55c
commit 5966c02737
3 changed files with 33 additions and 1 deletions

View file

@ -95,6 +95,10 @@ struct FileSession {
FileSession(ArchiveBase* archive, const FSPath& filePath, const FSPath& archivePath, FILE* fd, bool isOpen = true) :
archive(archive), path(filePath), archivePath(archivePath), fd(fd), isOpen(isOpen) {}
// For cloning a file session
FileSession(const FileSession& other) : archive(other.archive), path(other.path),
archivePath(other.archivePath), fd(other.fd), isOpen(other.isOpen) {}
};
struct ArchiveSession {