MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / get_ignored_funcs

Function get_ignored_funcs

src/config.cpp:84–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84std::vector<std::string> get_ignored_funcs(const toml::table* patches_data) {
85 std::vector<std::string> ignored_funcs{};
86
87 // Check if the ignored funcs array exists.
88 const toml::node_view ignored_funcs_data = (*patches_data)["ignored"];
89
90 if (ignored_funcs_data.is_array()) {
91 const toml::array* ignored_funcs_array = ignored_funcs_data.as_array();
92
93 // Make room for all the ignored funcs in the array.
94 ignored_funcs.reserve(ignored_funcs_array->size());
95
96 // Gather the ignored and place them into the array.
97 ignored_funcs_array->for_each([&ignored_funcs](auto&& el) {
98 if constexpr (toml::is_string<decltype(el)>) {
99 ignored_funcs.push_back(*el);
100 }
101 });
102 }
103
104 return ignored_funcs;
105}
106
107std::vector<std::string> get_renamed_funcs(const toml::table* patches_data) {
108 std::vector<std::string> renamed_funcs{};

Callers 1

ConfigMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected