MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

lib/imgui/imgui.cpp:9574–9588  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9572}
9573
9574void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
9575{
9576 ImGuiContext& g = *GImGui;
9577 g.SettingsDirtyTimer = 0.0f;
9578 if (!ini_filename)
9579 return;
9580
9581 size_t ini_data_size = 0;
9582 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
9583 ImFileHandle f = ImFileOpen(ini_filename, "wt");
9584 if (!f)
9585 return;
9586 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
9587 ImFileClose(f);
9588}
9589
9590// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
9591const 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