DWC_NdProcess

Syntax

#include <dwc.h>

DWCNdState DWC_NdProcess(void);

Arguments

None.

Return Values

DWC_ND_STATE_NOTINITIALIZED Download library has not been initialized.
DWC_ND_STATE_READY Initialization is complete and other Download library functions can be called.
DWC_ND_STATE_BUSY An asynchronous process is currently running.
DWC_ND_STATE_COMPLETE Asynchronous processing has completed.
DWC_ND_STATE_ERROR Error has occurred during processing and process has ended.

Description

Advances the download library process.

This function advances the download process. An application must first call the DWC_NasLogin function and initialize the download library. After calling the DWC_NdInitAsync function, call DWC_NdProcess about once per game frame while network connection exists.

DWC_ND_STATE_COMPLETE is returned when an asynchronous function terminates normally.DWC_ND_STATE_ERROR is returned if the function terminates on an error. If a callback has been set by the DWC_NdInitAsync function, the callback is called at this time. Perform error handling using what is more convenient: the error parameter of the DWCNdCallback callback, or the value returned by DWC_NdProcess. If the return value is DWC_ND_STATE_COMPLETE, the error parameter of DWCNdCallback becomes DWC_ND_ERROR_NONE.
If the return value is DWC_ND_STATE_ERROR, the error parameter of DWCNdCallback becomes some value other than DWC_ND_ERROR_NONE. In this case, get error information using the DWC_GetLastErrorEx function, display the error code and error message that corresponds to the error process type, and quit the library.

See Also

DWC_NdInitAsync
DWC_NdCleanupAsync
DWC_NdGetFileListNumAsync
DWC_NdGetFileListAsync
DWC_NdGetFileAsync
DWC_NdCancelAsync
DWC_GetLastErrorEx

Revision History

1.4.15
Added description of the callback.
1.4.7
Added a description of usage.

CONFIDENTIAL