Rename debugDevice_3DMOO to debugDevice_SVC
This commit is contained in:
parent
8778d8c5d6
commit
94aabe35f3
@ -116,8 +116,9 @@ typedef struct PrintConsole
|
||||
/// Console debug devices supported by libnds.
|
||||
typedef enum {
|
||||
debugDevice_NULL, ///< Swallows prints to stderr
|
||||
debugDevice_3DMOO, ///< Directs stderr debug statements to 3dmoo
|
||||
debugDevice_SVC, ///< Outputs stderr debug statements using svcOutputDebugString, which can then be captured by interactive debuggers
|
||||
debugDevice_CONSOLE, ///< Directs stderr debug statements to 3DS console window
|
||||
debugDevice_3DMOO = debugDevice_SVC,
|
||||
} debugDevice;
|
||||
|
||||
/**
|
||||
|
@ -471,14 +471,14 @@ static const devoptab_t dotab_stdout = {
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------------
|
||||
ssize_t debug_write(struct _reent *r, void *fd, const char *ptr, size_t len) {
|
||||
static ssize_t debug_write(struct _reent *r, void *fd, const char *ptr, size_t len) {
|
||||
//---------------------------------------------------------------------------------
|
||||
svcOutputDebugString(ptr,len);
|
||||
return len;
|
||||
}
|
||||
|
||||
static const devoptab_t dotab_3dmoo = {
|
||||
"3dmoo",
|
||||
static const devoptab_t dotab_svc = {
|
||||
"svc",
|
||||
0,
|
||||
NULL,
|
||||
NULL,
|
||||
@ -553,8 +553,8 @@ void consoleDebugInit(debugDevice device){
|
||||
|
||||
switch(device) {
|
||||
|
||||
case debugDevice_3DMOO:
|
||||
devoptab_list[STD_ERR] = &dotab_3dmoo;
|
||||
case debugDevice_SVC:
|
||||
devoptab_list[STD_ERR] = &dotab_svc;
|
||||
buffertype = _IOLBF;
|
||||
break;
|
||||
case debugDevice_CONSOLE:
|
||||
|
Loading…
Reference in New Issue
Block a user