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.
|
/// Console debug devices supported by libnds.
|
||||||
typedef enum {
|
typedef enum {
|
||||||
debugDevice_NULL, ///< Swallows prints to stderr
|
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_CONSOLE, ///< Directs stderr debug statements to 3DS console window
|
||||||
|
debugDevice_3DMOO = debugDevice_SVC,
|
||||||
} debugDevice;
|
} 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);
|
svcOutputDebugString(ptr,len);
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const devoptab_t dotab_3dmoo = {
|
static const devoptab_t dotab_svc = {
|
||||||
"3dmoo",
|
"svc",
|
||||||
0,
|
0,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
@ -553,8 +553,8 @@ void consoleDebugInit(debugDevice device){
|
|||||||
|
|
||||||
switch(device) {
|
switch(device) {
|
||||||
|
|
||||||
case debugDevice_3DMOO:
|
case debugDevice_SVC:
|
||||||
devoptab_list[STD_ERR] = &dotab_3dmoo;
|
devoptab_list[STD_ERR] = &dotab_svc;
|
||||||
buffertype = _IOLBF;
|
buffertype = _IOLBF;
|
||||||
break;
|
break;
|
||||||
case debugDevice_CONSOLE:
|
case debugDevice_CONSOLE:
|
||||||
|
Loading…
Reference in New Issue
Block a user