[Scummvm-cvs-logs] SF.net SVN: scummvm: [26082] scummvm/trunk/backends/platform/symbian

anotherguest at users.sourceforge.net anotherguest at users.sourceforge.net
Sun Mar 11 12:23:50 CET 2007


Revision: 26082
          http://scummvm.svn.sourceforge.net/scummvm/?rev=26082&view=rev
Author:   anotherguest
Date:     2007-03-11 04:23:40 -0700 (Sun, 11 Mar 2007)

Log Message:
-----------
Updated actions for symbian OS, memory limits for S60.

Modified Paths:
--------------
    scummvm/trunk/backends/platform/symbian/S60/ScummVM_S60.mmp.in
    scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp
    scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp

Modified: scummvm/trunk/backends/platform/symbian/S60/ScummVM_S60.mmp.in
===================================================================
--- scummvm/trunk/backends/platform/symbian/S60/ScummVM_S60.mmp.in	2007-03-11 11:11:05 UTC (rev 26081)
+++ scummvm/trunk/backends/platform/symbian/S60/ScummVM_S60.mmp.in	2007-03-11 11:23:40 UTC (rev 26082)
@@ -39,7 +39,7 @@
 
 #if !defined(WINS)
 EPOCSTACKSIZE	0x00008000
-EPOCHEAPSIZE	2048000	161920000
+EPOCHEAPSIZE	2048000	32000000
 #endif
 
 MACRO			S60

Modified: scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp	2007-03-11 11:11:05 UTC (rev 26081)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianActions.cpp	2007-03-11 11:23:40 UTC (rev 26082)
@@ -124,28 +124,40 @@
 	Common::String gameid(ConfMan.get("gameid"));
 	bool is_simon = (strncmp(gameid.c_str(), "simon", 5) == 0);
 	bool is_sky = (strncmp(gameid.c_str(), "sky", 3) == 0);
+	bool is_saga = (gameid == "saga");
+	bool is_comi = (strncmp(gameid.c_str(), "comi", 4) == 0);
 	bool is_queen = (strncmp(gameid.c_str(), "queen", 5) == 0);
 	bool is_gob = (strncmp(gameid.c_str(), "gob", 3) == 0);
 	bool is_ite = ((strncmp(gameid.c_str(), "ite", 3) == 0) ||
 				  (strncmp(gameid.c_str(), "ihnm", 4) == 0));
 	bool is_kyra = (gameid == "kyra1");
+	bool is_samnmax = (gameid == "samnmax");
+	bool is_cine = (gameid == "cine");
+	bool is_touche = (gameid == "touche");
+	bool is_agi = (gameid == "agi");
 	
 	Actions::initInstanceGame();
 
 	// See if a right click mapping could be needed
-	if (is_sky || gameid == "samnmax" || is_gob)
+	if (is_sky || is_queen || is_comi || is_gob || is_samnmax || is_cine || is_touche)
 		_right_click_needed = true;
 
 	// Initialize keys for different actions
 	// Save
-	if (is_simon || is_gob || is_kyra) 
+	if (is_simon || is_gob || is_kyra || is_touche) 
 		_action_enabled[ACTION_SAVE] = false;
-	else if (is_queen || is_ite) {
+	else if (is_queen || is_saga || is_ite) {
 		_action_enabled[ACTION_SAVE] = true;
 		_key_action[ACTION_SAVE].setAscii(SDLK_F1); // F1 key for FOTAQ and ITE
 	} else if (is_sky) {
 		_action_enabled[ACTION_SAVE] = true;
 		_key_action[ACTION_SAVE].setAscii(63); 
+	} else if (is_cine) {
+		_action_enabled[ACTION_SAVE] = true;
+		_key_action[ACTION_SAVE].setAscii(291); // F10
+	} else if (is_agi) {
+		_action_enabled[ACTION_SAVE] = true;
+		_key_action[ACTION_SAVE].setAscii(SDLK_ESCAPE);
 	} else {
 		_action_enabled[ACTION_SAVE] = true;
 		_key_action[ACTION_SAVE].setAscii(SDLK_F5); // F5 key

Modified: scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp
===================================================================
--- scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp	2007-03-11 11:11:05 UTC (rev 26081)
+++ scummvm/trunk/backends/platform/symbian/src/SymbianOS.cpp	2007-03-11 11:23:40 UTC (rev 26082)
@@ -43,8 +43,10 @@
 	TPtrC8 msgPtr((const TUint8 *)msg); 
 	TBuf<512> msg16Bit;
 	msg16Bit.Copy(msgPtr);
+#ifdef S60
+#else
 	CEikonEnv::Static()->InfoWinL(_L("ScummVM Fatal Error"), msg16Bit);
-	
+#endif
 	if (g_system)
 		g_system->quit();
 }


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