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