usbloadergx/source/settings/newtitles.h

39 lines
695 B
C
Raw Normal View History

#ifndef _NEWTITLES_H
#define _NEWTITLES_H
#include <time.h>
class NewTitles
{
public:
static NewTitles *Instance() { if(!instance) instance = new NewTitles(); return instance; }
static void DestroyInstance() { delete instance; instance = NULL; }
void Save(void);
void Clean(void);
void Reload(void);
void CheckGame(const u8 *titleid);
bool IsNew(const u8 *titleid) const;
void Remove(const u8 *titleid);
private:
NewTitles();
~NewTitles();
static NewTitles *instance;
struct Title
{
char titleId[7];
time_t timestamp;
Title *next;
bool isNew;
};
Title *firstTitle;
Title *lastTitle;
bool isDirty;
bool isNewFile;
};
#endif //_NEWTITLES_H