mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 06:05:38 +00:00
(Windows) Fixed a scraping issue caused by the idiotic file locking on this OS.
This commit is contained in:
parent
04d99f15ea
commit
d05f42b3b8
|
@ -18,6 +18,10 @@
|
|||
#include "Settings.h"
|
||||
#include "SystemData.h"
|
||||
|
||||
#if defined(_WIN64)
|
||||
#include "views/ViewController.h"
|
||||
#endif
|
||||
|
||||
#include <FreeImage.h>
|
||||
#include <fstream>
|
||||
|
||||
|
@ -211,6 +215,10 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result,
|
|||
mediaFileInfo.existingMediaFile = search.game->getVideoPath();
|
||||
mediaFileInfo.resizeFile = false;
|
||||
scrapeFiles.push_back(mediaFileInfo);
|
||||
#if defined(_WIN64)
|
||||
// Required due to the idiotic file locking that exists on this operating system.
|
||||
ViewController::get()->onStopVideo();
|
||||
#endif
|
||||
}
|
||||
|
||||
for (auto it = scrapeFiles.cbegin(); it != scrapeFiles.cend(); it++) {
|
||||
|
|
Loading…
Reference in a new issue