MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / LoadIniSettingsFromDisk

Method LoadIniSettingsFromDisk

KBotExt/imgui/imgui.cpp:12958–12967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12956}
12957
12958void ImGui::LoadIniSettingsFromDisk(const char* ini_filename)
12959{
12960 size_t file_data_size = 0;
12961 char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size);
12962 if (!file_data)
12963 return;
12964 if (file_data_size > 0)
12965 LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
12966 IM_FREE(file_data);
12967}
12968
12969// Zero-tolerance, no error reporting, cheap .ini parsing
12970// Set ini_size==0 to let us use strlen(ini_data). Do not call this function with a 0 if your buffer is actually empty!

Callers

nothing calls this directly

Calls 1

ImFileLoadToMemoryFunction · 0.85

Tested by

no test coverage detected