Fix linux?

This commit is contained in:
2026-06-06 17:14:42 -05:00
parent 9f3089742a
commit 2849ff8844
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -29,8 +29,10 @@ void assetEntryInit(
entry->state = ASSET_ENTRY_STATE_NOT_STARTED; entry->state = ASSET_ENTRY_STATE_NOT_STARTED;
if(input) { if(input) {
entry->inputData = *input; entry->inputData = *input;
entry->input = &entry->inputData;
} else { } else {
memoryZero(&entry->inputData, sizeof(assetloaderinput_t)); memoryZero(&entry->inputData, sizeof(assetloaderinput_t));
entry->input = NULL;
} }
refInit(&entry->refs, entry, NULL, NULL, NULL); refInit(&entry->refs, entry, NULL, NULL, NULL);
+1
View File
@@ -31,6 +31,7 @@ struct assetentry_s {
assetloaderoutput_t data; assetloaderoutput_t data;
assetentrystate_t state; assetentrystate_t state;
ref_t refs; ref_t refs;
assetloaderinput_t *input;
assetloaderinput_t inputData; assetloaderinput_t inputData;
/** /**
* Fired once when loading completes successfully (params = assetentry_t *). * Fired once when loading completes successfully (params = assetentry_t *).