[Scummvm-cvs-logs] SF.net SVN: scummvm:[38199] scummvm/trunk/engines/sci/scummvm

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sun Feb 15 09:22:25 CET 2009


Revision: 38199
          http://scummvm.svn.sourceforge.net/scummvm/?rev=38199&view=rev
Author:   fingolfin
Date:     2009-02-15 08:22:24 +0000 (Sun, 15 Feb 2009)

Log Message:
-----------
Minor cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp

Removed Paths:
-------------
    scummvm/trunk/engines/sci/scummvm/scummvm.patch

Deleted: scummvm/trunk/engines/sci/scummvm/scummvm.patch
===================================================================
--- scummvm/trunk/engines/sci/scummvm/scummvm.patch	2009-02-15 08:20:53 UTC (rev 38198)
+++ scummvm/trunk/engines/sci/scummvm/scummvm.patch	2009-02-15 08:22:24 UTC (rev 38199)
@@ -1,55 +0,0 @@
-Index: configure
-===================================================================
---- configure	(revision 32642)
-+++ configure	(working copy)
-@@ -97,6 +97,7 @@
- add_engine parallaction "Parallaction" yes
- add_engine queen "Flight of the Amazon Queen" yes
- add_engine saga "SAGA" yes
-+add_engine sci "SCI" no
- add_engine sky "Beneath a Steel Sky" yes
- add_engine sword1 "Broken Sword 1" yes
- add_engine sword2 "Broken Sword 2" yes
-Index: engines/engines.mk
-===================================================================
---- engines/engines.mk	(revision 32642)
-+++ engines/engines.mk	(working copy)
-@@ -82,6 +82,11 @@
- MODULES += engines/saga
- endif
- 
-+ifdef ENABLE_SCI
-+DEFINES += -DENABLE_SCI=$(ENABLE_SCI)
-+MODULES += engines/sci
-+endif
-+
- ifdef ENABLE_SKY
- DEFINES += -DENABLE_SKY=$(ENABLE_SKY)
- MODULES += engines/sky
-Index: base/plugins.cpp
-===================================================================
---- base/plugins.cpp	(revision 32642)
-+++ base/plugins.cpp	(working copy)
-@@ -131,6 +131,9 @@
- 		#if PLUGIN_ENABLED_STATIC(SAGA)
- 		LINK_PLUGIN(SAGA)
- 		#endif
-+		#if PLUGIN_ENABLED_STATIC(SCI)
-+		LINK_PLUGIN(SCI)
-+		#endif
- 		#if PLUGIN_ENABLED_STATIC(SKY)
- 		LINK_PLUGIN(SKY)
- 		#endif
-Index: Makefile
-===================================================================
---- Makefile	(revision 32642)
-+++ Makefile	(working copy)
-@@ -9,7 +9,7 @@
- 
- DEFINES     := -DHAVE_CONFIG_H
- LDFLAGS     :=
--INCLUDES    := -I. -I$(srcdir) -I$(srcdir)/engines
-+INCLUDES    := -I. -I$(srcdir) #-I$(srcdir)/engines
- LIBS        :=
- OBJS        :=
- DEPDIR      := .deps

Modified: scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp
===================================================================
--- scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp	2009-02-15 08:20:53 UTC (rev 38198)
+++ scummvm/trunk/engines/sci/scummvm/scummvm_engine.cpp	2009-02-15 08:22:24 UTC (rev 38199)
@@ -215,7 +215,7 @@
 }
 
 int
-main_(const char* gamedir)
+main_()
 {
 	resource_mgr_t *resmgr;
 
@@ -225,11 +225,6 @@
 	getcwd(startdir, MAXPATHLEN);
 	script_debug_flag = 0;
 
-	if (chdir(gamedir)) {
-		printf ("Error changing to game directory '%s'\n", gamedir);
-		exit(1);
-	}
-
 	sci_version_t version;
 	int res_version;
 
@@ -408,8 +403,7 @@
 		_system->delayMillis(10);
 	} */
 
-	// FIXME: Not a good idea to use _gameDataDir.getPath() like this...
-	main_(_gameDataDir.getPath().c_str());
+	main_();
 
 	return Common::kNoError;
 }


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