Fix linux?
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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 *).
|
||||||
|
|||||||
Reference in New Issue
Block a user