aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorChris Apers2004-05-25 14:26:22 +0000
committerChris Apers2004-05-25 14:26:22 +0000
commit9cfe68364e41a22ef4009de7acc3bcc8e40c24d2 (patch)
tree9d6f769a5ee12955811b201d0f6f5b9e2bedd77f /backends
parent30c851b3701ebcf3f490f8c0ec5b06e82defb462 (diff)
downloadscummvm-rg350-9cfe68364e41a22ef4009de7acc3bcc8e40c24d2.tar.gz
scummvm-rg350-9cfe68364e41a22ef4009de7acc3bcc8e40c24d2.tar.bz2
scummvm-rg350-9cfe68364e41a22ef4009de7acc3bcc8e40c24d2.zip
Removed obsolete options, added speech command and sound detection
svn-id: r13884
Diffstat (limited to 'backends')
-rw-r--r--backends/PalmOS/Src/app.cpp31
1 files changed, 18 insertions, 13 deletions
diff --git a/backends/PalmOS/Src/app.cpp b/backends/PalmOS/Src/app.cpp
index 8badbb6da2..8490def1bb 100644
--- a/backends/PalmOS/Src/app.cpp
+++ b/backends/PalmOS/Src/app.cpp
@@ -1,6 +1,7 @@
#include <PalmOS.h>
#include <SonyClie.h>
#include <PalmNavigator.h>
+#include "Pa1Lib.h"
#include "StarterRsc.h"
#include "start.h"
@@ -69,6 +70,7 @@ static Err AppStartCheckHRmode()
error = HRWinScreenMode (gVars->HRrefNum, winScreenModeSet, &width, &height, &depth, &color);
} else {
error = WinScreenMode (winScreenModeSet, &width, &height, &depth, &color);
+
// check if we are now in hi-density
if (!error) {
UInt32 attr;
@@ -277,12 +279,12 @@ static Err AppStartCheckScreenSize() {
}
}
}
- }
- if (error)
- gVars->slkRefNum = sysInvalidRefNum;
- else
- OPTIONS_SET(kOptModeWide);
+ if (error)
+ gVars->slkRefNum = sysInvalidRefNum;
+ else
+ OPTIONS_SET(kOptModeWide);
+ }
}
// Tapwave Zodiac and other DIA API compatible devies
// get max screen size
@@ -365,23 +367,28 @@ Err AppStart(void) {
OPTIONS_SET(kOptDeviceOS5);
// ARM ?
-#ifndef DISABLE_ARM
if (!FtrGet(sysFileCSystem, sysFtrNumProcessorID, &ulProcessorType))
if (sysFtrNumProcessorIsARM(ulProcessorType))
OPTIONS_SET(kOptDeviceARM);
else if (ulProcessorType == sysFtrNumProcessorx86)
OPTIONS_SET(kOptDeviceProcX86);
-#endif
+
// 5Way Navigator
if (!FtrGet(navFtrCreator, navFtrVersion, &version))
if (version >= 1)
OPTIONS_SET(kOpt5WayNavigator);
- // Sound API ?
-/* if (!FtrGet(sysFileCSoundMgr, sndFtrIDVersion, &version))
+ // Palm Sound API ?
+ if (!FtrGet(sysFileCSoundMgr, sndFtrIDVersion, &version))
if (version >= 1)
OPTIONS_SET(kOptPalmSoundAPI);
-*/
+
+ // Sony Pa1 Sound API
+ if (Pa1Lib_Open()) {
+ OPTIONS_SET(kOptSonyPa1LibAPI);
+ Pa1Lib_Close();
+ }
+
// check for 16bit mode
if (!WinScreenMode(winScreenModeGetSupportedDepths, NULL, NULL, &depth, &color))
OPTIONS_SET(((depth & 0x8000) ? kOptMode16Bit : kOptNone));
@@ -404,12 +411,10 @@ Err AppStart(void) {
gPrefs->stdPalette = OPTIONS_TST(kOptDeviceOS5);
- gPrefs->volume.speaker = 16;
- gPrefs->volume.headphone = 16;
-
gPrefs->volume.master = 192;
gPrefs->volume.music = 192;
gPrefs->volume.sfx = 192;
+ gPrefs->volume.speech = 192;
gPrefs->sound.tempo = 100;
gPrefs->sound.defaultTrackLength = 10;