|
@@ -1,30 +1,19 @@
|
|
-#include "../win-update/updater/manifest.hpp"
|
|
|
|
-#include "update-helpers.hpp"
|
|
|
|
-#include "shared-update.hpp"
|
|
|
|
-#include "update-window.hpp"
|
|
|
|
-#include "remote-text.hpp"
|
|
|
|
-#include "win-update.hpp"
|
|
|
|
-#include "obs-app.hpp"
|
|
|
|
|
|
+#include "AutoUpdateThread.hpp"
|
|
|
|
+#include "ui_OBSUpdate.h"
|
|
|
|
|
|
-#include <qt-wrappers.hpp>
|
|
|
|
-#include <QMessageBox>
|
|
|
|
|
|
+#include <OBSApp.hpp>
|
|
|
|
+#include <dialogs/OBSUpdate.hpp>
|
|
|
|
+#include <updater/manifest.hpp>
|
|
|
|
+#include <utility/WhatsNewInfoThread.hpp>
|
|
|
|
+#include <utility/update-helpers.hpp>
|
|
|
|
|
|
-#include <string>
|
|
|
|
-#include <mutex>
|
|
|
|
|
|
+#include <qt-wrappers.hpp>
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
#include <windows.h>
|
|
#include <shellapi.h>
|
|
#include <shellapi.h>
|
|
|
|
|
|
-#include <util/windows/WinHandle.hpp>
|
|
|
|
-#include <util/util.hpp>
|
|
|
|
-
|
|
|
|
-#ifdef BROWSER_AVAILABLE
|
|
|
|
-#include <browser-panel.hpp>
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
-using namespace std;
|
|
|
|
-using namespace updater;
|
|
|
|
|
|
+#include "moc_AutoUpdateThread.cpp"
|
|
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
|
|
@@ -50,6 +39,11 @@ using namespace updater;
|
|
|
|
|
|
/* ------------------------------------------------------------------------ */
|
|
/* ------------------------------------------------------------------------ */
|
|
|
|
|
|
|
|
+using namespace std;
|
|
|
|
+using namespace updater;
|
|
|
|
+
|
|
|
|
+extern char *GetConfigPathPtr(const char *name);
|
|
|
|
+
|
|
static bool ParseUpdateManifest(const char *manifest_data, bool *updatesAvailable, string ¬es, string &updateVer,
|
|
static bool ParseUpdateManifest(const char *manifest_data, bool *updatesAvailable, string ¬es, string &updateVer,
|
|
const string &branch)
|
|
const string &branch)
|
|
try {
|
|
try {
|