Resource system: Difference between revisions

m
imported>Leoetlino
m (→‎Cases where the AoC file device is used: fix AocVersion.txt file name)
imported>Leoetlino
Line 44: Line 44:
In order to load add-on content, the file device '''must''' be set to the AoC file device when calling a resource loading function.
In order to load add-on content, the file device '''must''' be set to the AoC file device when calling a resource loading function.


This can be done by calling various <code>aocManager</code> that return the AoC file device if the resource path matches specific AoC path patterns and assigning the result to field 0x48 in the ResourceLoadArg class.
This can be done by calling various <code>aocManager</code> functions that return the AoC file device if the resource path matches specific AoC path patterns and assigning the result to field 0x48 in the ResourceLoadArg class.


If no file device is explicitly set, the resource system will use the default file device (romfs on Switch or content directory on Wii U).
If no file device is explicitly set, the resource system will use the default file device (romfs on Switch or content directory on Wii U).
Anonymous user