We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33fd270 commit 2caa47eCopy full SHA for 2caa47e
include/raylib-aseprite.h
@@ -170,6 +170,12 @@ extern "C" {
170
Aseprite LoadAsepriteFromMemory(unsigned char* fileData, unsigned int size) {
171
struct Aseprite aseprite;
172
aseprite.ase = 0;
173
+
174
+ if (!IsWindowReady()) {
175
+ TraceLog(LOG_ERROR, "ASEPRITE: Loading an Aseprite requires the Window to be running");
176
+ return aseprite;
177
+ }
178
179
ase_t* ase = cute_aseprite_load_from_memory(fileData, (int)size, 0);
180
if (ase == 0 || ase->frame_count == 0 || ase->w == 0 || ase->h == 0) {
181
TraceLog(LOG_ERROR, "ASEPRITE: Failed to load Aseprite");
0 commit comments