Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Commit

Permalink
fix: fix function ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Dec 30, 2023
1 parent 66fab03 commit e609303
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
14 changes: 9 additions & 5 deletions assets/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ regex = [
"^class .*$",
".*(@| |<).*",
"""^(?:std|gsl|entt|rapidjson|type_info|leveldb|asio|websocketpp|fmt|magic_enum).*""",
"^cricket::SctpDataContentDescription",
"^cricket::UnsupportedContentDescription",
"^unity_.*$", # preview
"^Concurrency(?:::.*)*$", # microsft Concurrency, no usage. pplinterface.h
"_WSABUF", # ws2def.h
Expand Down Expand Up @@ -116,11 +118,12 @@ regex = [
{ regex = "^NetherNet::.*", dst = "network/nethernet", override = true },
{ regex = "^webrtc.*", dst = "deps/webrtc", override = true },
{ regex = "^rtc::webrtc_logging_impl::ToStringVal$", dst = "deps/webrtc", override = true },
{ regex = "^(absl).*", dst = "deps/webrtc/absl", override = true },
{ regex = "^(rtc).*", dst = "deps/webrtc/rtc", override = true },
{ regex = "^(cricket).*", dst = "deps/webrtc/cricket", override = true },
{ regex = "^(dcsctp).*", dst = "deps/webrtc/dcsctp", override = true },
{ regex = "^(sigslot).*", dst = "deps/webrtc/sigslot", override = true },
{ regex = "^absl.*", dst = "deps/webrtc/absl", override = true },
{ regex = "^rtc.*", dst = "deps/webrtc/rtc", override = true },
{ regex = "^cricket::.*ContentDescription", dst = "deps/webrtc/cricket/description", override = true },
{ regex = "^cricket.*", dst = "deps/webrtc/cricket", override = true },
{ regex = "^dcsctp.*", dst = "deps/webrtc/dcsctp", override = true },
{ regex = "^sigslot.*", dst = "deps/webrtc/sigslot", override = true },
{ regex = ".*RakNet.*", dst = "deps/raknet", override = false },
{ regex = "OreUI::.*", dst = "client/gui/oreui", override = false },
{ regex = ".*DataStructures.*", dst = "deps/raknet/data_structures", override = false },
Expand All @@ -139,6 +142,7 @@ regex = [
{ regex = "^ScriptModuleMinecraftNet.*", dst = "scripting/modules/minecraft_net", override = false },
{ regex = "^ScriptModuleMinecraft.*", dst = "scripting/modules/minecraft", override = false },
{ regex = "^Script.*GameTest.*", dst = "external/scripting/gametest", override = false },
{ regex = "^Scripting::QuickJS.*", dst = "external/scripting/quickjs", override = false },
{ regex = "^Script.*", dst = "external/scripting", override = false },
{ regex = "^[Ii]mgui.*", dst = "external/imgui", override = false },
{ regex = "^Core::.*", dst = "deps/core", override = false },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ data class MemberTypeData(
if (paramsName.isNotEmpty() && params.size + paramNameBeginIndex == paramsName.size) {
// params name available
for (i in params.indices) {
paramsString += "${params[i].name} ${paramsName[i + paramNameBeginIndex]}"
var paramStr = params[i].name;
if(paramStr.contains("*)(") && paramStr.endsWith(")")) {
paramsString += paramStr.replace("*)(", "*${paramsName[i + paramNameBeginIndex]})(");
} else {
paramsString += "${paramStr} ${paramsName[i + paramNameBeginIndex]}"
}
if (i != params.size - 1) paramsString += ", "
}
} else {
Expand Down

0 comments on commit e609303

Please sign in to comment.