mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-18 09:19:17 +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
22 lines
471 B
C++
22 lines
471 B
C++
#include "prompts/PromptWindows.h"
|
|
|
|
int PasswordCheck(const char * password)
|
|
{
|
|
if(!password || strcmp(password, "") == 0 || strcmp(password, "not set") == 0)
|
|
return 2;
|
|
|
|
char entered[100];
|
|
memset(entered, 0, sizeof(entered));
|
|
|
|
int result = OnScreenKeyboard(entered, 20, 0);
|
|
if (result == 1)
|
|
{
|
|
if (strcmp(entered, password) == 0) //if password correct
|
|
return 1;
|
|
else
|
|
return -1;
|
|
}
|
|
|
|
return 0;
|
|
}
|