Applied clang-format-19 to all files

This commit is contained in:
OpenSauce04 2025-02-27 15:24:32 +00:00
parent f3d0373afb
commit d593ee2bc8
16 changed files with 61 additions and 61 deletions

View file

@ -3467,7 +3467,8 @@ bool GMainWindow::ConfirmChangeGame() {
}
auto answer = QMessageBox::question(
this, tr("Azahar"), tr("The application is still running. Would you like to stop emulation?"),
this, tr("Azahar"),
tr("The application is still running. Would you like to stop emulation?"),
QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
return answer != QMessageBox::No;
}

View file

@ -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,

View file

@ -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) {

View file

@ -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++;

View file

@ -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)

View file

@ -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)

View file

@ -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};

View file

@ -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};

View file

@ -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);

View file

@ -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);
}

View file

@ -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"

View file

@ -209,7 +209,9 @@ void MerryAudioFixture::initSharedMem(AudioState& state) {
config.sync_count_dirty.Assign(true);
}
{ config.reset_flag.Assign(true); }
{
config.reset_flag.Assign(true);
}
}
{

View file

@ -636,8 +636,8 @@ PicaCore::RenderPropertiesGuess PicaCore::GuessCmdRenderProperties(PAddr list, u
find_info.paddr = value * 8;
find_info.paddr_found = true;
break;
[[unlikely]] case PICA_REG_INDEX(pipeline.command_buffer.trigger[0]) :
[[unlikely]] case PICA_REG_INDEX(pipeline.command_buffer.trigger[1]) : {
[[unlikely]] case PICA_REG_INDEX(pipeline.command_buffer.trigger[0]):
[[unlikely]] case PICA_REG_INDEX(pipeline.command_buffer.trigger[1]): {
const u32 index =
static_cast<u32>(cmd_id - PICA_REG_INDEX(pipeline.command_buffer.trigger[0]));
const PAddr addr = regs.internal.pipeline.command_buffer.GetPhysicalAddress(index);
@ -683,9 +683,9 @@ PicaCore::RenderPropertiesGuess PicaCore::GuessCmdRenderProperties(PAddr list, u
template <class Archive>
void PicaCore::CommandList::serialize(Archive& ar, const u32 file_version) {
ar& addr;
ar& length;
ar& current_index;
ar & addr;
ar & length;
ar & current_index;
if (Archive::is_loading::value) {
const u8* ptr = Core::System::GetInstance().Memory().GetPhysicalPointer(addr);
head = reinterpret_cast<const u32*>(ptr);

View file

@ -110,10 +110,10 @@ public:
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive& ar, const u32 file_version) {
ar& input_vertex;
ar& current_attribute;
ar& reset_geometry_pipeline;
ar& queue;
ar & input_vertex;
ar & current_attribute;
ar & reset_geometry_pipeline;
ar & queue;
}
};
@ -200,7 +200,7 @@ public:
template <class Archive>
void serialize(Archive& ar, const u32 file_version) {
ar& raw;
ar & raw;
}
};
@ -257,19 +257,19 @@ private:
friend class boost::serialization::access;
template <class Archive>
void serialize(Archive& ar, const u32 file_version) {
ar& regs_lcd;
ar& regs.reg_array;
ar& gs_unit;
ar& vs_setup;
ar& gs_setup;
ar& proctex;
ar& lighting;
ar& fog;
ar& input_default_attributes;
ar& immediate;
ar& geometry_pipeline;
ar& primitive_assembler;
ar& cmd_list;
ar & regs_lcd;
ar & regs.reg_array;
ar & gs_unit;
ar & vs_setup;
ar & gs_setup;
ar & proctex;
ar & lighting;
ar & fog;
ar & input_default_attributes;
ar & immediate;
ar & geometry_pipeline;
ar & primitive_assembler;
ar & cmd_list;
}
public:

View file

@ -970,10 +970,9 @@ void RasterizerOpenGL::SyncAndUploadLUTsLF() {
if (fs_uniform_block_data.fog_lut_dirty || invalidate) {
std::array<Common::Vec2f, 128> new_data;
std::transform(pica.fog.lut.begin(), pica.fog.lut.end(), new_data.begin(),
[](const auto& entry) {
return Common::Vec2f{entry.ToFloat(), entry.DiffToFloat()};
});
std::transform(
pica.fog.lut.begin(), pica.fog.lut.end(), new_data.begin(),
[](const auto& entry) { return Common::Vec2f{entry.ToFloat(), entry.DiffToFloat()}; });
if (new_data != fog_lut_data || invalidate) {
fog_lut_data = new_data;

View file

@ -963,10 +963,9 @@ void RasterizerVulkan::SyncAndUploadLUTsLF() {
if (fs_uniform_block_data.fog_lut_dirty || invalidate) {
std::array<Common::Vec2f, 128> new_data;
std::transform(pica.fog.lut.begin(), pica.fog.lut.end(), new_data.begin(),
[](const auto& entry) {
return Common::Vec2f{entry.ToFloat(), entry.DiffToFloat()};
});
std::transform(
pica.fog.lut.begin(), pica.fog.lut.end(), new_data.begin(),
[](const auto& entry) { return Common::Vec2f{entry.ToFloat(), entry.DiffToFloat()}; });
if (new_data != fog_lut_data || invalidate) {
fog_lut_data = new_data;