ES-DE/es-app/src/FileSorts.h

34 lines
1.1 KiB
C
Raw Normal View History

// SPDX-License-Identifier: MIT
2020-06-22 15:27:53 +00:00
//
// EmulationStation Desktop Edition
2020-06-22 15:27:53 +00:00
// FileSorts.h
//
// Gamelist sorting functions.
// Actual sorting takes place in FileData.
//
#ifndef ES_APP_FILE_SORTS_H
#define ES_APP_FILE_SORTS_H
#include "FileData.h"
2017-11-01 22:21:10 +00:00
#include <vector>
namespace FileSorts
{
2020-06-22 15:27:53 +00:00
bool compareName(const FileData* file1, const FileData* file2);
bool compareRating(const FileData* file1, const FileData* file2);
bool compareTimesPlayed(const FileData* file1, const FileData* fil2);
bool compareLastPlayed(const FileData* file1, const FileData* file2);
bool compareNumPlayers(const FileData* file1, const FileData* file2);
bool compareReleaseDate(const FileData* file1, const FileData* file2);
bool compareGenre(const FileData* file1, const FileData* file2);
bool compareDeveloper(const FileData* file1, const FileData* file2);
bool comparePublisher(const FileData* file1, const FileData* file2);
bool compareSystem(const FileData* file1, const FileData* file2);
2020-06-22 15:27:53 +00:00
extern const std::vector<FileData::SortType> SortTypes;
};
#endif // ES_APP_FILE_SORTS_H