mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-26 15:40:05 +00:00
fixup: clang-format and code cleanups
This commit is contained in:
parent
ba479ac20e
commit
c9541cc906
@ -222,40 +222,36 @@ static System::Integrity::Status GetArchiveStatus(const std::string& name, const
|
|||||||
LOG_INFO(Core, "SystemCheck: %s exists.", name.c_str());
|
LOG_INFO(Core, "SystemCheck: %s exists.", name.c_str());
|
||||||
return System::Integrity::Dumped;
|
return System::Integrity::Dumped;
|
||||||
#ifdef ENABLE_CUSTOM_SYSTEM_ARCHIVES
|
#ifdef ENABLE_CUSTOM_SYSTEM_ARCHIVES
|
||||||
} else if (settings_version == CUSTOM_ARCHIVES_VERSION) {
|
} else if (settings_version != CUSTOM_ARCHIVES_VERSION && custom_data_length) {
|
||||||
LOG_WARNING(Core, "SystemCheck: %s(custom) exists.", name.c_str());
|
|
||||||
return System::Integrity::Custom;
|
|
||||||
} else {
|
|
||||||
FileUtil::IOFile file(shared_font_path, "wb");
|
FileUtil::IOFile file(shared_font_path, "wb");
|
||||||
file.WriteBytes(custom_data, custom_data_length);
|
file.WriteBytes(custom_data, custom_data_length);
|
||||||
file.Close();
|
file.Close();
|
||||||
settings_version = CUSTOM_ARCHIVES_VERSION;
|
settings_version = CUSTOM_ARCHIVES_VERSION;
|
||||||
LOG_WARNING(Core, "SystemCheck: Updated %s.", name.c_str());
|
LOG_WARNING(Core, "SystemCheck: Updated %s.", name.c_str());
|
||||||
return System::Integrity::CreatedCustom;
|
return System::Integrity::CreatedCustom;
|
||||||
#else
|
|
||||||
} else {
|
|
||||||
LOG_WARNING(Core, "SystemCheck: %s(custom) exists.", name.c_str());
|
|
||||||
return System::Integrity::Custom;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} else {
|
LOG_WARNING(Core, "SystemCheck: %s(custom) exists.", name.c_str());
|
||||||
|
return System::Integrity::Custom;
|
||||||
|
}
|
||||||
|
|
||||||
if (!legacy_path.empty() && FileUtil::Exists(legacy_path)) {
|
if (!legacy_path.empty() && FileUtil::Exists(legacy_path)) {
|
||||||
LOG_INFO(Core, "SystemCheck: %s(legacy) exists.", name.c_str());
|
LOG_INFO(Core, "SystemCheck: %s(legacy) exists.", name.c_str());
|
||||||
return System::Integrity::DumpedLegacy;
|
return System::Integrity::DumpedLegacy;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
LOG_ERROR(Core, "SystemCheck: %s missing.", name.c_str());
|
LOG_ERROR(Core, "SystemCheck: %s missing.", name.c_str());
|
||||||
#ifdef ENABLE_CUSTOM_SYSTEM_ARCHIVES
|
#ifdef ENABLE_CUSTOM_SYSTEM_ARCHIVES
|
||||||
|
if (custom_data_length) {
|
||||||
FileUtil::IOFile file(shared_font_path, "wb");
|
FileUtil::IOFile file(shared_font_path, "wb");
|
||||||
file.WriteBytes(custom_data, custom_data_length);
|
file.WriteBytes(custom_data, custom_data_length);
|
||||||
file.Close();
|
file.Close();
|
||||||
settings_version = CUSTOM_ARCHIVES_VERSION;
|
settings_version = CUSTOM_ARCHIVES_VERSION;
|
||||||
LOG_WARNING(Core, "SystemCheck: Created %s.", name.c_str());
|
LOG_WARNING(Core, "SystemCheck: Created %s.", name.c_str());
|
||||||
return System::Integrity::CreatedCustom;
|
return System::Integrity::CreatedCustom;
|
||||||
#else
|
}
|
||||||
return System::Integrity::Missing;
|
|
||||||
#endif
|
#endif
|
||||||
}
|
return System::Integrity::Missing;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void System::SystemIntegrityCheck() {
|
void System::SystemIntegrityCheck() {
|
||||||
|
Loading…
Reference in New Issue
Block a user