mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
Add basic infrastructure for file handler plugins.
The purpose of this is for games which use archive file formats (containing many individual files), so that assets, files, etc. can be worked on more rapidly.
This commit is contained in:
@@ -94,7 +94,8 @@ void VirtualDiscFileSystem::LoadFileListIndex() {
|
||||
// Check if there's a handler specified.
|
||||
size_t handler_pos = line.find(':', filename_pos);
|
||||
if (handler_pos != line.npos) {
|
||||
entry.fileName = line.substr(filename_pos + 1, handler_pos - filename_pos);
|
||||
entry.fileName = line.substr(filename_pos + 1, handler_pos - filename_pos - 1);
|
||||
NOTICE_LOG(HLE, "Handler found: %s", line.substr(handler_pos + 1).c_str());
|
||||
// TODO: Implement handler.
|
||||
} else {
|
||||
entry.fileName = line.substr(filename_pos + 1);
|
||||
@@ -637,3 +638,11 @@ bool VirtualDiscFileSystem::RemoveFile(const std::string &filename)
|
||||
ERROR_LOG(HLE,"VirtualDiscFileSystem: Cannot remove file on virtual disc");
|
||||
return false;
|
||||
}
|
||||
|
||||
VirtualDiscFileSystem::Handler::Handler(const char *filename) {
|
||||
// TODO
|
||||
}
|
||||
|
||||
VirtualDiscFileSystem::Handler::~Handler() {
|
||||
// TODO
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user