Skip to content

Commit 3ff84c5

Browse files
committed
Update macros
1 parent 30f10ff commit 3ff84c5

15 files changed

+27
-27
lines changed

shared/Patches/PBombNoteController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace QBeatSaberPlus_NoteTweaker::Patches {
99
/// @brief BombNoteController patch
1010
class PBombNoteController
1111
{
12-
DISABLE_CONSTRUCTORS(PBombNoteController);
12+
CP_SDK_NO_DEF_CTORS(PBombNoteController);
1313

1414
public:
1515
/// @brief Set from configuration

shared/Patches/PBurstSliderGameNoteController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace QBeatSaberPlus_NoteTweaker::Patches {
77
/// @brief GameNoteController Patch
88
class PBurstSliderGameNoteController
99
{
10-
DISABLE_CONSTRUCTORS(PBurstSliderGameNoteController);
10+
CP_SDK_NO_DEF_CTORS(PBurstSliderGameNoteController);
1111

1212
public:
1313
/// @brief Set from configuration

shared/Patches/PColorNoteVisuals.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace QBeatSaberPlus_NoteTweaker::Patches {
1616
/// @brief ColorNoteVisuals patch
1717
class PColorNoteVisuals
1818
{
19-
DISABLE_CONSTRUCTORS(PColorNoteVisuals);
19+
CP_SDK_NO_DEF_CTORS(PColorNoteVisuals);
2020

2121
public:
2222
/// @brief Set from configuration

shared/Patches/PGameNoteController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace QBeatSaberPlus_NoteTweaker::Patches {
77
/// @brief GameNoteController Patch
88
class PGameNoteController
99
{
10-
DISABLE_CONSTRUCTORS(PGameNoteController);
10+
CP_SDK_NO_DEF_CTORS(PGameNoteController);
1111

1212
public:
1313
/// @brief Set from configuration

shared/Patches/PSliderController.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace QBeatSaberPlus_NoteTweaker::Patches {
77
/// @brief SliderController patch
88
class PSliderController
99
{
10-
DISABLE_CONSTRUCTORS(PSliderController);
10+
CP_SDK_NO_DEF_CTORS(PSliderController);
1111

1212
public:
1313
/// @brief Set from configuration

shared/Patches/PSliderHapticFeedbackInteractionEffect.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace QBeatSaberPlus_NoteTweaker::Patches {
77
/// @brief SliderHapticFeedbackInteractionEffect patch
88
class PSliderHapticFeedbackInteractionEffect
99
{
10-
DISABLE_CONSTRUCTORS(PSliderHapticFeedbackInteractionEffect);
10+
CP_SDK_NO_DEF_CTORS(PSliderHapticFeedbackInteractionEffect);
1111

1212
public:
1313
/// @brief Set from configuration

shared/UI/Modals/ProfileImportModal.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ namespace QBeatSaberPlus_NoteTweaker::UI::Modals {
1414
/// @brief Profile import modal
1515
class ProfileImportModal : public CP_SDK::UI::IModal
1616
{
17-
CP_SDK_IL2CPP_INHERIT_CUSTOM("QBeatSaberPlus_NoteTweaker.Modals", ProfileImportModal, CP_SDK::UI::IModal);
18-
CP_SDK_IL2CPP_DECLARE_CTOR_CHAIN(ProfileImportModal, CP_SDK::UI::IModal);
19-
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHAIN(ProfileImportModal, CP_SDK::UI::IModal);
17+
CP_SDK_IL2CPP_INHERIT("QBeatSaberPlus_NoteTweaker.Modals", ProfileImportModal, CP_SDK::UI::IModal);
18+
CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(ProfileImportModal);
19+
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(ProfileImportModal);
2020

2121
private:
2222
_u::XUIDropdown::Ptr m_Dropdown;

shared/UI/SettingsLeftView.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ namespace QBeatSaberPlus_NoteTweaker::UI {
88
/// @brief Settings left view controller
99
class SettingsLeftView : public CP_SDK::UI::ViewController
1010
{
11-
CP_SDK_IL2CPP_INHERIT_CUSTOM("QBeatSaberPlus_NoteTweaker.UI", SettingsLeftView, CP_SDK::UI::ViewController);
12-
CP_SDK_IL2CPP_DECLARE_CTOR_CHAIN(SettingsLeftView, CP_SDK::UI::ViewController);
13-
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHAIN(SettingsLeftView, CP_SDK::UI::ViewController);
11+
CP_SDK_IL2CPP_INHERIT("QBeatSaberPlus_NoteTweaker.UI", SettingsLeftView, CP_SDK::UI::ViewController);
12+
CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(SettingsLeftView);
13+
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(SettingsLeftView);
1414
CP_SDK_UI_VIEW_CONTROLLER_INSTANCE();
1515

1616
private:

shared/UI/SettingsMainView.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ namespace QBeatSaberPlus_NoteTweaker::UI {
1717
/// @brief Settings main view controller
1818
class SettingsMainView : public CP_SDK::UI::ViewController
1919
{
20-
CP_SDK_IL2CPP_INHERIT_CUSTOM("QBeatSaberPlus_NoteTweaker.UI", SettingsMainView, CP_SDK::UI::ViewController);
21-
CP_SDK_IL2CPP_DECLARE_CTOR_CHAIN(SettingsMainView, CP_SDK::UI::ViewController);
22-
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHAIN(SettingsMainView, CP_SDK::UI::ViewController);
20+
CP_SDK_IL2CPP_INHERIT("QBeatSaberPlus_NoteTweaker.UI", SettingsMainView, CP_SDK::UI::ViewController);
21+
CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(SettingsMainView);
22+
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(SettingsMainView);
2323
CP_SDK_UI_VIEW_CONTROLLER_INSTANCE();
2424

2525
private:

shared/UI/SettingsRightView.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ namespace QBeatSaberPlus_NoteTweaker::UI {
1616
/// @brief Settings right view controller
1717
class SettingsRightView : public CP_SDK::UI::ViewController
1818
{
19-
CP_SDK_IL2CPP_INHERIT_CUSTOM("QBeatSaberPlus_NoteTweaker.UI", SettingsRightView, CP_SDK::UI::ViewController);
20-
CP_SDK_IL2CPP_DECLARE_CTOR_CHAIN(SettingsRightView, CP_SDK::UI::ViewController);
21-
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHAIN(SettingsRightView, CP_SDK::UI::ViewController);
19+
CP_SDK_IL2CPP_INHERIT("QBeatSaberPlus_NoteTweaker.UI", SettingsRightView, CP_SDK::UI::ViewController);
20+
CP_SDK_IL2CPP_DECLARE_CTOR_CHILD(SettingsRightView);
21+
CP_SDK_IL2CPP_DECLARE_DTOR_MONOBEHAVIOUR_CHILD(SettingsRightView);
2222
CP_SDK_UI_VIEW_CONTROLLER_INSTANCE();
2323

2424
private:

0 commit comments

Comments
 (0)