mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-12 14:35:10 +01:00
2adc6cc995
*Fixed bug mounting a wbfs partition which was formatted from an ext partition *Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set. *Saving password in config file is now encrypted *Added loop to wait for usb when reloading the cIOS before game start The parental control feature is filtering games like following when usb loader is locked: level 0 (everyone 0+) > shows only games with lvl 0 level 1 (childs 7+) > shows games with lvl 0, 1 level 2 (teens 12+) > shows games with lvl 0, 1, 2 level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3 level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4) level 4 is default when creating new configs
38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
#ifndef _GUIIMAGEASYNC_H_
|
|
#define _GUIIMAGEASYNC_H_
|
|
|
|
#include <vector>
|
|
#include "libwiigui/gui.h"
|
|
|
|
typedef GuiImageData * (*ImageLoaderCallback)(void *arg);
|
|
|
|
class GuiImageAsync: public GuiImage
|
|
{
|
|
public:
|
|
GuiImageAsync(const char *Filename, GuiImageData * PreloadImg);
|
|
GuiImageAsync(ImageLoaderCallback Callback, const void *Arg, int ArgLen, GuiImageData * PreloadImg);
|
|
~GuiImageAsync();
|
|
|
|
static void ClearQueue();
|
|
private:
|
|
GuiImageData *imgData;
|
|
ImageLoaderCallback callback;
|
|
void *arg;
|
|
|
|
static void * GuiImageAsyncThread(void *arg);
|
|
static void ThreadAddImage(GuiImageAsync* Image);
|
|
static void ThreadRemoveImage(GuiImageAsync* Image);
|
|
static u32 ThreadInit();
|
|
static u32 ThreadExit();
|
|
|
|
static std::vector<GuiImageAsync *> List;
|
|
static lwp_t Thread;
|
|
static mutex_t ListLock;
|
|
static GuiImageAsync * InUse;
|
|
static u32 ThreadCount;
|
|
static bool ThreadSleep;
|
|
static bool CloseThread;
|
|
};
|
|
|
|
#endif /*_GUIIMAGEASYNC_H_*/
|