show warning when too many shuffle items are selected instead of erroring during the install
This commit is contained in:
@@ -242,17 +242,21 @@ int main(void)
|
|||||||
switch(current_mode)
|
switch(current_mode)
|
||||||
{
|
{
|
||||||
case MODE_THEMES:
|
case MODE_THEMES:
|
||||||
if(current_list->shuffle_count > 0)
|
if(current_list->shuffle_count > MAX_SHUFFLE_THEMES)
|
||||||
|
{
|
||||||
|
throw_error("You have too many Shuffle seleted.", ERROR_LEVEL_WARNING);
|
||||||
|
}
|
||||||
|
else if(current_list->shuffle_count == 0)
|
||||||
|
{
|
||||||
|
throw_error("You dont have any Shuffle selected.", ERROR_LEVEL_WARNING);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
draw_install(INSTALL_SHUFFLE);
|
draw_install(INSTALL_SHUFFLE);
|
||||||
Result res = shuffle_install(*current_list);
|
Result res = shuffle_install(*current_list);
|
||||||
if(R_FAILED(res)) DEBUG("shuffle install result: %lx\n", res);
|
if(R_FAILED(res)) DEBUG("shuffle install result: %lx\n", res);
|
||||||
else current_list->shuffle_count = 0;
|
else current_list->shuffle_count = 0;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
throw_error("You dont have any Shuffle selected.", ERROR_LEVEL_WARNING);
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user