Notify failures when loading the sprite JSON and image

This commit is contained in:
Thiago Marcos P. Santos
2015-05-19 00:12:34 +03:00
parent 90fd06762c
commit 7274d2e195
5 changed files with 39 additions and 9 deletions

View File

@@ -126,6 +126,10 @@ void ResourceLoader::onSpriteLoaded() {
emitTileDataChanged();
}
void ResourceLoader::onSpriteLoadingFailed(std::exception_ptr error) {
emitResourceLoadingFailed(error);
}
void ResourceLoader::emitTileDataChanged() {
assert(Environment::currentlyOn(ThreadType::Map));