MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / SaveIniSettingsToDisk

Method SaveIniSettingsToDisk

KBotExt/imgui/imgui.cpp:13041–13055  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13039}
13040
13041void ImGui::SaveIniSettingsToDisk(const char* ini_filename)
13042{
13043 ImGuiContext& g = *GImGui;
13044 g.SettingsDirtyTimer = 0.0f;
13045 if (!ini_filename)
13046 return;
13047
13048 size_t ini_data_size = 0;
13049 const char* ini_data = SaveIniSettingsToMemory(&ini_data_size);
13050 ImFileHandle f = ImFileOpen(ini_filename, "wt");
13051 if (!f)
13052 return;
13053 ImFileWrite(ini_data, sizeof(char), ini_data_size, f);
13054 ImFileClose(f);
13055}
13056
13057// Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
13058const 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