MCPcopy Create free account
hub / github.com/EasyRPG/Player / UpdateProgress

Method UpdateProgress

src/async_handler.cpp:390–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388}
389
390void FileRequestAsync::UpdateProgress() {
391#ifndef EMSCRIPTEN
392 // Fake download for testing event handlers
393
394 if (!IsReady() && Rand::ChanceOf(1, 100)) {
395 DownloadDone(true);
396 }
397#endif
398}
399
400FileRequestBinding FileRequestAsync::Bind(void(*func)(FileRequestResult*)) {
401 FileRequestBinding pending = CreatePending();

Callers 1

IsFilePendingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected