Skip to content

Commit

Permalink
Reformatted for clang-format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel K. O. (dkosmari) committed Feb 20, 2025
1 parent 937b451 commit dd04d60
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions source/TVOverlayManager.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "TVOverlayManager.h"
#include "ButtonComboManager.h"
#include "globals.h"
#include "export.h"
#include "globals.h"
#include "logger.h"
#include "TVOverlayManager.h"

#include <coreinit/cache.h>
#include <coreinit/debug.h>
Expand Down Expand Up @@ -32,18 +32,18 @@ static void TVComboCallback(ButtonComboModule_ControllerTypes triggeredBy,
}

void registerTVCombo() {
ButtonComboModule_ComboOptions opt = {};
opt.version = BUTTON_COMBO_MODULE_COMBO_OPTIONS_VERSION;
opt.metaOptions.label = "TV remote overlay combo";
opt.callbackOptions.callback = TVComboCallback;
opt.callbackOptions.context = {};
opt.buttonComboOptions.type = BUTTON_COMBO_MODULE_COMBO_TYPE_PRESS_DOWN_OBSERVER;
opt.buttonComboOptions.basicCombo.combo = BCMPAD_BUTTON_TV;
opt.buttonComboOptions.basicCombo.controllerMask = BUTTON_COMBO_MODULE_CONTROLLER_VPAD;
opt.buttonComboOptions.optionalHoldForXMs = 0;
if (ButtonComboModule_AddButtonCombo(&opt, &sTVButtonHandle, nullptr) != BUTTON_COMBO_MODULE_ERROR_SUCCESS) {
DEBUG_FUNCTION_LINE("FAILED TO SET UP TV COMBO!");
}
ButtonComboModule_ComboOptions opt = {};
opt.version = BUTTON_COMBO_MODULE_COMBO_OPTIONS_VERSION;
opt.metaOptions.label = "TV remote overlay combo";
opt.callbackOptions.callback = TVComboCallback;
opt.callbackOptions.context = {};
opt.buttonComboOptions.type = BUTTON_COMBO_MODULE_COMBO_TYPE_PRESS_DOWN_OBSERVER;
opt.buttonComboOptions.basicCombo.combo = BCMPAD_BUTTON_TV;
opt.buttonComboOptions.basicCombo.controllerMask = BUTTON_COMBO_MODULE_CONTROLLER_VPAD;
opt.buttonComboOptions.optionalHoldForXMs = 0;
if (ButtonComboModule_AddButtonCombo(&opt, &sTVButtonHandle, nullptr) != BUTTON_COMBO_MODULE_ERROR_SUCCESS) {
DEBUG_FUNCTION_LINE("FAILED TO SET UP TV COMBO!");
}
}

void unregisterTVCombo() {
Expand Down Expand Up @@ -77,7 +77,7 @@ void updateTVStatus(VPADChan channel) {
// block ? "blocked" : "unblocked");
VPADSetTVMenuInvalid(channel, block);
sTVMenuBlocked[channel] = block;
sTVPressed[channel] = 0;
sTVPressed[channel] = 0;
}
}
}
2 changes: 1 addition & 1 deletion source/function_patches.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "ButtonComboInfo.h"
#include "ButtonComboManager.h"
#include "globals.h"
#include "TVOverlayManager.h"
#include "globals.h"

#include <function_patcher/fpatching_defines.h>
#include <logger.h>
Expand Down
4 changes: 2 additions & 2 deletions source/main.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "ButtonComboManager.h"
#include "function_patches.h"
#include "TVOverlayManager.h"
#include "export.h"
#include "function_patches.h"
#include "globals.h"
#include "logger.h"
#include "TVOverlayManager.h"
#include "version.h"

#include <wums.h>
Expand Down

0 comments on commit dd04d60

Please sign in to comment.