| 71 | } |
| 72 | |
| 73 | void ResourcePackage::flush() |
| 74 | { |
| 75 | while (!has_loaded()) { |
| 76 | _resource_manager->complete_requests(); |
| 77 | #if CROWN_PLATFORM_EMSCRIPTEN |
| 78 | os::sleep(16); |
| 79 | #endif |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | bool ResourcePackage::has_loaded() |
| 84 | { |
no test coverage detected