MCPcopy Create free account
hub / github.com/Nelarius/imnodes / LoadEditorStateFromIniFile

Function LoadEditorStateFromIniFile

imnodes.cpp:3162–3174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3160}
3161
3162void LoadEditorStateFromIniFile(ImNodesEditorContext* const editor, const char* const file_name)
3163{
3164 size_t data_size = 0u;
3165 char* file_data = (char*)ImFileLoadToMemory(file_name, "rb", &data_size);
3166
3167 if (!file_data)
3168 {
3169 return;
3170 }
3171
3172 LoadEditorStateFromIniString(editor, file_data, data_size);
3173 ImGui::MemFree(file_data);
3174}
3175} // namespace IMNODES_NAMESPACE

Callers 1

Calls 2

ImFileLoadToMemoryFunction · 0.85

Tested by

no test coverage detected