romfs: fix extraction of single-directory root
This commit is contained in:
parent
c60204e255
commit
b0c6bf497a
4 changed files with 18 additions and 40 deletions
|
@ -7,16 +7,9 @@
|
|||
|
||||
namespace FileSys {
|
||||
|
||||
enum class RomFSExtractionType {
|
||||
Full, // Includes data directory
|
||||
Truncated, // Traverses into data directory
|
||||
SingleDiscard, // Traverses into the first subdirectory of root
|
||||
};
|
||||
|
||||
// Converts a RomFS binary blob to VFS Filesystem
|
||||
// Returns nullptr on failure
|
||||
VirtualDir ExtractRomFS(VirtualFile file,
|
||||
RomFSExtractionType type = RomFSExtractionType::Truncated);
|
||||
VirtualDir ExtractRomFS(VirtualFile file);
|
||||
|
||||
// Converts a VFS filesystem into a RomFS binary
|
||||
// Returns nullptr on failure
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue