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

Method IsFilePending

src/async_handler.cpp:246–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244}
245
246bool AsyncHandler::IsFilePending(bool important, bool graphic) {
247 for (auto& ap: async_requests) {
248 FileRequestAsync& request = ap.second;
249
250#ifdef EP_DEBUG_SIMULATE_ASYNC
251 request.UpdateProgress();
252#endif
253
254 if (!request.IsReady()
255 && (!important || request.IsImportantFile())
256 && (!graphic || request.IsGraphicFile())
257 ) {
258 return true;
259 }
260 }
261
262 return false;
263}
264
265void AsyncHandler::SaveFilesystem() {
266#ifdef EMSCRIPTEN

Callers

nothing calls this directly

Calls 4

UpdateProgressMethod · 0.80
IsReadyMethod · 0.80
IsImportantFileMethod · 0.80
IsGraphicFileMethod · 0.80

Tested by

no test coverage detected