mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
The entire path is now included in the debug log output if a scraped file or folder is not in the root of the game directory
This commit is contained in:
parent
8aa09fe9f5
commit
47a790ccff
|
@ -53,7 +53,16 @@ std::unique_ptr<ScraperSearchHandle> startScraperSearch(const ScraperSearchParam
|
||||||
LOG(LogDebug) << "Scraper::startScraperSearch(): Scraping system \""
|
LOG(LogDebug) << "Scraper::startScraperSearch(): Scraping system \""
|
||||||
<< params.system->getName()
|
<< params.system->getName()
|
||||||
<< (params.game->getType() == FOLDER ? "\", folder \"" : "\", game file \"")
|
<< (params.game->getType() == FOLDER ? "\", folder \"" : "\", game file \"")
|
||||||
<< params.game->getFileName() << "\"";
|
#if defined(_WIN64)
|
||||||
|
<< Utils::String::replace(
|
||||||
|
params.game->getPath().substr(
|
||||||
|
params.game->getSystemEnvData()->mStartPath.length() + 1),
|
||||||
|
"/", "\\")
|
||||||
|
#else
|
||||||
|
<< params.game->getPath().substr(
|
||||||
|
params.game->getSystemEnvData()->mStartPath.length() + 1)
|
||||||
|
#endif
|
||||||
|
<< "\"";
|
||||||
scraper_request_funcs.at(name)(params, handle->mRequestQueue, handle->mResults);
|
scraper_request_funcs.at(name)(params, handle->mRequestQueue, handle->mResults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -103,7 +112,7 @@ void ScraperSearchHandle::update()
|
||||||
// A request can add more requests to the queue while running,
|
// A request can add more requests to the queue while running,
|
||||||
// so be careful with references into the queue.
|
// so be careful with references into the queue.
|
||||||
auto& req = *(mRequestQueue.front());
|
auto& req = *(mRequestQueue.front());
|
||||||
AsyncHandleStatus status = req.status();
|
AsyncHandleStatus status {req.status()};
|
||||||
|
|
||||||
if (status == ASYNC_ERROR) {
|
if (status == ASYNC_ERROR) {
|
||||||
// Propagate error.
|
// Propagate error.
|
||||||
|
|
|
@ -108,8 +108,6 @@ class ScraperRequest : public AsyncHandle
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ScraperRequest(std::vector<ScraperSearchResult>& resultsWrite);
|
ScraperRequest(std::vector<ScraperSearchResult>& resultsWrite);
|
||||||
|
|
||||||
// Returns "true" once we're done.
|
|
||||||
virtual void update() = 0;
|
virtual void update() = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue