aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorKostas Nakos2007-02-26 18:09:41 +0000
committerKostas Nakos2007-02-26 18:09:41 +0000
commit017c1b24f7e5f8caa870adc8e6c1989a668862f0 (patch)
tree5da349b4fd3f507ba6754dd490844b30803dc348 /backends/platform
parent9f9b7d96a7770c127c88fc50770797c188bfcf0c (diff)
downloadscummvm-rg350-017c1b24f7e5f8caa870adc8e6c1989a668862f0.tar.gz
scummvm-rg350-017c1b24f7e5f8caa870adc8e6c1989a668862f0.tar.bz2
scummvm-rg350-017c1b24f7e5f8caa870adc8e6c1989a668862f0.zip
support agi engine
svn-id: r25880
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/wince/CEActionsPocket.cpp4
-rw-r--r--backends/platform/wince/CEActionsSmartphone.cpp4
-rw-r--r--backends/platform/wince/wince-sdl.cpp2
3 files changed, 9 insertions, 1 deletions
diff --git a/backends/platform/wince/CEActionsPocket.cpp b/backends/platform/wince/CEActionsPocket.cpp
index 5508998ff8..a264a52c58 100644
--- a/backends/platform/wince/CEActionsPocket.cpp
+++ b/backends/platform/wince/CEActionsPocket.cpp
@@ -129,6 +129,7 @@ void CEActionsPocket::initInstanceGame() {
bool is_fw = (gameid == "fw");
bool is_os = (gameid == "os");
bool is_touche = (gameid == "touche");
+ bool is_agi = (gameid == "agi");
GUI_Actions::initInstanceGame();
@@ -156,6 +157,9 @@ void CEActionsPocket::initInstanceGame() {
} else if (is_fw || is_os) {
_action_enabled[POCKET_ACTION_SAVE] = true;
_key_action[POCKET_ACTION_SAVE].setAscii(291); // F10
+ } else if (is_agi) {
+ _action_enabled[POCKET_ACTION_SAVE] = true;
+ _key_action[POCKET_ACTION_SAVE].setAscii(SDLK_ESCAPE);
} else {
_action_enabled[POCKET_ACTION_SAVE] = true;
_key_action[POCKET_ACTION_SAVE].setAscii(319); // F5 key
diff --git a/backends/platform/wince/CEActionsSmartphone.cpp b/backends/platform/wince/CEActionsSmartphone.cpp
index b1ef76cba4..0e761a55c5 100644
--- a/backends/platform/wince/CEActionsSmartphone.cpp
+++ b/backends/platform/wince/CEActionsSmartphone.cpp
@@ -132,6 +132,7 @@ void CEActionsSmartphone::initInstanceGame() {
bool is_fw = (gameid == "fw");
bool is_os = (gameid == "os");
bool is_touche = (gameid == "touche");
+ bool is_agi = (gameid == "agi");
GUI_Actions::initInstanceGame();
@@ -152,6 +153,9 @@ void CEActionsSmartphone::initInstanceGame() {
} else if (is_fw || is_os) {
_action_enabled[SMARTPHONE_ACTION_SAVE] = true;
_key_action[SMARTPHONE_ACTION_SAVE].setAscii(291); //F10
+ } else if (is_agi) {
+ _action_enabled[SMARTPHONE_ACTION_SAVE] = true;
+ _key_action[SMARTPHONE_ACTION_SAVE].setAscii(SDLK_ESCAPE);
} else {
_action_enabled[SMARTPHONE_ACTION_SAVE] = true;
_key_action[SMARTPHONE_ACTION_SAVE].setAscii(319); // F5 key
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp
index ca78329b5e..e77f7fa0fb 100644
--- a/backends/platform/wince/wince-sdl.cpp
+++ b/backends/platform/wince/wince-sdl.cpp
@@ -680,7 +680,7 @@ void OSystem_WINCE3::get_sample_rate() {
}
}
// See if the output frequency is forced by the game
- if (gameid == "ft" || gameid == "dig" || gameid == "comi" || gameid == "queen" || gameid == "sword")
+ if (gameid == "ft" || gameid == "dig" || gameid == "comi" || gameid == "queen" || gameid == "sword" || gameid == "agi")
_sampleRate = SAMPLES_PER_SEC_NEW;
else {
if (ConfMan.hasKey("high_sample_rate") && ConfMan.getBool("high_sample_rate"))