Line 6:
Line 6:
== Disc Apploader ==
== Disc Apploader ==
Disc apploaders are called by the [[System Menu]]. The <code>entry</code> function takes 3 pointers as arguments, and fills them with the <code>init</code>, <code>main</code>, and <code>finalize</code> functions{{Ref|https://github.com/dbarnett/wiimu/blob/a2bbe46a9b0af48be76564716a28a7b69aa77e74/source/disc.c#L322}}. <code>init</code> takes a print function as an argument and returns nothing. Meanwhile, <code>main</code> takes 3 pointers, which get filled with arguments to pass to DVDLowRead, and keeps getting called until it returns something other than 1. <code>finalize</code> takes no arguments, but returns the entrypoint, which the System Menu then jumps to.
Disc apploaders are called by the [[System Menu]]. The <code>entry</code> function takes 3 pointers as arguments, and fills them with the <code>init</code>, <code>main</code>, and <code>finalize</code> functions{{Ref|https://github.com/dbarnett/wiimu/blob/a2bbe46a9b0af48be76564716a28a7b69aa77e74/source/disc.c#L322}}. <code>init</code> takes a print function as an argument and returns nothing. Meanwhile, <code>main</code> takes 3 pointers, which get filled with arguments to pass to DVDLowRead, and keeps getting called until it returns something other than 1. <code>finalize</code> takes no arguments, but returns the entrypoint, which the System Menu then jumps to.
+
+
Disc apploaders appear to be linked with [[Revolution OS]], although it is possible that when loading the [[banner]], the System Menu's Revolution OS is used instead.
An open-source disc apploader is available from [https://hackmii.com/2008/08/open-source-apploader-iso-template/ HackMii].
An open-source disc apploader is available from [https://hackmii.com/2008/08/open-source-apploader-iso-template/ HackMii].