[Scummvm-cvs-logs] CVS: scummvm/backends/dc dcmain.cpp,1.30,1.31

Max Horn fingolfin at users.sourceforge.net
Fri Apr 22 14:30:30 CEST 2005


Update of /cvsroot/scummvm/scummvm/backends/dc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15917

Modified Files:
	dcmain.cpp 
Log Message:
add a comment regarding an odd hack

Index: dcmain.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/dc/dcmain.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- dcmain.cpp	19 Apr 2005 20:35:48 -0000	1.30
+++ dcmain.cpp	22 Apr 2005 21:30:07 -0000	1.31
@@ -223,8 +223,17 @@
   if(!selectGame(argv[2], argv[1], icon))
     exit(0);
 
+  FIXME: This is an evil hack:
   _detector.parseCommandLine(argc, argv);
 
+  But doing it properly isn't that hard, actually:
+  
+  // Set the game path.
+  ConfMan.set("path", the_desired_path, kTransientDomain);
+  
+  // Set the target.
+  _detector.setTarget(target_name);
+
   return 0;
 }
 





More information about the Scummvm-git-logs mailing list