feat: Added remote SSH file provider

This commit is contained in:
WerWolv
2025-07-13 11:24:43 +02:00
parent a89fb542b0
commit bdc108d021
22 changed files with 992 additions and 26 deletions

View File

@@ -0,0 +1,22 @@
#include <hex/plugin.hpp>
#include <hex/api/content_registry.hpp>
#include <hex/helpers/logger.hpp>
#include <pl/api.hpp>
#include <romfs/romfs.hpp>
#include <libssh2.h>
#include <content/helpers/sftp_client.hpp>
#include <content/providers/ssh_provider.hpp>
IMHEX_PLUGIN_SETUP("Remote", "WerWolv", "Reading data from remote servers") {
hex::log::debug("Using romfs: '{}'", romfs::name());
for (auto &path : romfs::list("lang"))
hex::ContentRegistry::Language::addLocalization(nlohmann::json::parse(romfs::get(path).string()));
hex::plugin::remote::SFTPClient::init();
hex::ContentRegistry::Provider::add<hex::plugin::remote::SSHProvider>();
}