2014-06-27 22:18:56 +02:00
|
|
|
// Copyright 2014 Citra Emulator Project
|
2014-12-17 06:38:14 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
2014-06-27 22:18:56 +02:00
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
2014-12-15 09:41:02 +01:00
|
|
|
#include <memory>
|
|
|
|
|
2014-06-27 22:18:56 +02:00
|
|
|
#include "common/common_types.h"
|
2015-01-01 01:36:50 +01:00
|
|
|
#include "common/file_util.h"
|
2014-12-20 06:21:23 +01:00
|
|
|
#include "common/make_unique.h"
|
2014-06-27 22:18:56 +02:00
|
|
|
|
|
|
|
#include "core/file_sys/archive_romfs.h"
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
// FileSys namespace
|
|
|
|
|
|
|
|
namespace FileSys {
|
|
|
|
|
2014-07-04 19:11:09 +02:00
|
|
|
Archive_RomFS::Archive_RomFS(const Loader::AppLoader& app_loader) {
|
2014-06-27 22:18:56 +02:00
|
|
|
// Load the RomFS from the app
|
|
|
|
if (Loader::ResultStatus::Success != app_loader.ReadRomFS(raw_data)) {
|
2014-12-06 02:53:49 +01:00
|
|
|
LOG_ERROR(Service_FS, "Unable to read RomFS!");
|
2014-06-27 22:18:56 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace FileSys
|