summaryrefslogblamecommitdiffstats
path: root/src/core/file_sys/romfs.h
blob: b75ff1aada739cd641b0e056a253ab5844898f11 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               


            



                              

                                                 
                                          


                                                
                                                                  

                      
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "core/file_sys/vfs.h"

namespace FileSys {

// Converts a RomFS binary blob to VFS Filesystem
// Returns nullptr on failure
VirtualDir ExtractRomFS(VirtualFile file);

// Converts a VFS filesystem into a RomFS binary
// Returns nullptr on failure
VirtualFile CreateRomFS(VirtualDir dir, VirtualDir ext = nullptr);

} // namespace FileSys