2022-04-23 04:59:50 -04:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-07-27 18:14:03 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-01-16 06:23:01 +01:00
|
|
|
#include "core/file_sys/vfs/vfs.h"
|
2018-07-27 18:14:03 -04:00
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
|
|
|
// Converts a RomFS binary blob to VFS Filesystem
|
|
|
|
// Returns nullptr on failure
|
2023-10-31 20:11:14 -04:00
|
|
|
VirtualDir ExtractRomFS(VirtualFile file);
|
2018-09-19 22:04:51 -04:00
|
|
|
|
|
|
|
// Converts a VFS filesystem into a RomFS binary
|
|
|
|
// Returns nullptr on failure
|
2018-10-02 08:56:56 -04:00
|
|
|
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext = nullptr);
|
2018-07-27 18:14:03 -04:00
|
|
|
|
|
|
|
} // namespace FileSys
|