Merge branch 'layout' of https://github.com/geode-sdk/geode into layout

This commit is contained in:
HJfod 2022-11-28 17:42:35 +02:00
commit 35f2cbad9d
2 changed files with 9 additions and 1 deletions
bindings
loader/include/Geode/c++stl

View file

@ -3792,7 +3792,7 @@ class LevelEditorLayer : GJBaseGameLayer, LevelSettingsDelegate {
class LevelInfoLayer : cocos2d::CCLayer, LevelDownloadDelegate, LevelUpdateDelegate, RateLevelDelegate, LikeItemDelegate, FLAlertLayerProtocol, LevelDeleteDelegate, NumberInputDelegate, SetIDPopupDelegate {
static LevelInfoLayer* create(GJGameLevel* level) = mac 0x15f290, win 0x175d50;
bool init(GJGameLevel* level) = win 0x175DF0;
bool init(GJGameLevel* level) = win 0x175df0, mac 0x15f520;
void onGarage(cocos2d::CCObject* sender) = win 0x177c10;
void onViewProfile(cocos2d::CCObject* sender) = win 0x17ac90;
void onLevelInfo(cocos2d::CCObject* sender) = win 0x17acf0;

View file

@ -330,6 +330,14 @@ namespace gd {
m_capacity_end = m_start + input.size();
std::copy(input.begin(), input.end(), tmp);
}
void clear() {
delete[] m_start;
auto tmp = new T[0];
m_start = tmp;
m_finish = m_start;
m_capacity_end = m_start;
}
T& front() {
return *m_start;