From 202b60edd67767eac7e2457e9ae5b6f5f5885394 Mon Sep 17 00:00:00 2001
From: alk <45172705+altalk23@users.noreply.github.com>
Date: Fri, 25 Nov 2022 01:30:17 +0300
Subject: [PATCH 1/2] Update gnustl.hpp

---
 loader/include/Geode/c++stl/gnustl.hpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/loader/include/Geode/c++stl/gnustl.hpp b/loader/include/Geode/c++stl/gnustl.hpp
index 395ea327..7bd2d526 100644
--- a/loader/include/Geode/c++stl/gnustl.hpp
+++ b/loader/include/Geode/c++stl/gnustl.hpp
@@ -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;

From 72a97e3ed1db004b9766496997d8431a779f7694 Mon Sep 17 00:00:00 2001
From: alk <45172705+altalk23@users.noreply.github.com>
Date: Fri, 25 Nov 2022 01:38:19 +0300
Subject: [PATCH 2/2] Add LevelInfoLayer::init for mac

---
 bindings/GeometryDash.bro | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bindings/GeometryDash.bro b/bindings/GeometryDash.bro
index 5b98281e..12e484f5 100644
--- a/bindings/GeometryDash.bro
+++ b/bindings/GeometryDash.bro
@@ -3789,7 +3789,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;