mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
NEW: support printer storage manage
jira: [STUDIO-14427] Change-Id: Ibfbbb849d9aa30dbc62ddf8aecffad6681d2c894 (cherry picked from commit dbad9dfd4adc0ea7553c9cda6d06959387762e7d)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
#include "libslic3r/Utils.hpp"
|
||||
#include "NetworkAgent.hpp"
|
||||
|
||||
|
||||
#include "slic3r/Utils/FileTransferUtils.hpp"
|
||||
|
||||
using namespace BBL;
|
||||
|
||||
@@ -286,6 +286,9 @@ int NetworkAgent::initialize_network_module(bool using_backup)
|
||||
}
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", successfully loaded library %1%, module %2%")%library %netwoking_module;
|
||||
|
||||
// load file transfer interface
|
||||
InitFTModule(netwoking_module);
|
||||
|
||||
//load the functions
|
||||
check_debug_consistent_ptr = reinterpret_cast<func_check_debug_consistent>(get_network_function("bambu_network_check_debug_consistent"));
|
||||
get_version_ptr = reinterpret_cast<func_get_version>(get_network_function("bambu_network_get_version"));
|
||||
@@ -394,6 +397,7 @@ int NetworkAgent::initialize_network_module(bool using_backup)
|
||||
int NetworkAgent::unload_network_module()
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << boost::format(", network module %1%")%netwoking_module;
|
||||
UnloadFTModule();
|
||||
#if defined(_MSC_VER) || defined(_WIN32)
|
||||
if (netwoking_module) {
|
||||
FreeLibrary(netwoking_module);
|
||||
|
||||
Reference in New Issue
Block a user