diff --git a/src/bin/kawari-patch.rs b/src/bin/kawari-patch.rs index 7f4a8de..df1b595 100644 --- a/src/bin/kawari-patch.rs +++ b/src/bin/kawari-patch.rs @@ -8,7 +8,7 @@ use axum::response::IntoResponse; use axum::routing::post; use axum::{Router, routing::get}; use kawari::config::get_config; -use kawari::patchlist::{PatchEntry, PatchList, PatchType}; +use kawari::patch::{PatchEntry, PatchList, PatchType}; fn list_patch_files(dir_path: &str) -> Vec { // If the dir doesn't exist, pretend there is no patch files diff --git a/src/lib.rs b/src/lib.rs index 0c3c43d..d5ffc63 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -3,16 +3,28 @@ use minijinja::Environment; use rand::Rng; use rand::distributions::Alphanumeric; +/// The blowfish implementation used for packet encryption. pub mod blowfish; + +/// Common functions, structures used between all servers. pub mod common; + mod compression; + +/// Config management. pub mod config; pub mod encryption; pub mod ipc; -pub mod lobby; pub mod oodle; pub mod packet; -pub mod patchlist; + +/// Patch server-specific code. +pub mod patch; + +/// Lobby server-specific code. +pub mod lobby; + +/// World server-specific code. pub mod world; // TODO: make this configurable diff --git a/src/patch/mod.rs b/src/patch/mod.rs new file mode 100644 index 0000000..d70b2da --- /dev/null +++ b/src/patch/mod.rs @@ -0,0 +1,4 @@ +mod patchlist; +pub use patchlist::PatchEntry; +pub use patchlist::PatchList; +pub use patchlist::PatchType; diff --git a/src/patchlist.rs b/src/patch/patchlist.rs similarity index 100% rename from src/patchlist.rs rename to src/patch/patchlist.rs