mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-22 20:47:45 +00:00
Add physis dependency
This commit is contained in:
parent
0c08d59fd3
commit
01e05ca887
3 changed files with 25 additions and 1 deletions
22
external/CMakeLists.txt
vendored
22
external/CMakeLists.txt
vendored
|
@ -1 +1,23 @@
|
|||
add_subdirectory(libxiv)
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
Corrosion
|
||||
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
|
||||
GIT_TAG v0.2.1
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(Corrosion)
|
||||
|
||||
FetchContent_Declare(
|
||||
libphysis
|
||||
GIT_REPOSITORY https://git.sr.ht/~redstrate/libphysis
|
||||
GIT_TAG main
|
||||
)
|
||||
|
||||
FetchContent_MakeAvailable(libphysis)
|
||||
|
||||
corrosion_import_crate(MANIFEST_PATH ${libphysis_SOURCE_DIR}/Cargo.toml)
|
||||
|
||||
target_include_directories(physis INTERFACE ${libphysis_SOURCE_DIR}/target/public)
|
|
@ -39,6 +39,7 @@ target_include_directories(astra_core PUBLIC
|
|||
include)
|
||||
target_link_libraries(astra_core PUBLIC
|
||||
libxiv
|
||||
physis
|
||||
${LIBRARIES}
|
||||
Qt5::Core
|
||||
Qt5::Network
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include <QRegularExpressionMatch>
|
||||
#include <algorithm>
|
||||
#include <QTcpServer>
|
||||
#include <physis.hpp>
|
||||
|
||||
#include "launchercore.h"
|
||||
#include "sapphirelauncher.h"
|
||||
|
@ -500,7 +501,7 @@ void LauncherCore::readGameVersion() {
|
|||
profile->bootVersion = readVersion(profile->gamePath + "/boot/ffxivboot.ver");
|
||||
|
||||
auto sqpackDirectories = QDir(profile->gamePath + "/game/sqpack/").entryList(QDir::Filter::Dirs | QDir::Filter::NoDotAndDotDot);
|
||||
profile->gameVersions.resize(sqpackDirectories.size());
|
||||
profile->gameVersions.resize(sqpackDirectories.size() + 1);
|
||||
|
||||
for(auto dir : sqpackDirectories) {
|
||||
if(dir.contains("ex") || dir == "ffxiv") {
|
||||
|
|
Loading…
Add table
Reference in a new issue