[Scummvm-cvs-logs] SF.net SVN: scummvm:[53163] scummvm/trunk/tools/skycpt

tdhs at users.sourceforge.net tdhs at users.sourceforge.net
Tue Oct 12 16:39:28 CEST 2010


Revision: 53163
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53163&view=rev
Author:   tdhs
Date:     2010-10-12 14:39:27 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
TOOLS: Modified engine patch for use with skycpt and updated skycpt README

The Demo _does_ contain the Save/Load Panel resources, but not the required font #2.
Have updated the patch to allow use of font #0, so the process for the CD demo is now the
same as for the other versions of BASS.

Modified Paths:
--------------
    scummvm/trunk/tools/skycpt/README
    scummvm/trunk/tools/skycpt/skycpt-engine.patch

Modified: scummvm/trunk/tools/skycpt/README
===================================================================
--- scummvm/trunk/tools/skycpt/README	2010-10-12 07:50:33 UTC (rev 53162)
+++ scummvm/trunk/tools/skycpt/README	2010-10-12 14:39:27 UTC (rev 53163)
@@ -39,8 +39,6 @@
 6) Start each of the BASS versions with this patched version, enjoy the intro
    over and over again.
 	Afterwards, it'll automatically show the load/save dialog where you save the game.
-	Except for Demo (v0.00356) which lacks the dialog, so this will autosave to slot 1
-	at the end of the intro.
 7) Rename the Savegame files you created (SKY-VM.000 etc., not the ASD or SAV
    file) to "RESET.*", depending on the version.
 	e.g. RESET.288 for v.0.00288

Modified: scummvm/trunk/tools/skycpt/skycpt-engine.patch
===================================================================
--- scummvm/trunk/tools/skycpt/skycpt-engine.patch	2010-10-12 07:50:33 UTC (rev 53162)
+++ scummvm/trunk/tools/skycpt/skycpt-engine.patch	2010-10-12 14:39:27 UTC (rev 53163)
@@ -1,6 +1,6 @@
 Index: engines/sky/compact.cpp
 ===================================================================
---- engines/sky/compact.cpp	(revision 52957)
+--- engines/sky/compact.cpp	(revision 53162)
 +++ engines/sky/compact.cpp	(working copy)
 @@ -138,11 +138,15 @@
  	if (fileVersion != 0)
@@ -20,9 +20,30 @@
  	_numDataLists = _cptFile->readUint16LE();
 Index: engines/sky/control.cpp
 ===================================================================
---- engines/sky/control.cpp	(revision 52957)
+--- engines/sky/control.cpp	(revision 53162)
 +++ engines/sky/control.cpp	(working copy)
-@@ -432,7 +432,8 @@
+@@ -416,8 +416,8 @@
+ }
+ 
+ void Control::doLoadSavePanel() {
+-	if (SkyEngine::isDemo())
+-		return; // I don't think this can even happen
++	//if (SkyEngine::isDemo())
++	//	return; // I don't think this can even happen
+ 	initPanel();
+ 	_skyScreen->clearScreen();
+ 	if (SkyEngine::_systemVars.gameVersion < 331)
+@@ -427,12 +427,17 @@
+ 
+ 	_savedMouse = _skyMouse->giveCurrentMouseType();
+ 	_savedCharSet = _skyText->giveCurrentCharSet();
+-	_skyText->fnSetFont(2);
++	// Demo lacks any fonts apart from 0
++	if (SkyEngine::isDemo())
++		_skyText->fnSetFont(0);
++	else
++		_skyText->fnSetFont(2);
+ 	_skyMouse->spriteMouse(MOUSE_NORMAL, 0, 0);
  	_lastButton = -1;
  	_curButtonText = 0;
  
@@ -34,21 +55,13 @@
  	_system->copyRectToScreen(_screenBuf, GAME_SCREEN_WIDTH, 0, 0, GAME_SCREEN_WIDTH, FULL_SCREEN_HEIGHT);
 Index: engines/sky/logic.cpp
 ===================================================================
---- engines/sky/logic.cpp	(revision 52957)
+--- engines/sky/logic.cpp	(revision 53162)
 +++ engines/sky/logic.cpp	(working copy)
-@@ -2376,6 +2376,15 @@
+@@ -2376,6 +2376,7 @@
  
  bool Logic::fnSkipIntroCode(uint32 a, uint32 b, uint32 c) {
  	SkyEngine::_systemVars.pastIntro = true;
-+	
-+	// Demo (v0.0365) lacks Save/Load Panel resources, so
-+	// automatically save to Slot 1, rather than displaying dialog
-+	if (SkyEngine::isDemo()) {
-+		_skyControl->_selectedGame = 1;
-+		_skyControl->saveGameToFile();
-+	} else {
-+		_skyControl->doLoadSavePanel();
-+	}
++	_skyControl->doLoadSavePanel();
  	return true;
  }
  


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