Asset custom ready.

This commit is contained in:
2025-11-08 08:41:32 -06:00
parent cf2aacd75b
commit ab534bb998
6 changed files with 40 additions and 14 deletions

View File

@@ -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.");