| 25 | static char file_buf[500] = {0}; |
| 26 | |
| 27 | static bool transfer_progress_cb(void *context, int value, int total) { |
| 28 | (void)context; |
| 29 | EM_ASM({ |
| 30 | if (window.transferProgressCallback) { transferProgressCallback($0, $1); } |
| 31 | }, value, total); |
| 32 | return false; |
| 33 | } |
| 34 | |
| 35 | static int emu_send_variable_with_cb(const char *file, int location, usb_progress_handler_t *progress_handler) { |
| 36 | return emu_send_variables(&file, 1, location, progress_handler, NULL); |
nothing calls this directly
no outgoing calls
no test coverage detected