Asset custom ready.
This commit is contained in:
@@ -94,8 +94,14 @@ errorret_t assetLoad(const char_t *filename, void *output) {
|
||||
errorChain(ret);
|
||||
break;
|
||||
|
||||
case ASSET_LOAD_STRAT_TEST:
|
||||
assertUnreachable("Asset load strategy not implemented yet.");
|
||||
case ASSET_LOAD_STRAT_CUSTOM:
|
||||
assertNotNull(def->custom, "Asset load function cannot be NULL.");
|
||||
assetcustom_t customData = {
|
||||
.zipFile = file,
|
||||
.output = output
|
||||
};
|
||||
errorChain(def->custom(&customData));
|
||||
break;
|
||||
|
||||
default:
|
||||
assertUnreachable("Unknown asset load strategy.");
|
||||
|
||||
Reference in New Issue
Block a user