Add engine fatal error types handling
Add general out-of-memory handling Add safety memory buffer for crash or out of memory handling Refactor Globals exit/error state to be in Engine class
This commit is contained in:
@@ -46,14 +46,7 @@ public:
|
||||
}
|
||||
|
||||
// Create new chunk
|
||||
const auto chunk = New<FlaxChunk>();
|
||||
Output.Header.Chunks[index] = chunk;
|
||||
|
||||
if (chunk == nullptr)
|
||||
{
|
||||
OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
Output.Header.Chunks[index] = New<FlaxChunk>();
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user