From e35ba53b7e358e1ba4f29a9d0af75dee78f7acc9 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Thu, 7 Jun 2007 20:52:49 +0000 Subject: Symbian PORT updated with CE mappings svn-id: r27178 --- backends/platform/symbian/src/SymbianOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/symbian/src/SymbianOS.cpp') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 737795182e..80f9491d2a 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -348,7 +348,7 @@ bool OSystem_SDL_Symbian::remapKey(SDL_Event &ev, Common::Event &event) { case GUI::ACTION_SAVE: case GUI::ACTION_SKIP: - case GUI::ACTION_FT_CHEAT: + case GUI::ACTION_MULTI: case GUI::ACTION_SKIP_TEXT: case GUI::ACTION_PAUSE: case GUI::ACTION_SWAPCHAR: -- cgit v1.2.3 From a3e8f765a6be500357b99d693b21266dbc428137 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Fri, 8 Jun 2007 18:09:24 +0000 Subject: Updated Symbian OS Prediction handling Updated AGI to only enable predictive input after dictionary was found. svn-id: r27206 --- backends/platform/symbian/src/SymbianOS.cpp | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'backends/platform/symbian/src/SymbianOS.cpp') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 80f9491d2a..d5c869ac91 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -88,8 +88,10 @@ void OSystem_SDL_Symbian::setFeatureState(Feature f, bool enable) { else { } - - return; + break; + case kFeatureDisableKeyFiltering: + GUI::Actions::Instance()->beginMapping(enable); + break;; default: OSystem_SDL::setFeatureState(f, enable); } @@ -345,16 +347,21 @@ bool OSystem_SDL_Symbian::remapKey(SDL_Event &ev, Common::Event &event) { } return true; - + case GUI::ACTION_MULTI: { + GUI::Key &key = GUI::Actions::Instance()->getKeyAction(loop); + // if key code is pause, then change event to interactive or just fall through + if(key.keycode() == SDLK_PAUSE) { + event.type = Common::EVENT_PREDICTIVE_DIALOG; + return true; + } + } case GUI::ACTION_SAVE: case GUI::ACTION_SKIP: - case GUI::ACTION_MULTI: case GUI::ACTION_SKIP_TEXT: case GUI::ACTION_PAUSE: case GUI::ACTION_SWAPCHAR: case GUI::ACTION_FASTMODE: - case GUI::ACTION_DEBUGGER: - { + case GUI::ACTION_DEBUGGER: { GUI::Key &key = GUI::Actions::Instance()->getKeyAction(loop); ev.key.keysym.sym = (SDLKey) key.ascii(); ev.key.keysym.scancode= key.keycode(); -- cgit v1.2.3 From d0d4c4da34e142ea05e3b8984392630f3cf03a69 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Fri, 8 Jun 2007 20:09:36 +0000 Subject: Added read file sharing by default. Required for Gob2. svn-id: r27213 --- backends/platform/symbian/src/SymbianOS.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backends/platform/symbian/src/SymbianOS.cpp') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index d5c869ac91..4901480bf9 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -453,7 +453,9 @@ FILE* symbian_fopen(const char* name, const char* mode) { if ((modeLen > 1 && mode[1] == '+') || (modeLen > 2 && mode[2] == '+')) { fileMode = fileMode| EFileWrite; } - + + fileMode = fileMode| EFileShareReadersOnly; + switch(mode[0]) { case 'a': if (fileEntry->iFileHandle.Open(CEikonEnv::Static()->FsSession(), tempFileName, fileMode) != KErrNone) { -- cgit v1.2.3 From 6c9e50c8a81315afe76246800962cdf4f15d5fb5 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Fri, 8 Jun 2007 21:29:18 +0000 Subject: Updated filesharing mode to full sharing. Now scummvm.ini works again. svn-id: r27218 --- backends/platform/symbian/src/SymbianOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backends/platform/symbian/src/SymbianOS.cpp') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 4901480bf9..0bb67c97b9 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -454,7 +454,7 @@ FILE* symbian_fopen(const char* name, const char* mode) { fileMode = fileMode| EFileWrite; } - fileMode = fileMode| EFileShareReadersOnly; + fileMode = fileMode| EFileShareAny; switch(mode[0]) { case 'a': -- cgit v1.2.3 From a896ec3aad99f0f4ee930b808dc569de5d53c7f2 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Sun, 10 Jun 2007 19:43:48 +0000 Subject: Updated makefile scripts with correct documents. svn-id: r27329 --- backends/platform/symbian/src/SymbianOS.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'backends/platform/symbian/src/SymbianOS.cpp') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 0bb67c97b9..8da3207dff 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -106,6 +106,10 @@ OSystem_SDL_Symbian::OSystem_SDL_Symbian() :_channels(0),_stereo_mix_buffer(0) { } void OSystem_SDL_Symbian::initBackend() { + char predfile[256]; + strcpy(predfile, Symbian::GetExecutablePath()); + strcat(predfile, "pred.dic"); + ConfMan.set("predictive_dictionary", predfile); ConfMan.setBool("FM_high_quality", false); #if !defined(S60) || defined(S60V3) // S60 has low quality as default ConfMan.setBool("FM_medium_quality", true); @@ -145,7 +149,7 @@ bool OSystem_SDL_Symbian::setGraphicsMode(const char * /*name*/) { return OSystem_SDL::setGraphicsMode(getDefaultGraphicsMode()); } -void OSystem_SDL_Symbian::quitWithErrorMsg(const char *msg) { +void OSystem_SDL_Symbian::quitWithErrorMsg(const char * /*aMsg*/) { CEikonEnv::Static()->AlertWin(_L("quitWithErrorMsg()")) ; @@ -433,7 +437,7 @@ struct TSymbianFileEntry { FILE* symbian_fopen(const char* name, const char* mode) { TSymbianFileEntry* fileEntry = new TSymbianFileEntry; - + if (fileEntry != NULL) { TInt modeLen = strlen(mode); @@ -480,7 +484,6 @@ FILE* symbian_fopen(const char* name, const char* mode) { break; } } - return (FILE*) fileEntry; } -- cgit v1.2.3 From 86f433b3c41500a456dcbf523a0cb51b848966a9 Mon Sep 17 00:00:00 2001 From: Lars Persson Date: Mon, 11 Jun 2007 19:30:24 +0000 Subject: Include Kyra.dat and sky.cpt in the sis file. queen.tbl not included due to the size. svn-id: r27364 --- backends/platform/symbian/src/SymbianOS.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'backends/platform/symbian/src/SymbianOS.cpp') diff --git a/backends/platform/symbian/src/SymbianOS.cpp b/backends/platform/symbian/src/SymbianOS.cpp index 8da3207dff..c992c97316 100644 --- a/backends/platform/symbian/src/SymbianOS.cpp +++ b/backends/platform/symbian/src/SymbianOS.cpp @@ -106,10 +106,7 @@ OSystem_SDL_Symbian::OSystem_SDL_Symbian() :_channels(0),_stereo_mix_buffer(0) { } void OSystem_SDL_Symbian::initBackend() { - char predfile[256]; - strcpy(predfile, Symbian::GetExecutablePath()); - strcat(predfile, "pred.dic"); - ConfMan.set("predictive_dictionary", predfile); + ConfMan.set("extrapath", Symbian::GetExecutablePath()); ConfMan.setBool("FM_high_quality", false); #if !defined(S60) || defined(S60V3) // S60 has low quality as default ConfMan.setBool("FM_medium_quality", true); -- cgit v1.2.3