Changeset 109 for trunk/Score.pas
- Timestamp:
- Dec 10, 2024, 10:38:11 AM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Score.pas
r108 r109 17 17 UsedUndos: Integer; 18 18 BoardSize: string; 19 DisabledTiles: Integer; 20 UnmergeableTiles: Integer; 21 BiggestTile: Integer; 19 22 procedure SaveToRegistry(Reg: TRegistryEx; RegContext: TRegistryContext); 20 23 procedure LoadFromRegistry(Reg: TRegistryEx; RegContext: TRegistryContext); … … 30 33 end; 31 34 35 32 36 implementation 33 37 … … 39 43 CurrentContext := RegContext; 40 44 WriteDateTime('StartTime', StartTime); 45 WriteDateTime('Duration', Duration); 41 46 WriteInteger('Score', Score); 42 47 WriteInteger('Moves', Moves); 43 48 WriteInteger('UsedUndos', UsedUndos); 44 49 WriteString('BoardSize', BoardSize); 50 WriteInteger('DisabledTiles', DisabledTiles); 51 WriteInteger('UnmergeableTiles', UnmergeableTiles); 52 WriteInteger('BiggestTile', BiggestTile); 45 53 end; 46 54 end; … … 52 60 CurrentContext := RegContext; 53 61 StartTime := ReadDateTimeWithDefault('StartTime', StartTime); 62 Duration := ReadDateTimeWithDefault('Duration', Duration); 54 63 Score := ReadIntegerWithDefault('Score', Score); 55 64 Moves := ReadIntegerWithDefault('Moves', Moves); 56 65 UsedUndos := ReadIntegerWithDefault('UsedUndos', UsedUndos); 57 66 BoardSize := ReadStringWithDefault('BoardSize', BoardSize); 67 DisabledTiles := ReadIntegerWithDefault('DisabledTiles', DisabledTiles); 68 UnmergeableTiles := ReadIntegerWithDefault('UnmergeableTiles', UnmergeableTiles); 69 BiggestTile := ReadIntegerWithDefault('BiggestTile', BiggestTile); 58 70 end; 59 71 end;
Note:
See TracChangeset
for help on using the changeset viewer.