aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src/games.cpp
diff options
context:
space:
mode:
authorChris Apers2004-11-09 11:49:07 +0000
committerChris Apers2004-11-09 11:49:07 +0000
commitc9c862989a14d99c358cf7075ac7092e06794372 (patch)
treea48d0b181c8b9bf4bc0b8a4e46fa0f23f91bd305 /backends/PalmOS/Src/games.cpp
parent27449a32541f434230bdff8f54a290ba40e5db53 (diff)
downloadscummvm-rg350-c9c862989a14d99c358cf7075ac7092e06794372.tar.gz
scummvm-rg350-c9c862989a14d99c358cf7075ac7092e06794372.tar.bz2
scummvm-rg350-c9c862989a14d99c358cf7075ac7092e06794372.zip
Updated based on last changes
svn-id: r15768
Diffstat (limited to 'backends/PalmOS/Src/games.cpp')
-rw-r--r--backends/PalmOS/Src/games.cpp30
1 files changed, 20 insertions, 10 deletions
diff --git a/backends/PalmOS/Src/games.cpp b/backends/PalmOS/Src/games.cpp
index 4f6a60f1ec..fe85a8fe4c 100644
--- a/backends/PalmOS/Src/games.cpp
+++ b/backends/PalmOS/Src/games.cpp
@@ -25,6 +25,7 @@
#include <ctype.h>
#include "globals.h"
+#include "palmdefs.h"
#include "start.h"
#include "games.h"
#include "skin.h"
@@ -62,11 +63,12 @@ static Err GamUpdateList() {
frmP = FrmInitForm(ConvertForm);
FrmSetActiveForm(frmP);
FrmDrawForm(frmP);
- SysTaskDelay(200);
+ SysTaskDelay(1 * SysTicksPerSecond());
MemSet(&gitCur, sizeof(GameInfoType), 0);
- if (version == itemVersion_27 ||
+ if (version == itemVersion_30 ||
+ version == itemVersion_27 ||
version == itemVersion_26 ||
version == itemVersion_25) {
@@ -78,15 +80,19 @@ static Err GamUpdateList() {
MemMove(&gitCur, tmpP, MemHandleSize(tmpH));
MemHandleUnlock(tmpH);
- gitCur.musicInfo.volume.master = 192;
- gitCur.musicInfo.volume.music = 192;
- gitCur.musicInfo.volume.sfx = 192;
- gitCur.musicInfo.volume.speech = 192;
- gitCur.musicInfo.volume.audiocd = 50;
+ if (version != itemVersion_30) {
+ gitCur.musicInfo.volume.master = 192;
+ gitCur.musicInfo.volume.music = 192;
+ gitCur.musicInfo.volume.sfx = 192;
+ gitCur.musicInfo.volume.speech = 192;
+ gitCur.musicInfo.volume.audiocd = 50;
+
+ gitCur.musicInfo.sound.tempo = 100;
+ gitCur.musicInfo.sound.defaultTrackLength = 10;
+ gitCur.musicInfo.sound.firstTrack = 1;
+ }
- gitCur.musicInfo.sound.tempo = 100;
- gitCur.musicInfo.sound.defaultTrackLength = 10;
- gitCur.musicInfo.sound.firstTrack = 1;
+ gitCur.engine = 0;
// simply resize the old record
tmpH = DmResizeRecord(gameDB, index, sizeof(GameInfoType)); // TODO : check error on resize tmpH==NULL
@@ -137,6 +143,8 @@ static Err GamUpdateList() {
gitCur.musicInfo.sound.tempo = 100;
gitCur.musicInfo.sound.defaultTrackLength = 10;
gitCur.musicInfo.sound.firstTrack = 1;
+
+ gitCur.engine = 0;
tmpH = DmResizeRecord(gameDB, index, sizeof(GameInfoType)); // TODO : check error on resize tmpH==NULL
tmpP = MemHandleLock(tmpH);
@@ -185,6 +193,8 @@ static Err GamUpdateList() {
gitCur.musicInfo.sound.tempo = 100;
gitCur.musicInfo.sound.defaultTrackLength = 10;
gitCur.musicInfo.sound.firstTrack = 1;
+
+ gitCur.engine = 0;
tmpH = DmResizeRecord(gameDB, index, sizeof(GameInfoType)); // TODO : check error on resize tmpH==NULL
tmpP = MemHandleLock(tmpH);