MCPcopy Create free account
hub / github.com/cinder/Cinder / LoadIniSettingsFromDisk

Method LoadIniSettingsFromDisk

src/imgui/imgui.cpp:15176–15185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15174}
15175
15176void ImGui::LoadIniSettingsFromDisk(const char* ini_filename)
15177{
15178 size_t file_data_size = 0;
15179 char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size);
15180 if (!file_data)
15181 return;
15182 if (file_data_size > 0)
15183 LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
15184 IM_FREE(file_data);
15185}
15186
15187// Zero-tolerance, no error reporting, cheap .ini parsing
15188// 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