From d93ed644f6149ab61ae9654368578ffefefe28c4 Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Sat, 4 Aug 2018 01:03:29 -0700 Subject: [PATCH] am: Return empty path string for non-existent content indices. --- src/core/hle/service/am/am.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 534ff1cbb..a57c1e67c 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp @@ -404,6 +404,7 @@ std::string GetTitleContentPath(Service::FS::MediaType media_type, u64 tid, u16 } else { LOG_ERROR(Service_AM, "Attempted to get path for non-existent content index {:04x}.", index); + return ""; } // TODO(shinyquagsire23): how does DLC actually get this folder on hardware?