| 27 | namespace crown |
| 28 | { |
| 29 | ResourceLoader::ResourceLoader(Filesystem &data_filesystem, bool is_bundle) |
| 30 | : _data_filesystem(data_filesystem) |
| 31 | , _is_bundle(is_bundle) |
| 32 | , _requests(default_allocator()) |
| 33 | , _loaded(default_allocator()) |
| 34 | , _fallback(default_allocator()) |
| 35 | , _exit(false) |
| 36 | { |
| 37 | _thread.start([](void *thiz) { return ((ResourceLoader *)thiz)->run(); }, this); |
| 38 | } |
| 39 | |
| 40 | ResourceLoader::~ResourceLoader() |
| 41 | { |