From c7101be7d8a077eba563a6fd6f15ec8169eeca51 Mon Sep 17 00:00:00 2001 From: Thomas Tanner Date: Sat, 25 Jun 2016 11:47:15 +0100 Subject: Some refactoring of the spawn code and to make waitForApplication get the right error code (usually) A note: It is possible for the executed program to completely exit before MO attempts to get hold of the pid from the job handle, in which case strangeness will happen (this has always been an issue) --- src/organizercore.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/organizercore.h') diff --git a/src/organizercore.h b/src/organizercore.h index b50b3e9f..120e83fa 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -21,21 +21,28 @@ class ModListSortProxy; class PluginListSortProxy; class Profile; -namespace MOBase { template class GuessedValue; } +namespace MOBase { + template class GuessedValue; + class IModInterface; +} namespace MOShared { class DirectoryEntry; } #include +#include #include #include #include #include #include #include +#include class QNetworkReply; class QUrl; class QWidget; +#include //for HANDLE, LPDWORD + #include #include @@ -222,11 +229,7 @@ private: bool testForSteam(); - /* - * std::vector> fileMapping(const QString &dataPath, - const MOShared::DirectoryEntry *base, - const MOShared::DirectoryEntry *directoryEntry); -*/ + bool waitForProcessCompletion(HANDLE handle, LPDWORD exitCode); private slots: -- cgit v1.3.1