mirror of
https://github.com/szymon-jozef/checkers.git
synced 2026-10-27 19:20:44 +01:00
docs: some stupid comments
This commit is contained in:
@@ -26,6 +26,7 @@ use crate::{
|
|||||||
settings::{general_settings::SettingsLike, server_settings::ServerSettings},
|
settings::{general_settings::SettingsLike, server_settings::ServerSettings},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// TODO! Maybe move this somewhere more global and share with `board` struct
|
||||||
const MAX_PLAYABLE_CONNECTIONS: usize = 2; // DON'T EVER CHANGE THIS AS GAME OF CHECKERS HAS ONLY TWO PLAYERS, U
|
const MAX_PLAYABLE_CONNECTIONS: usize = 2; // DON'T EVER CHANGE THIS AS GAME OF CHECKERS HAS ONLY TWO PLAYERS, U
|
||||||
// UNDERSTAND????
|
// UNDERSTAND????
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -47,6 +47,11 @@ pub trait SettingsLike: Serialize + DeserializeOwned + Default {
|
|||||||
let settings = Self::default();
|
let settings = Self::default();
|
||||||
|
|
||||||
if let Err(e) = settings.save_to_file() {
|
if let Err(e) = settings.save_to_file() {
|
||||||
|
// this kinda destroys original file if it has
|
||||||
|
// content that is invalid, i'm not sure if i
|
||||||
|
// like this, but i'll keep it for now.
|
||||||
|
//
|
||||||
|
// ADDING TODO! SO I DONT FORGET AGOUT THIS
|
||||||
warn!("Could not save server settings to the file, because: {}", e);
|
warn!("Could not save server settings to the file, because: {}", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user