mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-11-05 06:47:53 +00:00
d66ab2b8aa
These inclusions aren't used at all within the public interface, so they can be removed.
27 lines
790 B
C++
27 lines
790 B
C++
// 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
|
|
};
|
|
|
|
// Converts a RomFS binary blob to VFS Filesystem
|
|
// Returns nullptr on failure
|
|
VirtualDir ExtractRomFS(VirtualFile file,
|
|
RomFSExtractionType type = RomFSExtractionType::Truncated);
|
|
|
|
// Converts a VFS filesystem into a RomFS binary
|
|
// Returns nullptr on failure
|
|
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext = nullptr);
|
|
|
|
} // namespace FileSys
|