MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / LoadIniSettingsFromDisk

Method LoadIniSettingsFromDisk

imgui_tiny_app/imgui/imgui.cpp:16234–16243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16232}
16233
16234void ImGui::LoadIniSettingsFromDisk(const char* ini_filename)
16235{
16236 size_t file_data_size = 0;
16237 char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size);
16238 if (!file_data)
16239 return;
16240 if (file_data_size > 0)
16241 LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
16242 IM_FREE(file_data);
16243}
16244
16245// Zero-tolerance, no error reporting, cheap .ini parsing
16246// 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