From 97a251b4b250d067fa6dcd8e427b239047489fc5 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Mon, 12 Apr 2021 17:10:27 -0700 Subject: [PATCH] ncm: fix iteration of nested-subdirectory content files --- .../libstratosphere/source/ncm/ncm_content_storage_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/ncm/ncm_content_storage_impl.cpp b/libraries/libstratosphere/source/ncm/ncm_content_storage_impl.cpp index 2787fe0e8..2fb5fef9b 100644 --- a/libraries/libstratosphere/source/ncm/ncm_content_storage_impl.cpp +++ b/libraries/libstratosphere/source/ncm/ncm_content_storage_impl.cpp @@ -288,7 +288,7 @@ namespace ams::ncm { } /* Set the path to the parent directory. */ - this->path.Set(this->path.GetSubstring(0, i)); + this->path.Set(this->path.GetSubstring(0, i + 1)); /* Try to load again from the parent directory. */ return this->LoadEntries();