| 621 | }; |
| 622 | |
| 623 | static void CallOpenFileCallback(const char* rawPath) { |
| 624 | cc_string path; char pathBuffer[1024]; |
| 625 | String_InitArray(path, pathBuffer); |
| 626 | if (!file_callback) return; |
| 627 | |
| 628 | String_AppendUtf8(&path, rawPath, String_Length(rawPath)); |
| 629 | file_callback(&path); |
| 630 | file_callback = NULL; |
| 631 | } |
| 632 | |
| 633 | cc_result Window_OpenFileDialog(const struct OpenFileDialogArgs* args) { |
| 634 | if (!open_panel) { |
no test coverage detected