mirror of
https://github.com/BernardoGiordano/Checkpoint
synced 2024-11-15 06:07:06 +00:00
Held Y to select all the titles
This commit is contained in:
parent
06e6d439b1
commit
ca036cae0a
1 changed files with 29 additions and 1 deletions
|
@ -33,6 +33,7 @@ void createError(Result res, std::string message)
|
|||
int main() {
|
||||
servicesInit();
|
||||
|
||||
int selectionTimer = 0;
|
||||
menu = new Gui();
|
||||
|
||||
createThread((ThreadFunc)threadLoadTitles);
|
||||
|
@ -59,6 +60,7 @@ int main() {
|
|||
{
|
||||
menu->resetIndex();
|
||||
setMode(getMode() == MODE_SAVE ? MODE_EXTDATA : MODE_SAVE);
|
||||
clearSelectedEntries();
|
||||
}
|
||||
|
||||
if (hidKeysDown() & KEY_Y)
|
||||
|
@ -66,6 +68,25 @@ int main() {
|
|||
addSelectedEntry(menu->getNormalizedIndex());
|
||||
}
|
||||
|
||||
if (hidKeysHeld() & KEY_Y)
|
||||
{
|
||||
selectionTimer++;
|
||||
}
|
||||
else
|
||||
{
|
||||
selectionTimer = 0;
|
||||
}
|
||||
|
||||
if (selectionTimer > 90)
|
||||
{
|
||||
clearSelectedEntries();
|
||||
for (size_t i = 0, sz = getTitlesCount(); i < sz; i++)
|
||||
{
|
||||
addSelectedEntry(i);
|
||||
}
|
||||
selectionTimer = 0;
|
||||
}
|
||||
|
||||
if (menu->isBackupReleased())
|
||||
{
|
||||
if (multipleSelectionEnabled())
|
||||
|
@ -86,7 +107,14 @@ int main() {
|
|||
|
||||
if (menu->isRestoreReleased())
|
||||
{
|
||||
restore(menu->getNormalizedIndex());
|
||||
if (multipleSelectionEnabled())
|
||||
{
|
||||
clearSelectedEntries();
|
||||
}
|
||||
else
|
||||
{
|
||||
restore(menu->getNormalizedIndex());
|
||||
}
|
||||
}
|
||||
|
||||
menu->updateSelector();
|
||||
|
|
Loading…
Reference in a new issue