forked from nonsensical-dev/zenyx-engine
exec .zenshell files + shell extensions
Co-authored-by: Tristan Poland (Trident_For_U) <tristanpoland@users.noreply.github.com>
This commit is contained in:
parent
8cf6716a09
commit
0cf7e3e60d
16 changed files with 494 additions and 37 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
use anyhow::Result;
|
||||
use log::LevelFilter;
|
||||
use plugin_api::plugin_imports::*;
|
||||
use plugin_api::{get_plugin, PluginManager};
|
||||
|
||||
pub mod core;
|
||||
pub mod utils;
|
||||
|
@ -10,20 +12,26 @@ use utils::{logger::LOGGER, splash::print_splash};
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let t = zephyr::add(0, 2);
|
||||
println!("{}", t);
|
||||
// Load all plugins
|
||||
|
||||
log::set_logger(&*LOGGER).ok();
|
||||
log::set_max_level(LevelFilter::Debug);
|
||||
log::set_max_level(LevelFilter::Off);
|
||||
|
||||
print_splash();
|
||||
let mut plugin_manager = PluginManager::new();
|
||||
let plugins = plugin_manager.load_all();
|
||||
println!("Plugins loaded: {:?}", plugins);
|
||||
|
||||
// Get the player plugin
|
||||
let player_lib = get_plugin!(player_lib, plugins);
|
||||
player_lib.test();
|
||||
|
||||
LOGGER.write_to_stdout();
|
||||
|
||||
let shell_thread = tokio::task::spawn(async { core::repl::repl::handle_repl().await });
|
||||
|
||||
core::init_renderer()?;
|
||||
let _ = shell_thread.await?;
|
||||
let _ = shell_thread.await??;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue