[Lint] Added InsertBraces to linter to unify codebase to one standard

This commit is contained in:
Gliniak
2026-05-08 18:47:25 +02:00
parent 2c68a2fc4b
commit 74f34818e7
39 changed files with 426 additions and 170 deletions

View File

@@ -589,8 +589,9 @@ void GamercardUI::OnDraw(ImGuiIO& io) {
dialog_open = false;
}
if (!is_valid_gamertag) {
if (ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip))
if (ImGui::IsItemHovered(ImGuiHoveredFlags_ForTooltip)) {
ImGui::SetTooltip("Saving disabled! Invalid gamertag provided.");
}
}
ImGui::EndDisabled();

View File

@@ -524,7 +524,9 @@ dword_result_t XamShowDeviceSelectorUI_entry(
// Default to the first storage device (HDD) if headless.
return xeXamDispatchHeadless(
[device_id_ptr, devices]() -> X_RESULT {
if (devices.empty()) return X_ERROR_CANCELLED;
if (devices.empty()) {
return X_ERROR_CANCELLED;
}
const DummyDeviceInfo* device_info = devices.front();
*device_id_ptr = static_cast<uint32_t>(device_info->device_id);
@@ -535,7 +537,9 @@ dword_result_t XamShowDeviceSelectorUI_entry(
auto close = [device_id_ptr, devices](MessageBoxDialog* dialog) -> X_RESULT {
uint32_t button = dialog->chosen_button();
if (button >= devices.size()) return X_ERROR_CANCELLED;
if (button >= devices.size()) {
return X_ERROR_CANCELLED;
}
const DummyDeviceInfo* device_info = devices.at(button);
*device_id_ptr = static_cast<uint32_t>(device_info->device_id);
@@ -911,7 +915,9 @@ X_RESULT xeXamShowSigninUI(uint32_t user_index, uint32_t users_needed,
UserProfile* profile = kernel_state()->xam_state()->GetUserProfile(i);
if (profile) {
xuids[i] = profile->xuid();
if (xuids.size() >= users_needed) break;
if (xuids.size() >= users_needed) {
break;
}
}
}