diff options
| author | Mikaƫl Capelle <capelle.mikael@gmail.com> | 2024-06-09 11:00:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-09 11:00:13 +0200 |
| commit | c43535f5bcf1043c3b9c00c77967267cf1acf60f (patch) | |
| tree | 455ed246fb7d6460c069573ad433e7b4cd667d17 /src/shared/util.cpp | |
| parent | 3d18f0cd38dc8b7dc980772f986944e5f9327dba (diff) | |
Update for new USVFS function scheme. (#2044)
* Update for new USVFS function scheme.
* Fix call to usvfsVersionString().
* Move USVFS to mo2 dependencies instead of third party in CI.
Diffstat (limited to 'src/shared/util.cpp')
| -rw-r--r-- | src/shared/util.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/src/shared/util.cpp b/src/shared/util.cpp index c3b4d7aa..55a76c23 100644 --- a/src/shared/util.cpp +++ b/src/shared/util.cpp @@ -246,31 +246,10 @@ VersionInfo createVersionInfo() QString getUsvfsDLLVersion() { - // once 2.2.2 is released, this can be changed to call USVFSVersionString() - // directly; until then, using GetProcAddress() allows for mixing up devbuilds - // and usvfs dlls - - using USVFSVersionStringType = const char* WINAPI(); - - QString s; - - const auto m = ::LoadLibraryW(L"usvfs_x64.dll"); - - if (m) { - auto* f = reinterpret_cast<USVFSVersionStringType*>( - ::GetProcAddress(m, "USVFSVersionString")); - - if (f) { - s = f(); - } - - ::FreeLibrary(m); - } - + QString s = usvfsVersionString(); if (s.isEmpty()) { s = "?"; } - return s; } |
