[Scummvm-cvs-logs] SF.net SVN: scummvm:[41775] scummvm/branches/gsoc2009-draci/engines/draci/ draci.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Mon Jun 22 21:31:18 CEST 2009


Revision: 41775
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41775&view=rev
Author:   dkasak13
Date:     2009-06-22 19:31:18 +0000 (Mon, 22 Jun 2009)

Log Message:
-----------
Replaced return values with Common::k*Error constants.

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp	2009-06-22 16:30:51 UTC (rev 41774)
+++ scummvm/branches/gsoc2009-draci/engines/draci/draci.cpp	2009-06-22 19:31:18 UTC (rev 41775)
@@ -82,7 +82,7 @@
 		f = ar[0];	
 	} else {
 		debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened");
-		return 0;
+		return Common::kUnknownError;
 	}	
 		
 	debugC(3, kDraciGeneralDebugLevel, "First 10 bytes of file %d: ", 0);
@@ -101,13 +101,13 @@
 		f = ar[3];	
 	} else {
 		debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened");
-		return 0;
+		return Common::kUnknownError;
 	}	
 
 	// Disassemble GPL script for the first location
 	gpldisasm(f->_data, f->_length);
 
-	return 0;
+	return Common::kNoError;
 }
 
 int DraciEngine::go() {
@@ -125,7 +125,7 @@
 		f = ar[0];	
 	} else {
 		debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened");
-		return 0;
+		return Common::kUnknownError;
 	}	
 
 	_screen->setPalette(f->_data, 0, kNumColours);
@@ -157,7 +157,7 @@
 	
 	if(!ar.isOpen()) {
 		debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened");
-		return 0;
+		return Common::kUnknownError;
 	}	
 
 	testString = "I'm transparent";
@@ -193,7 +193,7 @@
 		f = ar[0];	
 	} else {
 		debugC(2, kDraciGeneralDebugLevel, "ERROR - Archive not opened");
-		return 0;
+		return Common::kUnknownError;
 	}	
 
 	Sprite sp(f->_data, f->_length, 0, 0, true);
@@ -218,7 +218,7 @@
 		_system->delayMillis(20);
 	}
 
-	return 0;
+	return Common::kNoError;
 }
 
 DraciEngine::~DraciEngine() {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list