mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 23:43:10 +00:00
COMMON: Add comparator for sorting ArchiveMemberList
This commit is contained in:
parent
b5e801379f
commit
5bc4b46aa5
@ -53,6 +53,12 @@ public:
|
||||
typedef SharedPtr<ArchiveMember> ArchiveMemberPtr;
|
||||
typedef List<ArchiveMemberPtr> ArchiveMemberList;
|
||||
|
||||
struct ArchiveMemberListComparator {
|
||||
bool operator()(const ArchiveMemberPtr &a, const ArchiveMemberPtr &b) {
|
||||
return a->getName() < b->getName();
|
||||
}
|
||||
};
|
||||
|
||||
class Archive;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user