cfg: access FS via backend directly

This commit is contained in:
Weiyi Wang
2018-09-28 17:32:05 -04:00
parent 2757eff122
commit bcb5d438a9
2 changed files with 22 additions and 17 deletions

View File

@@ -8,7 +8,11 @@
#include <memory>
#include <string>
#include "common/common_types.h"
#include "core/hle/service/fs/archive.h"
#include "core/hle/service/service.h"
namespace FileSys {
class ArchiveBackend;
}
namespace Service::CFG {
@@ -399,7 +403,7 @@ public:
private:
static constexpr u32 CONFIG_SAVEFILE_SIZE = 0x8000;
std::array<u8, CONFIG_SAVEFILE_SIZE> cfg_config_file_buffer;
Service::FS::ArchiveHandle cfg_system_save_data_archive;
std::unique_ptr<FileSys::ArchiveBackend> cfg_system_save_data_archive;
u32 preferred_region_code = 0;
};