notification is send from editor to engine if file fails to load - fixes #1

This commit is contained in:
Mikulas Florek 2013-11-29 21:54:43 +01:00
parent 1d6c6038e4
commit 468bd24594
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,8 @@ namespace editor_ng.FileServer
{
ui.onFileNotFound(idx, path);
m_client.GetStream().Write(BitConverter.GetBytes(-1), 0, 4);
m_client.GetStream().Write(BitConverter.GetBytes(0), 0, 1);
m_client.GetStream().Write(BitConverter.GetBytes(idx), 0, 4);
}
}
}

View file

@ -100,7 +100,6 @@ void RendererImpl::onResize(int w, int h)
void resourceLoaded(void* user_data, char* file_data, int length, bool success)
{
assert(success);
RendererImpl* renderer = static_cast<RendererImpl*>(user_data);
if(success)
{