@@ -12,7 +12,7 @@ void GYModTile::viewMod(CCObject* sender) {
1212 GYModSettingsPopup::create (this ->m_modName , this ->m_modAuthor , this ->m_modID )->show ();
1313}
1414
15- GYModTile* GYModTile::create (const char * modName, const char * modAuthor, const char * modID) {
15+ GYModTile* GYModTile::create (std::string modName, std::string modAuthor, std::string modID) {
1616 GYModTile* ret = new GYModTile ();
1717 if (ret && ret->init (modName, modAuthor, modID)) {
1818 ret->autorelease ();
@@ -22,7 +22,7 @@ GYModTile* GYModTile::create(const char *modName, const char *modAuthor, const c
2222 return nullptr ;
2323}
2424
25- bool GYModTile::init (const char * modName, const char * modAuthor, const char * modID) {
25+ bool GYModTile::init (std::string modName, std::string modAuthor, std::string modID) {
2626 if (!CCLayer::init ())
2727 return false ;
2828
@@ -42,7 +42,7 @@ bool GYModTile::init(const char *modName, const char *modAuthor, const char *mod
4242 bg->setAnchorPoint ({ 0 .f , 0 .f });
4343 this ->addChild (bg);
4444
45- auto modNameText = CCLabelBMFont::create (modName, " bigFont.fnt" );
45+ auto modNameText = CCLabelBMFont::create (modName. c_str () , " bigFont.fnt" );
4646 modNameText->setPosition ({ this ->getContentSize ().width / 2 , this ->getContentSize ().height - winSize.height * 0 .05f });
4747 modNameText->setScale (0 .5f );
4848 bg->addChild (modNameText);
0 commit comments