Skip to content

Commit cee06b1

Browse files
Matt Boroidracc
authored andcommitted
fix(xbescanner): scan paths missing trailing slashes
An issue loading directories/files is experienced when a trailing backslash is not included in the config menu scan path, the dashboard menu result is '<empty>'. The default, sampleconfig.json, includes menu scan paths without a trailing backslash and so it was expected.
1 parent 3188142 commit cee06b1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/xbeScanner.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ XBEScanner::QueueItem::~QueueItem() {
9292
void XBEScanner::QueueItem::scan() {
9393
#ifdef NXDK
9494
if (dirHandle == INVALID_HANDLE_VALUE) {
95+
auto pathEnd = &path.back();
96+
if (strcmp(pathEnd, "\\") != 0) {
97+
path.append("\\");
98+
}
9599
InfoLog::outputLine(InfoLog::INFO, "Starting scan of %s", path.c_str());
96100
results.clear();
97101
scanStart = std::chrono::steady_clock::now();

0 commit comments

Comments
 (0)