Difference between revisions of "OSReport"

From Rare Gaming Dump
m
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''OSReport''' is a function in the [[Dolphin SDK]] and [[Revolution SDK]] standard library (defined in the osD.a file), which is typically used to transmit messages about the program's state, such as the current register values when a fatal exception occurs, to the defined output port. The output port is, by default, set to the serial port, but it is recommended to be set to the television screen near the end of program development for convenience. Doing so would require a developer-written implementation of OSReport, however. The output may also be written to NAND, which would require the destination to first be set to NAND with OSReportDestination, and then OSReportFlush to clear the buffer and actually write to NAND.
+
'''OSReport''' is a function in the [[Dolphin SDK]] and [[Revolution SDK]] standard library (defined in the osD.a file), which is typically used to transmit messages about the program's state, such as the current register values when a fatal exception occurs, to the defined output port. The output port is, by default, set to the serial port, but it is recommended to be set to the television screen near the end of program development for convenience. Doing so would require a custom implementation of <code>OSReport</code>, however. The output may also be written to NAND for the purposes of enabling the log to be saved to the SD card, which would require the destination to first be set to NAND with <code>OSReportDestination</code>, and then <code>OSReportFlush</code> to clear the buffer and actually write to NAND.
  
 
[[Category:Wii]]
 
[[Category:Wii]]
 
{{Template:WiiNavbox}}
 
{{Template:WiiNavbox}}

Latest revision as of 23:12, 25 May 2023

OSReport is a function in the Dolphin SDK and Revolution SDK standard library (defined in the osD.a file), which is typically used to transmit messages about the program's state, such as the current register values when a fatal exception occurs, to the defined output port. The output port is, by default, set to the serial port, but it is recommended to be set to the television screen near the end of program development for convenience. Doing so would require a custom implementation of OSReport, however. The output may also be written to NAND for the purposes of enabling the log to be saved to the SD card, which would require the destination to first be set to NAND with OSReportDestination, and then OSReportFlush to clear the buffer and actually write to NAND.