MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

plugins/Cardinal/src/DearImGui/imgui.cpp:11185–11199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11183}
11184
11185void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
11186{
11187 ImGuiContext& g = *GImGui;
11188 g.SettingsDirtyTimer = 0.0f;
11189 if (!ini_filename)
11190 return;
11191
11192 size_t ini_data_size = 0;
11193 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
11194 ImFileHandle f = ImFileOpen(ini_filename, "wt");
11195 if (!f)
11196 return;
11197 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
11198 ImFileClose(f);
11199}
11200
11201// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
11202const char* ImGui::SaveIniSettingsToMemory(size_t* out_size)

Callers

nothing calls this directly

Calls 3

ImFileOpenFunction · 0.70
ImFileWriteFunction · 0.70
ImFileCloseFunction · 0.70

Tested by

no test coverage detected