[Scummvm-cvs-logs] CVS: scummvm/base engine.cpp,1.9,1.10 engine.h,1.8,1.9

Max Horn fingolfin at users.sourceforge.net
Sat Nov 29 04:11:04 CET 2003


Update of /cvsroot/scummvm/scummvm/base
In directory sc8-pr-cvs1:/tmp/cvs-serv7065

Modified Files:
	engine.cpp engine.h 
Log Message:
cleanup / added Engine::getGameDataPath()

Index: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/engine.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- engine.cpp	10 Nov 2003 01:04:10 -0000	1.9
+++ engine.cpp	29 Nov 2003 12:10:23 -0000	1.10
@@ -74,6 +74,10 @@
 #endif
 }
 
+const char *Engine::getGameDataPath() const {
+	return _gameDataPath.c_str();
+}
+
 void NORETURN CDECL error(const char *s, ...) {
 #ifdef __PALM_OS__
 	char buf_input[256]; // 1024 is too big overflow the stack

Index: engine.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/base/engine.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- engine.h	10 Nov 2003 01:04:10 -0000	1.8
+++ engine.h	29 Nov 2003 12:10:23 -0000	1.9
@@ -45,13 +45,16 @@
 	Engine(OSystem *syst);
 	virtual ~Engine();
 
-	// Invoke the main engine loop using this method
+	/** Start the main engine loop. */ 
 	virtual void go() = 0;
 
-	// Get the save game dir path
-	const char *getSavePath() const;
+	/** Get the path to the save game directory. */
+	virtual const char *getSavePath() const;
 
-	// Specific for each engine preparare of erroe string
+	/** Get the path to the game data directory. */
+	virtual const char *getGameDataPath() const;
+
+	/** Specific for each engine: prepare error string. */
 	virtual void errorString(const char *buf_input, char *buf_output) = 0;
 };
 





More information about the Scummvm-git-logs mailing list