This commit is contained in:
altalk23 2022-07-06 02:11:56 +03:00
commit 8188f957a8
2 changed files with 2 additions and 1 deletions

View file

@ -3780,7 +3780,7 @@ class MenuGameLayer {
class MenuLayer : cocos2d::CCLayer, FLAlertLayerProtocol {
inline MenuLayer() {}
~MenuLayer() = mac 0x1d1230, win 0x0, ios 0x0;
~MenuLayer() = mac 0x1d1230, win 0x190620, ios 0x0;
virtual bool init() = mac 0x1d14b0, win 0x1907b0, ios 0x0;
virtual void keyBackClicked() = mac 0x1d3160, win 0x191f90, ios 0x0;
virtual void keyDown(cocos2d::enumKeyCodes) = mac 0x1d33d0, win 0x1922c0, ios 0x0;

View file

@ -46,6 +46,7 @@ types::ret{index} {class_name}::{function_name}({parameters}){const_whitespace}{
func(this{argument_comma}{arguments});
// we need to construct it back so that it uhhh ummm doesnt crash
// while going to the child destructors
std::memset(this, 0, sizeof({class_name}));
auto thing = new (this) {class_name}(std::monostate(), sizeof({class_name}));
CCDestructor::lock(this) = true;
}}