mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
556b9fa3fe
Also add a "rating" and "timePlayed" variable to GameData. Some cleanup in GameData and FolderData. Added sorting functions for rating and timesPlayed to FolderData. Testing and UI support still tbd.
18 lines
482 B
C++
18 lines
482 B
C++
#ifndef _FILEDATA_H_
|
|
#define _FILEDATA_H_
|
|
|
|
#include <string>
|
|
|
|
//This is a really basic class that the GameData and FolderData subclass from.
|
|
//This lets us keep everything in one vector and not have to differentiate between files and folders when we just want to check the name, etc.
|
|
class FileData
|
|
{
|
|
public:
|
|
virtual ~FileData() { };
|
|
virtual bool isFolder() const = 0;
|
|
virtual const std::string & getName() const = 0;
|
|
virtual const std::string & getPath() const = 0;
|
|
};
|
|
|
|
#endif
|