mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-16 08:19:19 +01:00
6718070812
*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.
22 lines
417 B
C++
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;
|
|
}
|