| 284 | extern "C" { |
| 285 | |
| 286 | EMSCRIPTEN_KEEPALIVE bool jsInjectFile(const char *path, const fl::u8 *data, |
| 287 | size_t len) { |
| 288 | |
| 289 | auto inserted = fl::_createIfNotExists(fl::string(path), len); |
| 290 | if (!inserted) { |
| 291 | FL_WARN("File can only be injected once."); |
| 292 | return false; |
| 293 | } |
| 294 | inserted->append(data, len); |
| 295 | return true; |
| 296 | } |
| 297 | |
| 298 | EMSCRIPTEN_KEEPALIVE bool jsAppendFile(const char *path, const fl::u8 *data, |
| 299 | size_t len) { |
nothing calls this directly
no test coverage detected