Line 1:
Line 1:
+
==General Programming Tips==
+
*Keep your code commented throughout; it helps others help you.
+
*Any unused code should be deleted out of the program, unless it is a program for teaching people.
+
*If someone does the same thing in a more efficient way (i.e. faster and/or in less code), accept it and learn from it.
+
*It is a good idea to release your app open source so others can learn from your code.
+
*To keep things tidy, make your application store files in the data folder on the root of the SD card (fat0:\data\XXXXX, where XXXXX is the name of your app).
+
==Code Snippets==
==Code Snippets==
===Video Auto-Detect Routine===
===Video Auto-Detect Routine===
Line 41:
Line 48:
Or use SYS_RETURNTOMENU for a "soft" return to the system menu, SYS_POWEROFF to shut down the wii (automatically to the appropriate Idle or Standby mode, depending on the WC24 setting), or SYS_POWEROFF_STANDBY or _IDLE to specify the mode and override the system setting.
Or use SYS_RETURNTOMENU for a "soft" return to the system menu, SYS_POWEROFF to shut down the wii (automatically to the appropriate Idle or Standby mode, depending on the WC24 setting), or SYS_POWEROFF_STANDBY or _IDLE to specify the mode and override the system setting.
−
==General Programming Tips==
−
*Keep your code commented throughout; it helps others help you.
−
*Any unused code should be deleted out of the program, unless it is a program for teaching people.
−
*If someone does the same thing in a more efficient way (i.e. faster and/or in less code), accept it and learn from it.
−
*To keep things tidy, instead of a folder on the root of the sd card, put it in a folder called data, so fat0:\data\XXXXX
−
−
{{Languages}}
[[Category:Development]]
[[Category:Development]]