2022-11-05 13:58:44 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2024-01-26 01:18:56 +01:00
|
|
|
#include "core/file_sys/vfs/vfs.h"
|
2022-11-05 13:58:44 +01:00
|
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
|
|
|
|
|
// Converts a RomFS binary blob to VFS Filesystem
|
|
|
|
|
// Returns nullptr on failure
|
2023-11-01 16:15:15 +01:00
|
|
|
VirtualDir ExtractRomFS(VirtualFile file);
|
2022-11-05 13:58:44 +01:00
|
|
|
|
|
|
|
|
// Converts a VFS filesystem into a RomFS binary
|
|
|
|
|
// Returns nullptr on failure
|
|
|
|
|
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext = nullptr);
|
|
|
|
|
|
|
|
|
|
} // namespace FileSys
|