usbloadergx/source/utils/PasswordCheck.cpp
dimok321 6718070812 *Added "Remember Unlock" option. If set to OFF the loader is locked on startup if a parental password was setup. (Issue 1954)
*Added hide of password when entering unlock password. (Issue 1847)
*Added Priiloader override on returning to Wii System Menu
*Fixed issue with filebrowser not jumping back to first directory entry on directory change.
2011-09-10 20:08:12 +00:00

22 lines
417 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, true);
if (result == 1)
{
if (strcmp(entered, password) == 0) //if password correct
return 1;
else
return -1;
}
return 0;
}