mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 11:19:17 +01:00
deddf31907
*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
39 lines
695 B
C++
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
|