Capabilities / assets.redirect
assets.redirect
@1Pointing an asset load somewhere else.
Interception happens at load, not at use. An asset already loaded is already in whatever form the game put it in, and redirecting it then would mean replacing something the game is holding.
2 callsSurface as of 2026-10-21
Calls
redirectWRITES
redirect(asset: str, to: str) -> Result<>
In C, from surface.h
int32_t axiom_assets_redirect_redirect(const char* asset, uint32_t asset_length, const char* to, uint32_t to_length);
restoreWRITES
restore(asset: str) -> Result<>
In C, from surface.h
int32_t axiom_assets_redirect_restore(const char* asset, uint32_t asset_length);
Errors
A call that returns Result crosses as a status: 0 is success, and the others are these errors, by their index in the capability.
UnknownAssetUnsupportedDenied