diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2025-05-29 11:04:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-29 11:04:36 +0200 |
| commit | 39210af3e59c929cba6de2d39ef1c32835f6388b (patch) | |
| tree | b77879fa376e7bfa016b14aa7635e7202b6cc69e /src/selfupdater.h | |
| parent | 3a8ea3cccee06397e90305e1e39a305f8b7c3cb3 (diff) | |
Move to VCPKG (#2068)
* Remove SConscript related files.
* Force-load translations from uibase and gamebryo/creation.
* Bring githubpp here and add a standalone preset.
* Switch VersionInfo -> Version for ModOrganizer2. (#2063)
* Add pre-commit hook.
* Use 7zip build from VCPKG registry.
* Use archive.dll from the bin folder instead of dlls.
Diffstat (limited to 'src/selfupdater.h')
| -rw-r--r-- | src/selfupdater.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/selfupdater.h b/src/selfupdater.h index cc68ad27..b3934084 100644 --- a/src/selfupdater.h +++ b/src/selfupdater.h @@ -22,9 +22,6 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include <map> -#include <github.h> -#include <versioninfo.h> - class Archive; class NexusInterface; class PluginContainer; @@ -43,6 +40,10 @@ class QNetworkReply; class QProgressDialog; class Settings; +#include <uibase/versioning.h> + +#include "github.h" + /** * @brief manages updates for Mod Organizer itself * This class is used to update the Mod Organizer @@ -98,7 +99,7 @@ public: /** * @return current version of Mod Organizer **/ - MOBase::VersionInfo getVersion() const { return m_MOVersion; } + MOBase::Version getVersion() const { return m_MOVersion; } signals: @@ -134,7 +135,7 @@ private slots: private: QWidget* m_Parent; - MOBase::VersionInfo m_MOVersion; + MOBase::Version m_MOVersion; NexusInterface* m_Interface; QFile m_UpdateFile; QNetworkReply* m_Reply; @@ -146,7 +147,7 @@ private: // Map from version to release, in decreasing order (first element is the latest // release): - using CandidatesMap = std::map<MOBase::VersionInfo, QJsonObject, std::greater<>>; + using CandidatesMap = std::map<MOBase::Version, QJsonObject, std::greater<>>; CandidatesMap m_UpdateCandidates; }; |
