mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-03 18:15:06 +01:00
973d8b2005
*Converted every 4 spaces to a tab to make the source consistent on those
38 lines
664 B
C++
38 lines
664 B
C++
#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 CheckGame(const u8 *titleid);
|
|
bool IsNew(const u8 *titleid) const;
|
|
void Remove(const u8 *titleid);
|
|
private:
|
|
NewTitles();
|
|
~NewTitles();
|
|
|
|
static NewTitles *instance;
|
|
|
|
class Title
|
|
{
|
|
public:
|
|
char titleId[7];
|
|
time_t timestamp;
|
|
Title *next;
|
|
bool isNew;
|
|
};
|
|
|
|
Title *firstTitle;
|
|
Title *lastTitle;
|
|
bool isDirty;
|
|
bool isNewFile;
|
|
};
|
|
|
|
#endif //_NEWTITLES_H
|