Skip to content

Commit

Permalink
Update MainView.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Madman10K authored Oct 24, 2024
1 parent 846e915 commit 5c7551d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/MainView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ void UntitledIBusHandwriting::MainView::begin()
lib = URLL::dlopen(UIBUS_HANDWRITE_HANZI_LOOKUP_DIR"libhanzi_lookup.so");
if (lib == nullptr)
{
Logger::log("Died at loading the library from Rust. Error: ", UVKLog::UVK_LOG_TYPE_ERROR, URLL::dlerror());
Logger::log("Died at loading the library from Rust. Error: ", ULOG_LOG_TYPE_ERROR, URLL::dlerror());
UImGui::Instance::shutdown();
}

if (URLL::dlsym(lib, "c_lib_main", loadData) != lib)
{
Logger::log("Died at loading c_lib_main from Rust. Error: ", UVKLog::UVK_LOG_TYPE_ERROR, URLL::dlerror());
Logger::log("Died at loading c_lib_main from Rust. Error: ", ULOG_LOG_TYPE_ERROR, URLL::dlerror());
UImGui::Instance::shutdown();
return;
}
if (URLL::dlsym(lib, "c_lib_main_cleanup", deallocateLoadedData) != lib)
{
Logger::log("Died at loading c_lib_main_cleanup from Rust. Error: ", UVKLog::UVK_LOG_TYPE_ERROR, URLL::dlerror());
Logger::log("Died at loading c_lib_main_cleanup from Rust. Error: ", ULOG_LOG_TYPE_ERROR, URLL::dlerror());
UImGui::Instance::shutdown();
return;
}
Expand Down

0 comments on commit 5c7551d

Please sign in to comment.