diff options
author | Chris Apers | 2003-11-03 16:16:57 +0000 |
---|---|---|
committer | Chris Apers | 2003-11-03 16:16:57 +0000 |
commit | 3b0fcf063765509972b527b7a0d5a0e83fcb5f63 (patch) | |
tree | 8887809af63d6f6a0225b62ed74fd3144da67cb1 /backends/PalmOS/Src/games.cpp | |
parent | 2045867796f539064ac6fdc31a2d3ce89edba8b5 (diff) | |
download | scummvm-rg350-3b0fcf063765509972b527b7a0d5a0e83fcb5f63.tar.gz scummvm-rg350-3b0fcf063765509972b527b7a0d5a0e83fcb5f63.tar.bz2 scummvm-rg350-3b0fcf063765509972b527b7a0d5a0e83fcb5f63.zip |
Changed vars name
svn-id: r11101
Diffstat (limited to 'backends/PalmOS/Src/games.cpp')
-rw-r--r-- | backends/PalmOS/Src/games.cpp | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/backends/PalmOS/Src/games.cpp b/backends/PalmOS/Src/games.cpp index 988f2d407d..364bfd6c3e 100644 --- a/backends/PalmOS/Src/games.cpp +++ b/backends/PalmOS/Src/games.cpp @@ -81,13 +81,13 @@ static Err GamUpdateList() { gitCur.gfxMode = git0.gfxMode; gitCur.autoLoad = git0.autoLoad; - gitCur.autoRoom = git0.autoRoom; + gitCur.bootParam = git0.bootParam; gitCur.setPlatform = git0.amiga; // amiga become platform amiga/atari-st/machintosh gitCur.subtitles = git0.subtitles; gitCur.talkSpeed = git0.talkSpeed; gitCur.loadSlot = git0.loadSlot; - gitCur.roomNum = git0.roomNum; + gitCur.bootValue = git0.bootValue; gitCur.talkValue = git0.talkValue; gitCur.platform = 0; // default to amiga gitCur.language = git0.language; @@ -205,6 +205,28 @@ Err GamSortList() { return DmQuickSort (gameDB, (DmComparF *)GamCompare, 0); } +void GamUnselect() { + GameInfoType modGame; + GameInfoType *game; + + MemHandle recordH; + UInt16 index; + + index = GamGetSelected(); + + if (index != dmMaxRecordIndex) { + recordH = DmGetRecord(gameDB, index); + game = (GameInfoType *)MemHandleLock(recordH); + + MemMove(&modGame, game, sizeof(GameInfoType)); + modGame.selected = !modGame.selected; + DmWrite(game, 0, &modGame, sizeof(GameInfoType)); + + MemHandleUnlock(recordH); + DmReleaseRecord (gameDB, index, 0); + } +} + UInt16 GamGetSelected() { MemHandle record; GameInfoType *game; |