MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

extern/imgui/imgui.cpp:13239–13253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13237}
13238
13239void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
13240{
13241 ImGuiContext& g = *GImGui;
13242 g.SettingsDirtyTimer = 0.0f;
13243 if (!ini_filename)
13244 return;
13245
13246 size_t ini_data_size = 0;
13247 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
13248 ImFileHandle f = ImFileOpen(ini_filename, "wt");
13249 if (!f)
13250 return;
13251 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
13252 ImFileClose(f);
13253}
13254
13255// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
13256const 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