3
0
Fork 0
forked from suyu/suyu
suyu/src/core/file_sys/romfs.h

28 lines
790 B
C++
Raw Normal View History

2018-07-28 00:14:03 +02:00
// Copyright 2018 yuzu emulator team
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <array>
#include "core/file_sys/vfs.h"
namespace FileSys {
enum class RomFSExtractionType {
Full, // Includes data directory
Truncated, // Traverses into data directory
SingleDiscard, // Traverses into the first subdirectory of root
};
2018-07-28 00:14:03 +02:00
// Converts a RomFS binary blob to VFS Filesystem
// Returns nullptr on failure
VirtualDir ExtractRomFS(VirtualFile file,
RomFSExtractionType type = RomFSExtractionType::Truncated);
2018-09-20 04:04:51 +02:00
// Converts a VFS filesystem into a RomFS binary
// Returns nullptr on failure
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext = nullptr);
2018-07-28 00:14:03 +02:00
} // namespace FileSys