| 349 | static SDL_DialogFileFilter* save_filters; |
| 350 | |
| 351 | static void ProcessDialogEvent(SDL_Event* e) { |
| 352 | char* result = e->user.data1; |
| 353 | int length = e->user.code; |
| 354 | |
| 355 | cc_string path; char pathBuffer[1024]; |
| 356 | String_InitArray(path, pathBuffer); |
| 357 | String_AppendUtf8(&path, result, length); |
| 358 | |
| 359 | dlgCallback(&path); |
| 360 | dlgCallback = NULL; |
| 361 | Mem_Free(result); |
| 362 | } |
| 363 | |
| 364 | static void DialogCallback(void *userdata, const char* const* filelist, int filter) { |
| 365 | if (!filelist) return; /* Error occurred */ |
no test coverage detected