MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

Dependencies/ImGui/src/imgui.cpp:15463–15477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15461}
15462
15463void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
15464{
15465 ImGuiContext& g = *GImGui;
15466 g.SettingsDirtyTimer = 0.0f;
15467 if (!ini_filename)
15468 return;
15469
15470 size_t ini_data_size = 0;
15471 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
15472 ImFileHandle f = ImFileOpen(ini_filename, "wt");
15473 if (!f)
15474 return;
15475 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
15476 ImFileClose(f);
15477}
15478
15479// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
15480const 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