remove wrong pathing used for testing

This commit is contained in:
HookedBehemoth 2019-11-16 15:43:07 +01:00
parent 4d90bb2aa2
commit 43e771e4c3

View file

@ -43,7 +43,7 @@ namespace inst::ui {
void nspInstPage::drawMenuItems(bool clearItems) { void nspInstPage::drawMenuItems(bool clearItems) {
if (clearItems) nspInstPage::selectedNsps = {}; if (clearItems) nspInstPage::selectedNsps = {};
this->menu->ClearItems(); this->menu->ClearItems();
nspInstPage::ourFiles = util::getDirectoryFiles("sdmc:/tinfoil/nsp/", {".nsp", ".nsz"}); nspInstPage::ourFiles = util::getDirectoryFiles("sdmc:/", {".nsp", ".nsz"});
for (auto& file: nspInstPage::ourFiles) { for (auto& file: nspInstPage::ourFiles) {
pu::String itm = inst::util::shortenString(file.string().erase(0, 6), 56, true); pu::String itm = inst::util::shortenString(file.string().erase(0, 6), 56, true);
auto ourEntry = pu::ui::elm::MenuItem::New(itm); auto ourEntry = pu::ui::elm::MenuItem::New(itm);