usbloadergx/source/settings/newtitles.h
dimok789 deddf31907 *removed DML video mode setup, the main loader video mode is now used as reference
*added an option to force interlace mode on GC
*fixed force prog mode on DML 1.4
*fixed a bug in detecting new titles ("new" mark)
*removed "Loader Mode" setting from global settings as it is setup on main view
*removed "Search Mode" setting from global settings as it is setup on search window
*corrected copy/paste bug in theme text
*changed update function to get the files depending on the text file in the branches like the new installer (since old hoster isnt accessable anymore)
*fixed missing OK button on prompt window on gc multi disc install
2012-05-09 19:27:54 +00:00

39 lines
695 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);
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