mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +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 "Settings.h"
|
||||||
#include "SystemData.h"
|
#include "SystemData.h"
|
||||||
|
|
||||||
|
#if defined(_WIN64)
|
||||||
|
#include "views/ViewController.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <FreeImage.h>
|
#include <FreeImage.h>
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
|
|
||||||
|
@ -211,6 +215,10 @@ MDResolveHandle::MDResolveHandle(const ScraperSearchResult& result,
|
||||||
mediaFileInfo.existingMediaFile = search.game->getVideoPath();
|
mediaFileInfo.existingMediaFile = search.game->getVideoPath();
|
||||||
mediaFileInfo.resizeFile = false;
|
mediaFileInfo.resizeFile = false;
|
||||||
scrapeFiles.push_back(mediaFileInfo);
|
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++) {
|
for (auto it = scrapeFiles.cbegin(); it != scrapeFiles.cend(); it++) {
|
||||||
|
|
Loading…
Reference in a new issue