From 68ddbc732a4d0457c94222856ec3d6ef5d48ab8c 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/libstratosphere/source/ncm/ncm_content_storage_impl.cpp b/libstratosphere/source/ncm/ncm_content_storage_impl.cpp index 2787fe0e..2fb5fef9 100644 --- a/libstratosphere/source/ncm/ncm_content_storage_impl.cpp +++ b/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();