mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-06 16:49:11 +00:00
MainScreen: check this->entries.size() > 0.
This commit is contained in:
@@ -238,11 +238,11 @@ void MainScreen::Logic(u32 hDown, u32 hHeld, touchPosition touch) {
|
|||||||
|
|
||||||
switch(this->storeMode) {
|
switch(this->storeMode) {
|
||||||
case 0:
|
case 0:
|
||||||
if (this->store && this->store->GetValid()) StoreUtils::EntryHandle(this->showMarks, this->fetchDown, this->screenshotFetch, this->storeMode);
|
if (this->store && this->store->GetValid() && this->entries.size() > 0) StoreUtils::EntryHandle(this->showMarks, this->fetchDown, this->screenshotFetch, this->storeMode);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
if (this->store && this->store->GetValid()) StoreUtils::DownloadHandle(this->store, this->entries[this->store->GetEntry()], this->dwnldList, this->storeMode, this->meta, this->lastMode, this->smallDelay);
|
if (this->store && this->store->GetValid() && this->entries.size() > 0) StoreUtils::DownloadHandle(this->store, this->entries[this->store->GetEntry()], this->dwnldList, this->storeMode, this->meta, this->lastMode, this->smallDelay);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ void StoreUtils::MarkHandle(std::unique_ptr<StoreEntry> &entry, const std::uniqu
|
|||||||
touchPosition t;
|
touchPosition t;
|
||||||
hidTouchRead(&t);
|
hidTouchRead(&t);
|
||||||
|
|
||||||
if (meta && entry) {
|
if (meta && entry && store) {
|
||||||
if (hidKeysDown() & KEY_TOUCH) {
|
if (hidKeysDown() & KEY_TOUCH) {
|
||||||
/* Star. */
|
/* Star. */
|
||||||
if (touching(t, markBox[0])) {
|
if (touching(t, markBox[0])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user