MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

engine/3rdparty/imgui/imgui.cpp:12234–12248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12232}
12233
12234void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
12235{
12236 ImGuiContext& g = *GImGui;
12237 g.SettingsDirtyTimer = 0.0f;
12238 if (!ini_filename)
12239 return;
12240
12241 size_t ini_data_size = 0;
12242 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
12243 ImFileHandle f = ImFileOpen(ini_filename, "wt");
12244 if (!f)
12245 return;
12246 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
12247 ImFileClose(f);
12248}
12249
12250// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
12251const 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