Skip to content

Commit e7ce860

Browse files
committed
Update broma, remove need to change cwd
1 parent fb6629a commit e7ce860

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

bindings/2.2074/GeometryDash.bro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24426,7 +24426,7 @@ class UploadPopup : FLAlertLayer, LevelUploadDelegate {
2442624426
if (glm->m_levelUploadDelegate == this) glm->m_levelUploadDelegate = nullptr;
2442724427
}
2442824428

24429-
static UploadPopup* create(GJGameLevel*) = win inline {
24429+
static UploadPopup* create(GJGameLevel*) = m1 0x8fd4, win inline {
2443024430
auto ret = new UploadPopup();
2443124431
if (ret->init(p0)) {
2443224432
ret->autorelease();

codegen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ project(Codegen LANGUAGES C CXX)
44
include(../cmake/CPM.cmake)
55

66
CPMAddPackage("gh:fmtlib/fmt#11.0.2")
7-
CPMAddPackage("gh:geode-sdk/Broma#26217a4")
7+
CPMAddPackage("gh:geode-sdk/Broma#8f00942")
88
CPMAddPackage("gh:geode-sdk/json@3.2.1")
99

1010
target_compile_definitions(fmt PUBLIC -DFMT_CONSTEVAL=)

codegen/src/Main.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,6 @@ int main(int argc, char** argv) try {
6767
else if (p == "Android64") codegen::platform = Platform::Android64;
6868
else throw codegen::error("Invalid platform {}\n", p);
6969

70-
auto rootDir = std::filesystem::path(argv[2]);
71-
std::filesystem::current_path(rootDir);
7270

7371
auto writeDir = std::filesystem::path(argv[3]) / "Geode";
7472
std::filesystem::create_directories(writeDir);
@@ -112,7 +110,8 @@ int main(int argc, char** argv) try {
112110
std::filesystem::create_directories(writeDir / "modify");
113111
std::filesystem::create_directories(writeDir / "binding");
114112

115-
Root root = broma::parse_file("Entry.bro");
113+
auto rootDir = std::filesystem::path(argv[2]);
114+
Root root = broma::parse_file(rootDir / "Entry.bro");
116115

117116
for (auto cls : root.classes) {
118117
for (auto dep : cls.attributes.depends) {

codegen/src/Shared.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,6 @@ namespace codegen {
411411
return "";
412412
}
413413
}
414-
else {
415-
return "";
416-
}
414+
return "";
417415
}
418416
}

0 commit comments

Comments
 (0)