diff options
Diffstat (limited to 'backends/platform/symbian/src')
-rw-r--r-- | backends/platform/symbian/src/SymbianActions.cpp | 3 | ||||
-rw-r--r-- | backends/platform/symbian/src/portdefs.h | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/backends/platform/symbian/src/SymbianActions.cpp b/backends/platform/symbian/src/SymbianActions.cpp index bed23d5321..b8caaa2a01 100644 --- a/backends/platform/symbian/src/SymbianActions.cpp +++ b/backends/platform/symbian/src/SymbianActions.cpp @@ -128,6 +128,7 @@ void SymbianActions::initInstanceGame() { 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"); Actions::initInstanceGame(); @@ -137,7 +138,7 @@ void SymbianActions::initInstanceGame() { // Initialize keys for different actions // Save - if (is_simon || is_gob) + if (is_simon || is_gob || is_kyra) _action_enabled[ACTION_SAVE] = false; else if (is_queen || is_ite) { _action_enabled[ACTION_SAVE] = true; diff --git a/backends/platform/symbian/src/portdefs.h b/backends/platform/symbian/src/portdefs.h index 303fde726d..4afdf33fb9 100644 --- a/backends/platform/symbian/src/portdefs.h +++ b/backends/platform/symbian/src/portdefs.h @@ -21,7 +21,8 @@ * $URL$ * $Id$ */ - +#ifndef SYMBIAN_PORTDEFS_H +#define SYMBIAN_PORTDEFS_H #include <assert.h> #include <stdarg.h> #include <string.h> @@ -122,6 +123,9 @@ #define snprintf scumm_snprintf #define vsnprintf scumm_vsnprintf + void* symbian_malloc (size_t _size); + + #define malloc symbian_malloc #else // GCCE and the rest #define snprintf(buf,len,args...) sprintf(buf,args) #define vsnprintf(buf,len,format,valist) vsprintf(buf,format,valist) @@ -146,3 +150,4 @@ namespace Symbian { extern void FatalError(const char *msg); extern char* GetExecutablePath(); } +#endif |