MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / FindSettingsHandler

Method FindSettingsHandler

lib/imgui/imgui.cpp:9508–9516  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9506}
9507
9508ImGuiSettingsHandler* ImGui::FindSettingsHandler(const char* type_name)
9509{
9510 ImGuiContext& g = *GImGui;
9511 const ImGuiID type_hash = ImHashStr(type_name);
9512 for (int handler_n = 0; handler_n < g.SettingsHandlers.Size; handler_n++)
9513 if (g.SettingsHandlers[handler_n].TypeHash == type_hash)
9514 return &g.SettingsHandlers[handler_n];
9515 return NULL;
9516}
9517
9518// Zero-tolerance, no error reporting, cheap .ini parsing
9519void ImGui::LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size)

Callers

nothing calls this directly

Calls 1

ImHashStrFunction · 0.85

Tested by

no test coverage detected