| 59 | }; |
| 60 | |
| 61 | struct compareSaveTimestamp : public std::binary_function<SaveInfo&, SaveInfo&, bool> |
| 62 | { |
| 63 | bool _reverse; |
| 64 | |
| 65 | compareSaveTimestamp(bool reverse) : _reverse(reverse) {} |
| 66 | |
| 67 | bool operator()(const SaveInfo &a, const SaveInfo &b) const |
| 68 | { |
| 69 | if (a.reserved == b.reserved) |
| 70 | { |
| 71 | return a.timestamp < b.timestamp; |
| 72 | } |
| 73 | else |
| 74 | { |
| 75 | return _reverse ? b.reserved : a.reserved; |
| 76 | } |
| 77 | } |
| 78 | }; |
| 79 | |
| 80 | /** |
| 81 | * Initializes all the elements in the Saved Game screen. |