New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HLE/FS: Implemented FSFile::OpenSubFile. #3235
Conversation
bool subfile; ///< Whether this file was opened via OpenSubFile or not. | ||
}; | ||
|
||
std::vector<SessionSlot> session_slots; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<vector>
needs to be included.
std::unique_ptr<FileSys::FileBackend> backend; ///< File backend interface | ||
|
||
/// Creates a new session to this File and returns the ClientSession part of the connection. | ||
Kernel::SharedPtr<Kernel::ClientSession> Connect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"core/hle/kernel/kernel.h"
needs to be included.
} | ||
|
||
File::SessionSlot& File::GetSessionSlot(Kernel::SharedPtr<Kernel::ServerSession> session) { | ||
auto itr = std::find_if(session_slots.begin(), session_slots.end(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<algorithm>
needs to be included.
Addressed |
FBI causes citra to crash trying to install cias. |
@valentinvanelslande how is that related to this PR |
The File class now holds a list of connected sessions along with data unique to each session. A subfile is a window into an existing file. They have a few limitations compared to normal files: * They can't be written to. * They can't be flushed. * Their size can not be changed. * New subfiles can't be created from another subfile.
Should be fixed now |
The File class now holds a list of connected sessions along with data unique to each session.
A subfile is a window into an existing file. They have a few limitations compared to normal files:
This function is used by the DLP module to open the DLPChild CIA from the game's RomFS.
This change is