build: Fix more build issues

This commit is contained in:
WerWolv
2025-07-13 14:31:15 +02:00
parent 1570f379df
commit 830be0b0d3
4 changed files with 7 additions and 1 deletions

View File

@@ -67,6 +67,7 @@ vcpkg install --triplet=arm-osx-mytriplet zlib
vcpkg install --triplet=arm-osx-mytriplet bzip2 vcpkg install --triplet=arm-osx-mytriplet bzip2
vcpkg install --triplet=arm-osx-mytriplet liblzma vcpkg install --triplet=arm-osx-mytriplet liblzma
vcpkg install --triplet=arm-osx-mytriplet zstd vcpkg install --triplet=arm-osx-mytriplet zstd
vcpkg install --triplet=arm-osx-mytriplet libssh2
EOF EOF
## Install glfw3 dep ## Install glfw3 dep

View File

@@ -1161,8 +1161,8 @@ namespace hex::plugin::builtin {
next(-1); next(-1);
skipArray(200, false); skipArray(200, false);
next(-1); next(-1);
return false;
} }
return false; return false;
} else } else
return false; return false;

View File

@@ -3,6 +3,8 @@
#include <hex/helpers/logger.hpp> #include <hex/helpers/logger.hpp>
#include <wolv/utils/string.hpp> #include <wolv/utils/string.hpp>
#include <array>
#if defined(OS_WINDOWS) #if defined(OS_WINDOWS)
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif

View File

@@ -2,6 +2,7 @@
#include <imgui.h> #include <imgui.h>
#include <fonts/vscode_icons.hpp> #include <fonts/vscode_icons.hpp>
#include <hex/helpers/logger.hpp>
#include <hex/ui/imgui_imhex_extensions.h> #include <hex/ui/imgui_imhex_extensions.h>
#include <hex/helpers/utils.hpp> #include <hex/helpers/utils.hpp>
@@ -20,6 +21,7 @@ namespace hex::plugin::remote {
m_sftpClient = std::move(client); m_sftpClient = std::move(client);
} }
} catch (const std::exception& e) { } catch (const std::exception& e) {
setErrorMessage(e.what());
return false; return false;
} }
} }
@@ -101,6 +103,7 @@ namespace hex::plugin::remote {
m_sftpClient = std::move(client); m_sftpClient = std::move(client);
} }
} catch (const std::exception& e) { } catch (const std::exception& e) {
log::error("Failed to connect to SSH server: {}", e.what());
return false; return false;
} }
} }