|
@ -1,10 +1,10 @@ |
|
|
use elseware::patch::patch::{PatchServerState, generate_patch_tree, load_config, load_motd};
|
|
|
|
|
|
|
|
|
use elseware::patch::patch::{PatchServerState, generate_patch_tree, load_config_env, load_motd};
|
|
|
use log::{info};
|
|
|
use log::{info};
|
|
|
use elseware::common::mainloop::patch_mainloop;
|
|
|
use elseware::common::mainloop::patch_mainloop;
|
|
|
|
|
|
|
|
|
fn main() {
|
|
|
fn main() {
|
|
|
info!("[patch] starting server");
|
|
|
info!("[patch] starting server");
|
|
|
let patch_config = load_config();
|
|
|
|
|
|
|
|
|
let patch_config = load_config_env();
|
|
|
let patch_motd = load_motd();
|
|
|
let patch_motd = load_motd();
|
|
|
let (patch_file_tree, patch_file_lookup) = generate_patch_tree(patch_config.path.as_str());
|
|
|
let (patch_file_tree, patch_file_lookup) = generate_patch_tree(patch_config.path.as_str());
|
|
|
let patch_state = PatchServerState::new(patch_file_tree, patch_file_lookup, patch_motd);
|
|
|
let patch_state = PatchServerState::new(patch_file_tree, patch_file_lookup, patch_motd);
|
|
|