| 107:b34bd1557c6c | 108:77254bd6dccb |
|---|---|
| 30 #include <stdlib.h> | 30 #include <stdlib.h> |
| 31 #include <string.h> | 31 #include <string.h> |
| 32 #include <sys/stat.h> | 32 #include <sys/stat.h> |
| 33 #include <errno.h> | 33 #include <errno.h> |
| 34 | 34 |
| 35 #ifdef _WIN32 | |
| 36 #include <direct.h> | |
| 37 #endif | |
| 38 | |
| 35 #include "../ui/toolkit.h" | 39 #include "../ui/toolkit.h" |
| 36 | 40 |
| 37 | 41 |
| 38 #include "properties.h" | 42 #include "properties.h" |
| 39 #include <cx/string.h> | 43 #include <cx/string.h> |
| 183 | 187 |
| 184 fclose(file); | 188 fclose(file); |
| 185 free(path); | 189 free(path); |
| 186 | 190 |
| 187 return ret; | 191 return ret; |
| 192 } | |
| 193 | |
| 194 // public | |
| 195 int ui_app_save_settings(void) { | |
| 196 return uic_store_app_properties(); | |
| 188 } | 197 } |
| 189 | 198 |
| 190 | 199 |
| 191 const char* ui_get_property(const char *name) { | 200 const char* ui_get_property(const char *name) { |
| 192 return cxMapGet(application_properties, name); | 201 return cxMapGet(application_properties, name); |