MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / CallOpenFileCallback

Function CallOpenFileCallback

src/Window_BeOS.cpp:623–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621};
622
623static 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
633cc_result Window_OpenFileDialog(const struct OpenFileDialogArgs* args) {
634 if (!open_panel) {

Callers 1

DispatchMessageMethod · 0.85

Calls 2

String_AppendUtf8Function · 0.85
String_LengthFunction · 0.85

Tested by

no test coverage detected