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( 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); QMessageBox::Yes | QMessageBox::No, QMessageBox::No);
return answer != QMessageBox::No; return answer != QMessageBox::No;
} }

View File

@ -37,7 +37,9 @@
#include "core/arm/skyeye_common/vfp/asm_vfp.h" #include "core/arm/skyeye_common/vfp/asm_vfp.h"
#define do_div(n, base) \ #define do_div(n, base) \
{ n /= base; } { \
n /= base; \
}
enum : u32 { enum : u32 {
FOP_MASK = 0x00b00040, FOP_MASK = 0x00b00040,

View File

@ -2318,7 +2318,8 @@ void Module::Interface::GetNumImportTitleContextsImpl(IPC::RequestParser& rp,
if ((include_installing && if ((include_installing &&
(it->second.state == ImportTitleContextState::WAITING_FOR_IMPORT || (it->second.state == ImportTitleContextState::WAITING_FOR_IMPORT ||
it->second.state == ImportTitleContextState::RESUMABLE)) || it->second.state == ImportTitleContextState::RESUMABLE)) ||
(include_finalizing && it->second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) { (include_finalizing &&
it->second.state == ImportTitleContextState::WAITING_FOR_COMMIT)) {
count++; count++;
} }
} }

View File

@ -28,8 +28,8 @@
#include "core/hle/service/cfg/cfg_nor.h" #include "core/hle/service/cfg/cfg_nor.h"
#include "core/hle/service/cfg/cfg_s.h" #include "core/hle/service/cfg/cfg_s.h"
#include "core/hle/service/cfg/cfg_u.h" #include "core/hle/service/cfg/cfg_u.h"
#include "core/loader/loader.h"
#include "core/hw/unique_data.h" #include "core/hw/unique_data.h"
#include "core/loader/loader.h"
SERVICE_CONSTRUCT_IMPL(Service::CFG::Module) SERVICE_CONSTRUCT_IMPL(Service::CFG::Module)
SERIALIZE_EXPORT_IMPL(Service::CFG::Module) SERIALIZE_EXPORT_IMPL(Service::CFG::Module)

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, 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, 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, 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, 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, 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, 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"}, {0x001D, nullptr, "GetConfig"},
{0x001E, nullptr, "SetConfig"}, {0x001E, nullptr, "SetConfig"},
{0x001F, nullptr, "SetOutputBuffer"}, {0x001F, nullptr, "SetOutputBuffer"},
{0x0021, nullptr, "OverrideOutputBuffers"} {0x0021, nullptr, "OverrideOutputBuffers"} // clang-format on
// clang-format on
}; };
RegisterHandlers(functions); 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"}, {0x0404, &NFC_M::SetRegisterInfo, "SetRegisterInfo"},
{0x0405, &NFC_M::DeleteRegisterInfo, "DeleteRegisterInfo"}, {0x0405, &NFC_M::DeleteRegisterInfo, "DeleteRegisterInfo"},
{0x0406, &NFC_M::DeleteApplicationArea, "DeleteApplicationArea"}, {0x0406, &NFC_M::DeleteApplicationArea, "DeleteApplicationArea"},
{0x0407, &NFC_M::ExistsApplicationArea, "ExistsApplicationArea"} {0x0407, &NFC_M::ExistsApplicationArea, "ExistsApplicationArea"} // clang-format on
// clang-format on
}; };
RegisterHandlers(functions); RegisterHandlers(functions);
} }

View File

@ -12,8 +12,8 @@
#include <fmt/format.h> #include <fmt/format.h>
#include "common/common_paths.h" #include "common/common_paths.h"
#include "common/file_util.h" #include "common/file_util.h"
#include "common/string_util.h"
#include "common/logging/log.h" #include "common/logging/log.h"
#include "common/string_util.h"
#include "core/hw/aes/key.h" #include "core/hw/aes/key.h"
#include "core/hw/rsa/rsa.h" #include "core/hw/rsa/rsa.h"
#include "cryptopp/osrng.h" #include "cryptopp/osrng.h"

View File

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

View File

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

View File

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