diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/savestate.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/savestate.h b/engines/savestate.h index 54eff0f8cb..21ade602fa 100644 --- a/engines/savestate.h +++ b/engines/savestate.h @@ -27,7 +27,6 @@ #include "common/str.h" #include "common/ptr.h" - namespace Graphics { struct Surface; } @@ -205,5 +204,13 @@ private: /** List of savestates. */ typedef Common::Array<SaveStateDescriptor> SaveStateList; +/** + * Comparator object to compare SaveStateDescriptor's based on slot. + */ +struct SaveStateDescriptorSlotComparator { + bool operator()(const SaveStateDescriptor &x, const SaveStateDescriptor &y) const { + return x.getSaveSlot() < y.getSaveSlot(); + } +}; #endif |