MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / LoadIniSettingsFromDisk

Method LoadIniSettingsFromDisk

include/imgui/imgui.cpp:15572–15581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15570}
15571
15572void ImGui::LoadIniSettingsFromDisk(const char* ini_filename)
15573{
15574 size_t file_data_size = 0;
15575 char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size);
15576 if (!file_data)
15577 return;
15578 if (file_data_size > 0)
15579 LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
15580 IM_FREE(file_data);
15581}
15582
15583// Zero-tolerance, no error reporting, cheap .ini parsing
15584// 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