This commit is contained in:
Sebastian Moser
2024-08-31 09:46:32 +02:00
parent 3f68b90506
commit 96942e9322
9 changed files with 100 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ use tracing::{debug, error, info, trace, warn, Instrument};
use uuid::Uuid;
use std::fs::File;
use colored::Colorize;
use std::path::Path;
use std::path::{Path, PathBuf};
use interner::shared::{VecStringPool, StringPool};
@@ -290,7 +290,12 @@ impl Instance {
pub fn load_module(&mut self, name: &str) -> MizeResult<()> {
// platform specific init code
crate::platform::any::load_module(self, name)
crate::platform::any::load_module(self, name, None)
}
pub fn load_module_at(&mut self, name: &str, path: PathBuf) -> MizeResult<()> {
// platform specific init code
crate::platform::any::load_module(self, name, Some(path))
}
pub fn namespace_from_string(&self, ns_str: String) -> MizeResult<Namespace> {