diff --git a/src/proxy/proxypython.cpp b/src/proxy/proxypython.cpp index 5d72e29..0ed3b4b 100644 --- a/src/proxy/proxypython.cpp +++ b/src/proxy/proxypython.cpp @@ -73,6 +73,7 @@ QString ExtractResource(WORD resourceID, const QString &szFilename) UnmapViewOfFile(lpAddress); CloseHandle(hFileMap); + ::FlushFileBuffers(hFile); CloseHandle(hFile); return outFile; diff --git a/src/runner/uibasewrappers.h b/src/runner/uibasewrappers.h index af25b6d..cbfcc39 100644 --- a/src/runner/uibasewrappers.h +++ b/src/runner/uibasewrappers.h @@ -220,6 +220,7 @@ struct IOrganizerWrapper: MOBase::IOrganizer, boost::python::wrapperget_override("resolvePath")(fileName); } virtual QStringList listDirectories(const QString &directoryName) const { return this->get_override("listDirectories")(directoryName); } virtual QStringList findFiles(const QString &path, const std::function &filter) const { return this->get_override("findFiles")(path, filter); } + virtual QStringList getFileOrigins(const QString &fileName) const { return this->get_override("getFileOrigins")(fileName); } virtual QList findFileInfos(const QString &path, const std::function &filter) const { return this->get_override("findFileInfos")(path, filter); } virtual HANDLE startApplication(const QString &executable, const QStringList &args = QStringList(), const QString &cwd = "", const QString &profile = "") { return this->get_override("startApplication")(executable, args, cwd, profile); } virtual bool waitForApplication(HANDLE handle, LPDWORD exitCode = NULL) const { return this->get_override("waitForApplication")(handle, exitCode); }