[Scummvm-cvs-logs] CVS: scummvm/backends/PalmOS/Src games.cpp,1.1,1.2 games.h,1.1,1.2
Chris Apers
chrilith at users.sourceforge.net
Mon Nov 3 08:18:01 CET 2003
Update of /cvsroot/scummvm/scummvm/backends/PalmOS/Src
In directory sc8-pr-cvs1:/tmp/cvs-serv3206
Modified Files:
games.cpp games.h
Log Message:
Changed vars name
Index: games.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/games.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- games.cpp 23 Sep 2003 16:11:54 -0000 1.1
+++ games.cpp 3 Nov 2003 16:16:57 -0000 1.2
@@ -81,13 +81,13 @@
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;
@@ -203,6 +203,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() {
Index: games.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/backends/PalmOS/Src/games.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- games.h 23 Sep 2003 16:11:54 -0000 1.1
+++ games.h 3 Nov 2003 16:16:57 -0000 1.2
@@ -36,8 +36,8 @@
Boolean autoLoad;
UInt16 loadSlot;
- Boolean autoRoom;
- UInt16 roomNum;
+ Boolean bootParam;
+ UInt16 bootValue;
Boolean amiga;
Boolean subtitles;
Boolean talkSpeed;
@@ -58,13 +58,13 @@
UInt16 gfxMode;
Boolean autoLoad;
- Boolean autoRoom;
+ Boolean bootParam;
Boolean setPlatform;
Boolean subtitles;
Boolean talkSpeed;
UInt16 loadSlot;
- UInt16 roomNum;
+ UInt16 bootValue;
UInt16 talkValue;
UInt8 platform;
UInt8 language;
@@ -77,7 +77,8 @@
void GamCloseDatabase (Boolean ignoreCardParams);
Err GamSortList ();
UInt16 GamGetSelected ();
+void GamUnselect ();
extern DmOpenRef gameDB;
-#endif
\ No newline at end of file
+#endif
More information about the Scummvm-git-logs
mailing list