mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-30 01:55:39 +00:00
32 lines
1 KiB
C++
32 lines
1 KiB
C++
//
|
|
// FileSorts.h
|
|
//
|
|
// Gamelist sorting functions.
|
|
// Actual sorting takes place in FileData.
|
|
//
|
|
|
|
#pragma once
|
|
#ifndef ES_APP_FILE_SORTS_H
|
|
#define ES_APP_FILE_SORTS_H
|
|
|
|
#include "FileData.h"
|
|
#include <vector>
|
|
|
|
namespace FileSorts
|
|
{
|
|
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);
|
|
|
|
extern const std::vector<FileData::SortType> SortTypes;
|
|
};
|
|
|
|
#endif // ES_APP_FILE_SORTS_H
|