MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:13970–13984  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13968}
13969
13970void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
13971{
13972 ImGuiContext& g = *GImGui;
13973 g.SettingsDirtyTimer = 0.0f;
13974 if (!ini_filename)
13975 return;
13976
13977 size_t ini_data_size = 0;
13978 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
13979 ImFileHandle f = ImFileOpen(ini_filename, "wt");
13980 if (!f)
13981 return;
13982 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
13983 ImFileClose(f);
13984}
13985
13986// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
13987const 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