mirror of https://github.com/WerWolv/ImHex
27 lines
788 B
C++
27 lines
788 B
C++
#include <hex/plugin.hpp>
|
|
|
|
#include <hex/api/content_registry/provider.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());
|
|
hex::LocalizationManager::addLanguages(romfs::get("lang/languages.json").string(), [](const std::filesystem::path &path) {
|
|
return romfs::get(path).string();
|
|
});
|
|
|
|
hex::plugin::remote::SSHClient::init();
|
|
AT_FINAL_CLEANUP {
|
|
hex::plugin::remote::SSHClient::exit();
|
|
};
|
|
|
|
hex::ContentRegistry::Provider::add<hex::plugin::remote::SSHProvider>();
|
|
}
|