Resource system: Difference between revisions

m
→‎Compressed files: use a reference
imported>Leoetlino
imported>Leoetlino
m (→‎Compressed files: use a reference)
Line 32: Line 32:
When a resource load is requested, the resource system will in most cases automatically prepend 's' to the extension and use <code>sead::ResourceMgr::tryLoadWithDecomp</code> to try loading a compressed version first. This means that any code that interacts with the resource loading functions '''must''' not include the prefix in resource paths.
When a resource load is requested, the resource system will in most cases automatically prepend 's' to the extension and use <code>sead::ResourceMgr::tryLoadWithDecomp</code> to try loading a compressed version first. This means that any code that interacts with the resource loading functions '''must''' not include the prefix in resource paths.


Exceptions: bfevfl, bcamanim and barslist are always loaded uncompressed (see 0x710120A9F4 in Switch 1.5.0).
Exceptions: bfevfl, bcamanim and barslist are always loaded uncompressed<ref>See 0x710120A9F4 in Switch 1.5.0</ref>.


=== Archives ===
=== Archives ===
Anonymous user