| 244 | } |
| 245 | |
| 246 | bool 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 | |
| 265 | void AsyncHandler::SaveFilesystem() { |
| 266 | #ifdef EMSCRIPTEN |
nothing calls this directly
no test coverage detected