diff --git a/codegen/CMakeLists.txt b/codegen/CMakeLists.txt index f0257203..3112c3ec 100644 --- a/codegen/CMakeLists.txt +++ b/codegen/CMakeLists.txt @@ -4,7 +4,7 @@ project(Codegen LANGUAGES C CXX) include(../cmake/CPM.cmake) CPMAddPackage("gh:fmtlib/fmt#9.1.0") -CPMAddPackage("gh:camila314/Broma#1.0.0") +CPMAddPackage("gh:geode-sdk/Broma#eb45fab") file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp diff --git a/codegen/src/BindingGen.cpp b/codegen/src/BindingGen.cpp index 1351813e..b10af4e6 100644 --- a/codegen/src/BindingGen.cpp +++ b/codegen/src/BindingGen.cpp @@ -130,19 +130,13 @@ std::string generateAddressDocs(Field const& field, FunctionBindField* fn) { } std::string generateDocs(std::string const& docs) { - if (docs.size() > 0) { - std::cout << docs << "\n"; - } if (docs.size() < 7) return ""; - auto ret = docs.substr(1, docs.size() - 5); // i hate this but idk how to generalize + auto ret = docs.substr(1, docs.size() - 6); // i hate this but idk how to generalize for (auto next = ret.find(" "); next != std::string::npos; next = ret.find(" ")) { ret.replace(next, 8, " * "); } - - - std::cout << ret << "\n"; - + return ret; }