aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sci.cpp
diff options
context:
space:
mode:
authorMax Horn2009-05-29 13:07:14 +0000
committerMax Horn2009-05-29 13:07:14 +0000
commit813853ccc246088b26b2cdb0260f06eeb5676131 (patch)
tree8a6d8d4a3432482e4cce9b85dc47b703b56e9048 /engines/sci/sci.cpp
parentb72c2a29fbef2a89199a4b116c8af45172841240 (diff)
downloadscummvm-rg350-813853ccc246088b26b2cdb0260f06eeb5676131.tar.gz
scummvm-rg350-813853ccc246088b26b2cdb0260f06eeb5676131.tar.bz2
scummvm-rg350-813853ccc246088b26b2cdb0260f06eeb5676131.zip
SCI: Converted several fprintf(stderr) calls to warning/error (the remaining fprintf calls should probably be replaced by suitable debug/debugC/debugN invocations)
svn-id: r40993
Diffstat (limited to 'engines/sci/sci.cpp')
-rw-r--r--engines/sci/sci.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/sci.cpp b/engines/sci/sci.cpp
index 1e6384e684..76febe5d5f 100644
--- a/engines/sci/sci.cpp
+++ b/engines/sci/sci.cpp
@@ -229,7 +229,7 @@ Common::Error SciEngine::run() {
if (game_init(gamestate)) { /* Initialize */
- fprintf(stderr, "Game initialization failed: Aborting...\n");
+ warning("Game initialization failed: Aborting...");
// TODO: Add an "init failed" error?
return Common::kUnknownError;
}
@@ -272,17 +272,17 @@ Common::Error SciEngine::run() {
bool isVGA = _resmgr->_sciVersion >= SCI_VERSION_01_VGA && !(getFlags() & GF_SCI1_EGA);
if (gfxop_init(_resmgr->_sciVersion, isVGA, &gfx_state, &gfx_options, _resmgr)) {
- fprintf(stderr, "Graphics initialization failed. Aborting...\n");
+ warning("Graphics initialization failed. Aborting...");
return Common::kUnknownError;
}
if (game_init_graphics(gamestate)) { // Init interpreter graphics
- fprintf(stderr, "Game initialization failed: Error in GFX subsystem. Aborting...\n");
+ warning("Game initialization failed: Error in GFX subsystem. Aborting...");
return Common::kUnknownError;
}
if (game_init_sound(gamestate, 0)) {
- fprintf(stderr, "Game initialization failed: Error in sound subsystem. Aborting...\n");
+ warning("Game initialization failed: Error in sound subsystem. Aborting...");
return Common::kUnknownError;
}