In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

CHANS reference

From WiiBrew
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page describes the CHANS functions, objects, and types/enums that can be used by CHANS scripts. For information on using CHANS, for filenames and locations etc, see WiiConnect24.

General

This section is for info on functions etc that is used in both KD and sysmenu VMs.

KD

This section is for info on functions etc that can only be used by KD scripts for processing mail. To access imported objects functions etc, use: objname.property, where objname is the imported object name, and property is the function name etc.

Imported objects:

  • NWC24


NWC24

Type Name Number of parameters for function Return value for function Possible values for enums Description
Function getStorage 0 0 for failure, FILE fd otherwise Opens storage.bin in title's wc24scr.vff under data directory.
Function getReceivedMsg 0 Mail object on success Gets a mail object for the received mail being processed.
Function getReplyMsg 0 Mail object on success Gets a mail object for replying to the mail being processed.
Function isFailed 0 1 for failure, zero for success Checks for the success for the previous NWC24 object function call.
Enum MSGTYPE MSGTYPE_PUBLIC, MSGTYPE_WII_MENU Message types, unknown what mail header makes mail "public" and "normal".

System menu banners

This section is for info on functions etc that can only be used by system menu banner scripts. Fill me in!