@@ -29,7 +29,7 @@ class $modify(ProfilePage) {
29
29
{
30
30
bool a = ProfilePage::init (accountID, idk);
31
31
32
- if (!Mod::get ()->getSettingValue <bool >(" apply-profiles" ))
32
+ if (!Mod::get ()->getSettingValue <bool >(" apply-profiles" ) || Loader::get ()-> getLoadedMod ( " bitz.customprofiles " ) )
33
33
return a;
34
34
35
35
if (GradientPages::score)
@@ -98,7 +98,7 @@ class $modify(ProfilePage) {
98
98
99
99
ProfilePage::loadPageFromUserInfo (score);
100
100
101
- if (!Mod::get ()->getSettingValue <bool >(" apply-profiles" ))
101
+ if (!Mod::get ()->getSettingValue <bool >(" apply-profiles" ) || Loader::get ()-> getLoadedMod ( " bitz.customprofiles " ) )
102
102
return ;
103
103
104
104
log::info (" loadPageFromUserInfo" );
@@ -143,7 +143,7 @@ class $modify (GJAccountSettingsLayer)
143
143
if (!GJAccountSettingsLayer::init (idk))
144
144
return false ;
145
145
146
- if (!Mod::get ()->getSettingValue <bool >(" apply-profiles" ))
146
+ if (!Mod::get ()->getSettingValue <bool >(" apply-profiles" ) || Loader::get ()-> getLoadedMod ( " bitz.customprofiles " ) )
147
147
return true ;
148
148
149
149
auto l = reinterpret_cast <CCLayer*>(this ->getChildren ()->objectAtIndex (0 ));
@@ -404,7 +404,7 @@ class $modify(InfoLayer) {
404
404
if (!InfoLayer::init (level, score, p2))
405
405
return false ;
406
406
407
- if (!Mod::get ()->getSettingValue <bool >(" apply-info-layer" ))
407
+ if (!Mod::get ()->getSettingValue <bool >(" apply-info-layer" ) || Loader::get ()-> getLoadedMod ( " bitz.customprofiles " ) )
408
408
return true ;
409
409
410
410
auto l = reinterpret_cast <CCLayer*>(this ->getChildren ()->objectAtIndex (0 ));
@@ -473,6 +473,9 @@ class $modify (GJCommentListLayer)
473
473
{
474
474
auto a = GJCommentListLayer::create (p0, p1, p2, p3, p4, p5);
475
475
476
+ if (Loader::get ()->getLoadedMod (" bitz.customprofiles" ))
477
+ return a;
478
+
476
479
if (!(Mod::get ()->getSettingValue <bool >(" apply-profiles" ) || Mod::get ()->getSettingValue <bool >(" apply-info-layer" )))
477
480
return a;
478
481
0 commit comments