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

Method LoadIniSettingsFromDisk

include/imgui/imgui.cpp:15482–15491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15480}
15481
15482void ImGui::LoadIniSettingsFromDisk(const char* ini_filename)
15483{
15484 size_t file_data_size = 0;
15485 char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size);
15486 if (!file_data)
15487 return;
15488 if (file_data_size > 0)
15489 LoadIniSettingsFromMemory(file_data, (size_t)file_data_size);
15490 IM_FREE(file_data);
15491}
15492
15493// Zero-tolerance, no error reporting, cheap .ini parsing
15494// 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