2020-09-21 17:17:34 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2020-06-22 15:27:53 +00:00
|
|
|
//
|
2020-09-21 17:17:34 +00:00
|
|
|
// EmulationStation Desktop Edition
|
2020-06-22 15:27:53 +00:00
|
|
|
// FileSorts.h
|
|
|
|
//
|
|
|
|
// Gamelist sorting functions.
|
|
|
|
// Actual sorting takes place in FileData.
|
|
|
|
//
|
|
|
|
|
2017-10-31 17:12:50 +00:00
|
|
|
#ifndef ES_APP_FILE_SORTS_H
|
|
|
|
#define ES_APP_FILE_SORTS_H
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
#include "FileData.h"
|
2020-09-21 17:17:34 +00:00
|
|
|
|
2017-11-01 22:21:10 +00:00
|
|
|
#include <vector>
|
2014-06-25 16:29:58 +00:00
|
|
|
|
|
|
|
namespace FileSorts
|
|
|
|
{
|
2020-06-22 15:27:53 +00:00
|
|
|
bool compareName(const FileData* file1, const FileData* file2);
|
2021-01-08 19:30:21 +00:00
|
|
|
bool compareNameDescending(const FileData* file1, const FileData* file2);
|
2020-06-22 15:27:53 +00:00
|
|
|
bool compareRating(const FileData* file1, const FileData* file2);
|
2021-01-08 19:30:21 +00:00
|
|
|
bool compareRatingDescending(const FileData* file1, const FileData* file2);
|
2020-06-22 15:27:53 +00:00
|
|
|
bool compareReleaseDate(const FileData* file1, const FileData* file2);
|
2021-01-08 19:30:21 +00:00
|
|
|
bool compareReleaseDateDescending(const FileData* file1, const FileData* file2);
|
2020-06-22 15:27:53 +00:00
|
|
|
bool compareDeveloper(const FileData* file1, const FileData* file2);
|
2021-01-08 19:30:21 +00:00
|
|
|
bool compareDeveloperDescending(const FileData* file1, const FileData* file2);
|
2020-06-22 15:27:53 +00:00
|
|
|
bool comparePublisher(const FileData* file1, const FileData* file2);
|
2021-01-08 19:30:21 +00:00
|
|
|
bool comparePublisherDescending(const FileData* file1, const FileData* file2);
|
|
|
|
bool compareGenre(const FileData* file1, const FileData* file2);
|
|
|
|
bool compareGenreDescending(const FileData* file1, const FileData* file2);
|
|
|
|
bool compareNumPlayers(const FileData* file1, const FileData* file2);
|
|
|
|
bool compareNumPlayersDescending(const FileData* file1, const FileData* file2);
|
|
|
|
bool compareLastPlayed(const FileData* file1, const FileData* file2);
|
|
|
|
bool compareLastPlayedDescending(const FileData* file1, const FileData* file2);
|
2021-01-08 20:36:43 +00:00
|
|
|
bool compareTimesPlayed(const FileData* file1, const FileData* fil2);
|
|
|
|
bool compareTimesPlayedDescending(const FileData* file1, const FileData* fil2);
|
2020-06-22 15:27:53 +00:00
|
|
|
bool compareSystem(const FileData* file1, const FileData* file2);
|
2021-01-08 19:30:21 +00:00
|
|
|
bool compareSystemDescending(const FileData* file1, const FileData* file2);
|
2014-06-25 16:29:58 +00:00
|
|
|
|
2020-06-22 15:27:53 +00:00
|
|
|
extern const std::vector<FileData::SortType> SortTypes;
|
2014-06-25 16:29:58 +00:00
|
|
|
};
|
2017-10-31 17:12:50 +00:00
|
|
|
|
|
|
|
#endif // ES_APP_FILE_SORTS_H
|