2009-11-21 23:59:57 +01:00
|
|
|
#ifndef _NEWTITLES_H
|
|
|
|
#define _NEWTITLES_H
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
|
2010-02-09 11:59:55 +01:00
|
|
|
class NewTitles
|
|
|
|
{
|
2010-09-19 01:16:05 +02:00
|
|
|
public:
|
|
|
|
static NewTitles *Instance();
|
|
|
|
static void DestroyInstance();
|
|
|
|
|
|
|
|
void Save();
|
2010-09-24 02:48:03 +02:00
|
|
|
void CheckGame(u8 *titleid);
|
|
|
|
bool IsNew(u8 *titleid);
|
|
|
|
void Remove(u8 *titleid);
|
2010-09-19 01:16:05 +02:00
|
|
|
private:
|
|
|
|
NewTitles();
|
|
|
|
~NewTitles();
|
|
|
|
|
|
|
|
static NewTitles *instance;
|
|
|
|
|
|
|
|
class Title
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
u8 titleId[6];
|
|
|
|
time_t timestamp;
|
|
|
|
void *next;
|
|
|
|
};
|
|
|
|
|
|
|
|
Title *firstTitle;
|
|
|
|
Title *lastTitle;
|
|
|
|
bool isDirty;
|
|
|
|
bool isNewFile;
|
2009-11-21 23:59:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //_NEWTITLES_H
|