mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-25 07:51:21 -08:00
CFG: Some indentation
This commit is contained in:
parent
b3cee19289
commit
6f304d3b00
@ -44,7 +44,8 @@ ResultCode GetConfigInfoBlock(u32 block_id, u32 size, u32 flag, u8* output) {
|
|||||||
|
|
||||||
auto itr = std::find_if(std::begin(config->block_entries), std::end(config->block_entries),
|
auto itr = std::find_if(std::begin(config->block_entries), std::end(config->block_entries),
|
||||||
[&](const SaveConfigBlockEntry& entry) {
|
[&](const SaveConfigBlockEntry& entry) {
|
||||||
return entry.block_id == block_id && entry.size == size && (entry.flags & flag);
|
return entry.block_id == block_id && entry.size == size &&
|
||||||
|
(entry.flags & flag);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (itr == std::end(config->block_entries)) {
|
if (itr == std::end(config->block_entries)) {
|
||||||
@ -160,9 +161,10 @@ ResultCode FormatConfig() {
|
|||||||
void CFGInit() {
|
void CFGInit() {
|
||||||
// TODO(Subv): In the future we should use the FS service to query this archive,
|
// TODO(Subv): In the future we should use the FS service to query this archive,
|
||||||
// currently it is not possible because you can only have one open archive of the same type at any time
|
// currently it is not possible because you can only have one open archive of the same type at any time
|
||||||
|
using Common::make_unique;
|
||||||
std::string syssavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX);
|
std::string syssavedata_directory = FileUtil::GetUserPath(D_SYSSAVEDATA_IDX);
|
||||||
cfg_system_save_data = Common::make_unique<FileSys::Archive_SystemSaveData>(syssavedata_directory,
|
cfg_system_save_data = make_unique<FileSys::Archive_SystemSaveData>(
|
||||||
CFG_SAVE_ID);
|
syssavedata_directory, CFG_SAVE_ID);
|
||||||
if (!cfg_system_save_data->Initialize()) {
|
if (!cfg_system_save_data->Initialize()) {
|
||||||
LOG_CRITICAL(Service_CFG, "Could not initialize SystemSaveData archive for the CFG:U service");
|
LOG_CRITICAL(Service_CFG, "Could not initialize SystemSaveData archive for the CFG:U service");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user