Fix the extractor's assumption that found files are always in the working directory (x64/build/soh). (#6243)
This commit is contained in:
@@ -238,7 +238,7 @@ void Extractor::GetRoms(std::vector<std::string>& roms) {
|
|||||||
|
|
||||||
// Check for any standard N64 rom file extensions.
|
// Check for any standard N64 rom file extensions.
|
||||||
if ((strcmp(ext, ".z64") == 0) || (strcmp(ext, ".n64") == 0) || (strcmp(ext, ".v64") == 0))
|
if ((strcmp(ext, ".z64") == 0) || (strcmp(ext, ".n64") == 0) || (strcmp(ext, ".v64") == 0))
|
||||||
roms.push_back(ffd.cFileName);
|
roms.push_back(mSearchPath + "\\" + ffd.cFileName);
|
||||||
}
|
}
|
||||||
} while (FindNextFileA(h, &ffd) != 0);
|
} while (FindNextFileA(h, &ffd) != 0);
|
||||||
// if (h != nullptr) {
|
// if (h != nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user