mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-24 08:07:45 +00:00
Add documentation for the different modules, move patchlist code
This commit is contained in:
parent
23050e7b95
commit
726d351f8b
4 changed files with 19 additions and 3 deletions
|
@ -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<String> {
|
||||
// If the dir doesn't exist, pretend there is no patch files
|
||||
|
|
16
src/lib.rs
16
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
|
||||
|
|
4
src/patch/mod.rs
Normal file
4
src/patch/mod.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
mod patchlist;
|
||||
pub use patchlist::PatchEntry;
|
||||
pub use patchlist::PatchList;
|
||||
pub use patchlist::PatchType;
|
Loading…
Add table
Reference in a new issue