Use correct variable for log

This commit is contained in:
Vincent Cunningham 2021-02-28 20:22:34 -05:00
parent a76781bf0f
commit 56d98cae9b
No known key found for this signature in database
GPG Key ID: 2F189694BB5A9932
1 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ void CRomList::FillRomList(strlist & FileList, const char * Directory)
CPath SearchDir((const char *)m_GameDir, "*"); CPath SearchDir((const char *)m_GameDir, "*");
SearchDir.AppendDirectory(Directory); SearchDir.AppendDirectory(Directory);
WriteTrace(TraceRomList, TraceVerbose, "SearchPath: %s", (const char *)SearchPath); WriteTrace(TraceRomList, TraceVerbose, "SearchDir: %s", (const char *)SearchDir);
if (!SearchDir.FindFirst(CPath::FIND_ATTRIBUTE_ALLFILES)) if (!SearchDir.FindFirst(CPath::FIND_ATTRIBUTE_ALLFILES))
{ {
WriteTrace(TraceRomList, TraceVerbose, "No files found"); WriteTrace(TraceRomList, TraceVerbose, "No files found");
@ -165,7 +165,7 @@ void CRomList::FillRomList(strlist & FileList, const char * Directory)
do do
{ {
WriteTrace(TraceRomList, TraceVerbose, "Found: \"%s\" m_StopRefresh = %s", (const char *)SearchPath, m_StopRefresh ? "true" : "false"); WriteTrace(TraceRomList, TraceVerbose, "Found: \"%s\" m_StopRefresh = %s", (const char *)SearchDir, m_StopRefresh ? "true" : "false");
if (m_StopRefresh) if (m_StopRefresh)
{ {
WriteTrace(TraceRomList, TraceVerbose, "stop refresh set, stopping"); WriteTrace(TraceRomList, TraceVerbose, "stop refresh set, stopping");