1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-04-24 16:17:44 +00:00

Add documentation for the different modules, move patchlist code

This commit is contained in:
Joshua Goins 2025-03-16 15:42:46 -04:00
parent 23050e7b95
commit 726d351f8b
4 changed files with 19 additions and 3 deletions

View file

@ -8,7 +8,7 @@ use axum::response::IntoResponse;
use axum::routing::post; use axum::routing::post;
use axum::{Router, routing::get}; use axum::{Router, routing::get};
use kawari::config::get_config; 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> { fn list_patch_files(dir_path: &str) -> Vec<String> {
// If the dir doesn't exist, pretend there is no patch files // If the dir doesn't exist, pretend there is no patch files

View file

@ -3,16 +3,28 @@ use minijinja::Environment;
use rand::Rng; use rand::Rng;
use rand::distributions::Alphanumeric; use rand::distributions::Alphanumeric;
/// The blowfish implementation used for packet encryption.
pub mod blowfish; pub mod blowfish;
/// Common functions, structures used between all servers.
pub mod common; pub mod common;
mod compression; mod compression;
/// Config management.
pub mod config; pub mod config;
pub mod encryption; pub mod encryption;
pub mod ipc; pub mod ipc;
pub mod lobby;
pub mod oodle; pub mod oodle;
pub mod packet; 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; pub mod world;
// TODO: make this configurable // TODO: make this configurable

4
src/patch/mod.rs Normal file
View file

@ -0,0 +1,4 @@
mod patchlist;
pub use patchlist::PatchEntry;
pub use patchlist::PatchList;
pub use patchlist::PatchType;