@@ -165,13 +165,10 @@ namespace Hooks {
165165 reinterpret_cast <void (*)(string*, int )>(
166166 dlsym (dlopen (" libcocos2dcpp.so" , RTLD_LAZY), " _ZN12GauntletNode11nameForTypeE12GauntletType" ))(&gauntletName, gauntletType);
167167
168- if (shouldReverseGauntlet (gauntletType)) {
169- nameLabel->setString (string (" Остров " ).append (gauntletName).c_str ());
170- shadowLabel->setString (string (" Остров " ).append (gauntletName).c_str ());
171- } else {
172- nameLabel->setString (gauntletName.append (" Остров" ).c_str ());
173- shadowLabel->setString (gauntletName.c_str ());
174- }
168+ auto newName = fmt::format (shouldReverseGauntlet (gauntletType) ? " Остров {}" : " {} Остров" , gauntletName);
169+
170+ nameLabel->setString (newName.c_str ());
171+ shadowLabel->setString (newName.c_str ());
175172
176173 return true ;
177174 }
@@ -191,7 +188,7 @@ namespace Hooks {
191188 lbl = node;
192189 }
193190
194- lbl->setString (string (" Таблица Лидеров для " ). append ( MBO (string, lvl, 252 )).c_str ());
191+ lbl->setString (fmt::format (" Таблица Лидеров для {} " , MBO (string, lvl, 252 )).c_str ());
195192
196193 return true ;
197194 }
@@ -202,7 +199,7 @@ namespace Hooks {
202199 auto spr = cocos2d::CCSprite::createWithSpriteFrameName (" gdl_icon.png" );
203200 spr->setScale (1 .25f );
204201
205- auto btn = CCMenuItemSpriteExtra::create (spr, spr, self, (cocos2d::SEL_MenuHandler)& GDLMenu::openLayer);
202+ auto btn = CCMenuItemSpriteExtra::create (spr, spr, self, menu_selector ( GDLMenu::openLayer) );
206203 btn->setPosition ({0 , 0 });
207204
208205 auto menu = CCMenu::create ();
@@ -270,7 +267,7 @@ namespace Hooks {
270267
271268 auto winSize = CCDirector::sharedDirector ()->getWinSize ();
272269
273- auto lbl = CCLabelBMFont::create (" GDL 1.1.1 " , " goldFont.fnt" );
270+ auto lbl = CCLabelBMFont::create (" GDL 1.1.2 " , " goldFont.fnt" );
274271 lbl->setPosition ({winSize.width / 2 .f , winSize.height - 15 .f });
275272 lbl->setScale (.8f );
276273 self->addChild (lbl);
0 commit comments