set_library

Function set_library 

Source
pub fn set_library(custom_path: &str) -> Result<(), String>
Expand description

Set a custom path to the Sciter dynamic library.

Note: Must be called first before any other function.

Returns error if the specified library can not be loaded.

ยงExample

if sciter::set_library("~/lib/sciter/bin.gtk/x64/libsciter-gtk.so").is_ok() {
  println!("loaded Sciter version {}", sciter::version());
}