| 13205 | } |
| 13206 | |
| 13207 | void ImGui::LoadIniSettingsFromDisk(const char* ini_filename) |
| 13208 | { |
| 13209 | size_t file_data_size = 0; |
| 13210 | char* file_data = (char*)ImFileLoadToMemory(ini_filename, "rb", &file_data_size); |
| 13211 | if (!file_data) |
| 13212 | return; |
| 13213 | if (file_data_size > 0) |
| 13214 | LoadIniSettingsFromMemory(file_data, (size_t)file_data_size); |
| 13215 | IM_FREE(file_data); |
| 13216 | } |
| 13217 | |
| 13218 | // Zero-tolerance, no error reporting, cheap .ini parsing |
| 13219 | // Set ini_size==0 to let us use strlen(ini_data). Do not call this function with a 0 if your buffer is actually empty! |
nothing calls this directly
no test coverage detected