MCPcopy Create free account
hub / github.com/Jaysmito101/TerraForge3D / LoadEditorStateFromIniFile

Function LoadEditorStateFromIniFile

include/imnodes/imnodes.cpp:3150–3162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3148}
3149
3150void LoadEditorStateFromIniFile(ImNodesEditorContext* const editor, const char* const file_name)
3151{
3152 size_t data_size = 0u;
3153 char* file_data = (char*)ImFileLoadToMemory(file_name, "rb", &data_size);
3154
3155 if (!file_data)
3156 {
3157 return;
3158 }
3159
3160 LoadEditorStateFromIniString(editor, file_data, data_size);
3161 ImGui::MemFree(file_data);
3162}
3163} // namespace IMNODES_NAMESPACE

Callers 1

Calls 2

ImFileLoadToMemoryFunction · 0.85

Tested by

no test coverage detected