forked from moonpower/azahar-UWP
Applied clang-format-19 to all files
This commit is contained in:
@@ -37,7 +37,9 @@
|
||||
#include "core/arm/skyeye_common/vfp/asm_vfp.h"
|
||||
|
||||
#define do_div(n, base) \
|
||||
{ n /= base; }
|
||||
{ \
|
||||
n /= base; \
|
||||
}
|
||||
|
||||
enum : u32 {
|
||||
FOP_MASK = 0x00b00040,
|
||||
|
||||
@@ -715,7 +715,7 @@ void System::serialize(Archive& ar, const unsigned int file_version) {
|
||||
if (Archive::is_saving::value) {
|
||||
num_cores = this->GetNumCores();
|
||||
}
|
||||
ar& num_cores;
|
||||
ar & num_cores;
|
||||
|
||||
if (Archive::is_loading::value) {
|
||||
// When loading, we want to make sure any lingering state gets cleared out before we begin.
|
||||
@@ -751,7 +751,7 @@ void System::serialize(Archive& ar, const unsigned int file_version) {
|
||||
ar&* memory.get();
|
||||
ar&* kernel.get();
|
||||
ar&* gpu.get();
|
||||
ar& movie;
|
||||
ar & movie;
|
||||
|
||||
// This needs to be set from somewhere - might as well be here!
|
||||
if (Archive::is_loading::value) {
|
||||
|
||||
@@ -2316,9 +2316,10 @@ void Module::Interface::GetNumImportTitleContextsImpl(IPC::RequestParser& rp,
|
||||
u32 count = 0;
|
||||
for (auto it = am->import_title_contexts.begin(); it != am->import_title_contexts.end(); it++) {
|
||||
if ((include_installing &&
|
||||
(it->second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
||||
it->second.state == ImportTitleContextState::RESUMABLE)) ||
|
||||
(include_finalizing && it->second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
|
||||
(it->second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
||||
it->second.state == ImportTitleContextState::RESUMABLE)) ||
|
||||
(include_finalizing &&
|
||||
it->second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
@@ -2336,10 +2337,10 @@ void Module::Interface::GetImportTitleContextListImpl(IPC::RequestParser& rp,
|
||||
|
||||
for (auto& key_value : am->import_content_contexts) {
|
||||
if ((include_installing &&
|
||||
(key_value.second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
||||
key_value.second.state == ImportTitleContextState::RESUMABLE)) ||
|
||||
(key_value.second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
|
||||
key_value.second.state == ImportTitleContextState::RESUMABLE)) ||
|
||||
(include_finalizing &&
|
||||
key_value.second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
|
||||
key_value.second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
|
||||
|
||||
out_buf.Write(&key_value.first, written * sizeof(u64), sizeof(u64));
|
||||
written++;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include "core/hle/service/cfg/cfg_nor.h"
|
||||
#include "core/hle/service/cfg/cfg_s.h"
|
||||
#include "core/hle/service/cfg/cfg_u.h"
|
||||
#include "core/loader/loader.h"
|
||||
#include "core/hw/unique_data.h"
|
||||
#include "core/loader/loader.h"
|
||||
|
||||
SERVICE_CONSTRUCT_IMPL(Service::CFG::Module)
|
||||
SERIALIZE_EXPORT_IMPL(Service::CFG::Module)
|
||||
|
||||
@@ -717,11 +717,11 @@ SessionData* GSP_GPU::FindRegisteredThreadData(u32 thread_id) {
|
||||
template <class Archive>
|
||||
void GSP_GPU::serialize(Archive& ar, const unsigned int) {
|
||||
ar& boost::serialization::base_object<Kernel::SessionRequestHandler>(*this);
|
||||
ar& shared_memory;
|
||||
ar& active_thread_id;
|
||||
ar& first_initialization;
|
||||
ar& used_thread_ids;
|
||||
ar& saved_vram;
|
||||
ar & shared_memory;
|
||||
ar & active_thread_id;
|
||||
ar & first_initialization;
|
||||
ar & used_thread_ids;
|
||||
ar & saved_vram;
|
||||
}
|
||||
SERIALIZE_IMPL(GSP_GPU)
|
||||
|
||||
@@ -780,10 +780,10 @@ std::unique_ptr<Kernel::SessionRequestHandler::SessionDataBase> GSP_GPU::MakeSes
|
||||
template <class Archive>
|
||||
void SessionData::serialize(Archive& ar, const unsigned int) {
|
||||
ar& boost::serialization::base_object<Kernel::SessionRequestHandler::SessionDataBase>(*this);
|
||||
ar& gsp;
|
||||
ar& interrupt_event;
|
||||
ar& thread_id;
|
||||
ar& registered;
|
||||
ar & gsp;
|
||||
ar & interrupt_event;
|
||||
ar & thread_id;
|
||||
ar & registered;
|
||||
}
|
||||
SERIALIZE_IMPL(SessionData)
|
||||
|
||||
|
||||
@@ -81,5 +81,4 @@ const unsigned char ctr_common_1_cert_bin[1264] = {
|
||||
0xBC, 0x7E, 0xDD, 0xAB, 0x9D, 0xB9, 0x56, 0xCB, 0xDC, 0xFB, 0x3F, 0x32, 0xCF, 0xC3, 0x17, 0x1B,
|
||||
0x25, 0x6E, 0xFF, 0xE8, 0xBD, 0x32, 0x57, 0xA3, 0x8B, 0x06, 0x9B, 0x1F, 0xA7, 0xFC, 0xE7, 0x3A,
|
||||
0x89, 0x54, 0xFA, 0x8E, 0x1B, 0xAD, 0xBF, 0x3C, 0xDD, 0x00, 0x49, 0xA3, 0xC1, 0x8D, 0xC8, 0x6D,
|
||||
0x8D, 0x43, 0xCC, 0x4E, 0xE5, 0xAE, 0xC9, 0x6C, 0x0C, 0x20, 0x09, 0x77, 0xDA, 0x8C, 0xE7, 0xAC
|
||||
};
|
||||
0x8D, 0x43, 0xCC, 0x4E, 0xE5, 0xAE, 0xC9, 0x6C, 0x0C, 0x20, 0x09, 0x77, 0xDA, 0x8C, 0xE7, 0xAC};
|
||||
|
||||
@@ -79,5 +79,4 @@ const unsigned char ctr_common_1_key_bin[1232] = {
|
||||
0x65, 0xD8, 0xF2, 0xB1, 0x79, 0x12, 0x10, 0x09, 0x5D, 0xFD, 0x63, 0x3A, 0xD7, 0xBE, 0xF3, 0xB2,
|
||||
0x9C, 0x0B, 0xCA, 0x0C, 0xE7, 0x4E, 0xE0, 0xBC, 0xFE, 0xB1, 0x0D, 0xB5, 0x87, 0x46, 0xD8, 0x3B,
|
||||
0x0B, 0xF1, 0x35, 0xD5, 0x0E, 0x92, 0xB2, 0xD3, 0x04, 0x72, 0x28, 0xA4, 0xC2, 0xB0, 0xA8, 0xD6,
|
||||
0xB9, 0xC4, 0x85, 0x97, 0x96, 0xA8, 0xED, 0xA2, 0xE6, 0x5D, 0x22, 0x5C, 0x30, 0x67, 0xA8, 0x8C
|
||||
};
|
||||
0xB9, 0xC4, 0x85, 0x97, 0x96, 0xA8, 0xED, 0xA2, 0xE6, 0x5D, 0x22, 0x5C, 0x30, 0x67, 0xA8, 0x8C};
|
||||
|
||||
@@ -24,8 +24,7 @@ MVD_STD::MVD_STD() : ServiceFramework("mvd:std", 1) {
|
||||
{0x001D, nullptr, "GetConfig"},
|
||||
{0x001E, nullptr, "SetConfig"},
|
||||
{0x001F, nullptr, "SetOutputBuffer"},
|
||||
{0x0021, nullptr, "OverrideOutputBuffers"}
|
||||
// clang-format on
|
||||
{0x0021, nullptr, "OverrideOutputBuffers"} // clang-format on
|
||||
};
|
||||
|
||||
RegisterHandlers(functions);
|
||||
|
||||
@@ -47,8 +47,7 @@ NFC_M::NFC_M(std::shared_ptr<Module> nfc) : Module::Interface(std::move(nfc), "n
|
||||
{0x0404, &NFC_M::SetRegisterInfo, "SetRegisterInfo"},
|
||||
{0x0405, &NFC_M::DeleteRegisterInfo, "DeleteRegisterInfo"},
|
||||
{0x0406, &NFC_M::DeleteApplicationArea, "DeleteApplicationArea"},
|
||||
{0x0407, &NFC_M::ExistsApplicationArea, "ExistsApplicationArea"}
|
||||
// clang-format on
|
||||
{0x0407, &NFC_M::ExistsApplicationArea, "ExistsApplicationArea"} // clang-format on
|
||||
};
|
||||
RegisterHandlers(functions);
|
||||
}
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
#include <fmt/format.h>
|
||||
#include "common/common_paths.h"
|
||||
#include "common/file_util.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "common/string_util.h"
|
||||
#include "core/hw/aes/key.h"
|
||||
#include "core/hw/rsa/rsa.h"
|
||||
#include "cryptopp/osrng.h"
|
||||
|
||||
Reference in New Issue
Block a user