2010-11-13 23:34:53 +01:00
|
|
|
/****************************************************************************
|
|
|
|
* Copyright (C) 2010
|
|
|
|
* by Dimok
|
|
|
|
*
|
|
|
|
* This software is provided 'as-is', without any express or implied
|
|
|
|
* warranty. In no event will the authors be held liable for any
|
|
|
|
* damages arising from the use of this software.
|
|
|
|
*
|
|
|
|
* Permission is granted to anyone to use this software for any
|
|
|
|
* purpose, including commercial applications, and to alter it and
|
|
|
|
* redistribute it freely, subject to the following restrictions:
|
|
|
|
*
|
|
|
|
* 1. The origin of this software must not be misrepresented; you
|
|
|
|
* must not claim that you wrote the original software. If you use
|
|
|
|
* this software in a product, an acknowledgment in the product
|
|
|
|
* documentation would be appreciated but is not required.
|
|
|
|
*
|
|
|
|
* 2. Altered source versions must be plainly marked as such, and
|
|
|
|
* must not be misrepresented as being the original software.
|
|
|
|
*
|
|
|
|
* 3. This notice may not be removed or altered from any source
|
|
|
|
* distribution.
|
|
|
|
***************************************************************************/
|
|
|
|
#include <unistd.h>
|
|
|
|
#include "ParentalControlSM.hpp"
|
|
|
|
#include "settings/CSettings.h"
|
|
|
|
#include "prompts/PromptWindows.h"
|
|
|
|
#include "language/gettext.h"
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
#include "utils/PasswordCheck.h"
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
static const char * OnOffText[MAX_ON_OFF] =
|
|
|
|
{
|
|
|
|
trNOOP( "OFF" ),
|
|
|
|
trNOOP( "ON" )
|
|
|
|
};
|
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
static const char * LockModeText[] =
|
|
|
|
{
|
|
|
|
trNOOP( "Locked" ),
|
|
|
|
trNOOP( "Unlocked" )
|
|
|
|
};
|
|
|
|
|
|
|
|
static const char * ParentalText[5] =
|
|
|
|
{
|
|
|
|
trNOOP( "0 (Everyone)" ),
|
|
|
|
trNOOP( "1 (Child 7+)" ),
|
|
|
|
trNOOP( "2 (Teen 12+)" ),
|
|
|
|
trNOOP( "3 (Mature 16+)" ),
|
|
|
|
trNOOP( "4 (Adults Only 18+)" )
|
|
|
|
};
|
|
|
|
|
|
|
|
ParentalControlSM::ParentalControlSM()
|
|
|
|
: SettingsMenu(tr("Parental Control"), &GuiOptions, MENU_NONE)
|
|
|
|
{
|
|
|
|
int Idx = 0;
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Console" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Password" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Controllevel" ));
|
2011-01-20 16:00:55 +01:00
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Global Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Gui Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Loader Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Parental Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Sound Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Custom Paths" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Updates" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Reset Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Theme Downloader" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Theme Menu" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Game Settings" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block HBC Menu" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Title Launcher" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Cover Downloads" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block Game Install" ));
|
|
|
|
Options->SetName(Idx++, "%s", tr( "Block GameID Change" ));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
|
|
|
SetOptionValues();
|
|
|
|
}
|
|
|
|
|
|
|
|
void ParentalControlSM::SetOptionValues()
|
|
|
|
{
|
|
|
|
int Idx = 0;
|
|
|
|
|
|
|
|
//! Settings: Console
|
|
|
|
Options->SetValue(Idx++, "%s", tr( LockModeText[Settings.godmode] ));
|
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
if(!Settings.godmode)
|
|
|
|
{
|
|
|
|
for(int i = Idx; i < Options->GetLength(); ++i)
|
|
|
|
Options->SetValue(i, "********");
|
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
//! Settings: Password
|
2011-01-20 16:00:55 +01:00
|
|
|
if (strcmp(Settings.unlockCode, "") == 0)
|
2010-11-13 23:34:53 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr( "not set" ));
|
|
|
|
else
|
|
|
|
Options->SetValue(Idx++, Settings.unlockCode);
|
|
|
|
|
|
|
|
//! Settings: Controllevel
|
2011-01-20 16:00:55 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(ParentalText[Settings.parentalcontrol]));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
//! Settings: Block Global Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_GLOBAL_SETTINGS) != 0)]));
|
2010-11-13 23:34:53 +01:00
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
//! Settings: Block Gui Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_GUI_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Loader Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_LOADER_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Parental Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_PARENTAL_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Sound Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_SOUND_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Custom Paths
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_CUSTOMPATH_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Updates
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_UPDATES) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Reset Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_RESET_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Theme Downloader
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_THEME_DOWNLOADER) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Theme Menu
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_THEME_MENU) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Game Settings
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_GAME_SETTINGS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block HBC Menu
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_HBC_MENU) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Title Launcher
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_TITLE_LAUNCHER_MENU) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Cover Downloads
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_COVER_DOWNLOADS) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block Game Install
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_GAME_INSTALL) != 0)]));
|
2011-01-20 16:00:55 +01:00
|
|
|
|
|
|
|
//! Settings: Block GameID Change
|
2011-01-21 20:43:59 +01:00
|
|
|
Options->SetValue(Idx++, "%s", tr(OnOffText[((Settings.ParentalBlocks & BLOCK_GAMEID_CHANGE) != 0)]));
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int ParentalControlSM::GetMenuInternal()
|
|
|
|
{
|
|
|
|
int ret = optionBrowser->GetClickedOption();
|
|
|
|
|
|
|
|
if (ret < 0)
|
|
|
|
return MENU_NONE;
|
|
|
|
|
|
|
|
int Idx = -1;
|
|
|
|
|
|
|
|
//! Settings: Console
|
|
|
|
if (ret == ++Idx)
|
|
|
|
{
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
if (!Settings.godmode)
|
2010-11-13 23:34:53 +01:00
|
|
|
{
|
|
|
|
//password check to unlock Install,Delete and Format
|
|
|
|
SetState(STATE_DISABLED);
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
int result = PasswordCheck(Settings.unlockCode);
|
2010-11-13 23:34:53 +01:00
|
|
|
SetState(STATE_DEFAULT);
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
if (result > 0)
|
2010-11-13 23:34:53 +01:00
|
|
|
{
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
if(result == 1)
|
|
|
|
WindowPrompt( tr( "Correct Password" ), tr( "All the features of USB Loader GX are unlocked." ), tr( "OK" ));
|
|
|
|
Settings.godmode = 1;
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
else if(result < 0)
|
|
|
|
WindowPrompt(tr( "Wrong Password" ), tr( "USB Loader GX is protected" ), tr( "OK" ));
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
int choice = WindowPrompt(tr( "Lock Console" ), tr( "Are you sure?" ), tr( "Yes" ), tr( "No" ));
|
2010-11-13 23:34:53 +01:00
|
|
|
if (choice == 1)
|
|
|
|
{
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*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
2010-12-19 19:20:33 +01:00
|
|
|
WindowPrompt(tr( "Console Locked" ), tr( "USB Loader GX is protected" ), tr( "OK" ));
|
2010-11-13 23:34:53 +01:00
|
|
|
Settings.godmode = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
//! General permission check for all following
|
|
|
|
else if(!Settings.godmode)
|
|
|
|
{
|
|
|
|
WindowPrompt(tr( "Permission denied." ), tr( "Console must be unlocked for this option." ), tr( "OK" ));
|
|
|
|
}
|
|
|
|
|
2010-11-13 23:34:53 +01:00
|
|
|
//! Settings: Password
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
2011-01-20 16:00:55 +01:00
|
|
|
char entered[20];
|
|
|
|
SetState(STATE_DISABLED);
|
|
|
|
snprintf(entered, sizeof(entered), Settings.unlockCode);
|
|
|
|
int result = OnScreenKeyboard(entered, 20, 0);
|
|
|
|
SetState(STATE_DEFAULT);
|
|
|
|
if (result == 1)
|
2010-11-13 23:34:53 +01:00
|
|
|
{
|
2011-01-20 16:00:55 +01:00
|
|
|
snprintf(Settings.unlockCode, sizeof(Settings.unlockCode), entered);
|
|
|
|
WindowPrompt(tr( "Password Changed" ), tr( "Password has been changed" ), tr( "OK" ));
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Controllevel
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
2011-01-20 16:00:55 +01:00
|
|
|
if (++Settings.parentalcontrol >= 5) Settings.parentalcontrol = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Global Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_GLOBAL_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Gui Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_GUI_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Loader Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_LOADER_SETTINGS;
|
|
|
|
}
|
|
|
|
|
2011-01-21 21:59:49 +01:00
|
|
|
//! Settings: Block Parental Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_PARENTAL_SETTINGS;
|
|
|
|
}
|
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
//! Settings: Block Sound Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_SOUND_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Custom Paths
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_CUSTOMPATH_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Updates
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_UPDATES;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Reset Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_RESET_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Theme Downloader
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_THEME_DOWNLOADER;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Theme Menu
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_THEME_MENU;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Game Settings
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_GAME_SETTINGS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block HBC Menu
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_HBC_MENU;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Title Launcher
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_TITLE_LAUNCHER_MENU;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Cover Downloads
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_COVER_DOWNLOADS;
|
|
|
|
}
|
|
|
|
|
|
|
|
//! Settings: Block Game Install
|
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
|
|
|
Settings.ParentalBlocks ^= BLOCK_GAME_INSTALL;
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
|
2011-01-20 16:00:55 +01:00
|
|
|
//! Settings: Block GameID Change
|
2010-11-13 23:34:53 +01:00
|
|
|
else if (ret == ++Idx)
|
|
|
|
{
|
2011-01-20 16:00:55 +01:00
|
|
|
Settings.ParentalBlocks ^= BLOCK_GAMEID_CHANGE;
|
2010-11-13 23:34:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
SetOptionValues();
|
|
|
|
|
|
|
|
return MENU_NONE;
|
|
|
|
}
|