diff options
author | Andre Heider | 2010-09-04 22:19:20 +0000 |
---|---|---|
committer | Andre Heider | 2010-09-04 22:19:20 +0000 |
commit | 7248efb178cdb33c107cc0ff183eb74c79236a59 (patch) | |
tree | 1c243f93c67734981911ef9fac61f85d772033f0 /backends | |
parent | aa5cd3e6825f50e574804455e6b5a3fbe2070062 (diff) | |
download | scummvm-rg350-7248efb178cdb33c107cc0ff183eb74c79236a59.tar.gz scummvm-rg350-7248efb178cdb33c107cc0ff183eb74c79236a59.tar.bz2 scummvm-rg350-7248efb178cdb33c107cc0ff183eb74c79236a59.zip |
DS: Enable stdout/err via nocash when DISABLE_COMMAND_LINE in not set.
svn-id: r52533
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/ds/ds-fs.cpp | 3 | ||||
-rw-r--r-- | backends/platform/ds/arm9/makefile | 2 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/dsmain.cpp | 4 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/portdefs.h | 4 |
4 files changed, 8 insertions, 5 deletions
diff --git a/backends/fs/ds/ds-fs.cpp b/backends/fs/ds/ds-fs.cpp index 675084ff56..cbc1c054fe 100644 --- a/backends/fs/ds/ds-fs.cpp +++ b/backends/fs/ds/ds-fs.cpp @@ -631,7 +631,10 @@ size_t std_fwrite(const void *ptr, size_t size, size_t numItems, FILE *handle) { return 0; if ((handle == stderr) || (handle == stdout)) { +#ifndef DISABLE_TEXT_CONSOLE + nocashMessage((char *) ptr); // consolePrintf((char *) ptr); +#endif return size; } diff --git a/backends/platform/ds/arm9/makefile b/backends/platform/ds/arm9/makefile index eedf75c256..42cc6b13c9 100644 --- a/backends/platform/ds/arm9/makefile +++ b/backends/platform/ds/arm9/makefile @@ -236,7 +236,7 @@ CXXFLAGS= $(CFLAGS) -Wno-non-virtual-dtor -Wno-unknown-pragmas -Wno-reorder \ ASFLAGS = -mcpu=arm9tdmi -mthumb-interwork -DEFINES += -D__DS__ -DNDS -DARM9 -DNONSTANDARD_PORT -DDISABLE_FANCY_THEMES -DVECTOR_RENDERER_FORMAT=1555 -DDISABLE_DOSBOX_OPL -DDISABLE_DEFAULT_SAVEFILEMANAGER -DARM +DEFINES += -D__DS__ -DNDS -DARM9 -DNONSTANDARD_PORT -DDISABLE_TEXT_CONSOLE -DDISABLE_FANCY_THEMES -DVECTOR_RENDERER_FORMAT=1555 -DDISABLE_DOSBOX_OPL -DDISABLE_DEFAULT_SAVEFILEMANAGER -DARM ifdef USE_MAD DEFINES += -DUSE_MAD endif diff --git a/backends/platform/ds/arm9/source/dsmain.cpp b/backends/platform/ds/arm9/source/dsmain.cpp index 95bfdfe40a..1525647c2e 100644 --- a/backends/platform/ds/arm9/source/dsmain.cpp +++ b/backends/platform/ds/arm9/source/dsmain.cpp @@ -3227,6 +3227,10 @@ int main(void) { int main() { +#ifndef DISABLE_TEXT_CONSOLE + consoleDebugInit(DebugDevice_NOCASH); + nocashMessage("startup\n"); +#endif DS::main(); } diff --git a/backends/platform/ds/arm9/source/portdefs.h b/backends/platform/ds/arm9/source/portdefs.h index cc38d66a73..ad36503e83 100644 --- a/backends/platform/ds/arm9/source/portdefs.h +++ b/backends/platform/ds/arm9/source/portdefs.h @@ -40,10 +40,6 @@ #define double float -#ifndef DISABLE_TEXT_CONSOLE -#define DISABLE_TEXT_CONSOLE -#endif - #ifndef DISABLE_COMMAND_LINE #define DISABLE_COMMAND_LINE #endif |