Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
62ae594
Begin: new settings system
ur-fault Jan 28, 2026
ba3745b
Update: config! and friends to sep file
ur-fault Jan 29, 2026
e1fb37f
Update: sep to model.rs, Begin: loading settings
ur-fault Jan 29, 2026
ddd1a61
Update: move static files to their dir
ur-fault Jan 29, 2026
a56825a
Update: move style browser to ui::usecase
ur-fault Jan 29, 2026
d393245
Update: move stuff, Add: integrate new config, Fix: crash on empty pr…
ur-fault Jan 30, 2026
29a0caf
Fix: warnings, rename paths constants
ur-fault Jan 30, 2026
45fd977
Add: Deref for settings instead of read()
ur-fault Jan 30, 2026
b3e8f6f
Revert: back to Settings::read(), Add: show settings errors
ur-fault Jan 31, 2026
1b3c966
Update: PresetList -> tuple struct
ur-fault Jan 31, 2026
7f99d38
Fix: don't report missing ui settings file
ur-fault Jan 31, 2026
86eef04
Fix: remove useless Partial -> Config conv
ur-fault Jan 31, 2026
c5064cf
Add: specific problems reporting, Fix: wrong preset format
ur-fault Jan 31, 2026
e5b708e
Fix: code style/format
ur-fault Jan 31, 2026
9900ee5
Update: mutex in settings -> arc swap
ur-fault Feb 1, 2026
e942084
Add: change settings, dump to file, load from file
ur-fault Feb 8, 2026
6e3fd19
Fix: handling of limits in menu sliders
ur-fault Feb 8, 2026
c975ae8
Update: skip null fields in ser.
ur-fault Feb 8, 2026
b845265
Add: control settings
ur-fault Feb 8, 2026
330ef67
Fix: -F local_paths build
ur-fault Feb 8, 2026
551d496
Fix: build on non-unix OS
ur-fault Feb 8, 2026
1ee856a
Add: resetting values in settings, Update: sound player volume change
ur-fault Feb 8, 2026
79c74cb
Fix: remove old settings
ur-fault Feb 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions cmaze/src/algorithms/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ pub type Algorithm = (String, Params);

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MazeSpec {
// /// Size of the maze.
// pub size: Dims3D,
/// Specification of the maze.
#[serde(default, flatten)]
pub inner_spec: MazeSpecType,
Expand Down
3 changes: 2 additions & 1 deletion cmaze/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ impl<T: Clone> Array3D<T> {
}

pub fn get_mut(&mut self, pos: impl Into<Dims3D>) -> Option<&mut T> {
self.dim_to_idx(pos.into()).and_then(move |i| self.buf.get_mut(i))
self.dim_to_idx(pos.into())
.and_then(move |i| self.buf.get_mut(i))
}
}

Expand Down
12 changes: 12 additions & 0 deletions cmaze/src/dims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,18 @@ impl Mul<f32> for Dims3D {
}
}

impl Mul<f64> for Dims3D {
type Output = Dims3D;

fn mul(self, other: f64) -> Dims3D {
Dims3D(
(self.0 as f64 * other).round() as i32,
(self.1 as f64 * other).round() as i32,
(self.2 as f64 * other).round() as i32,
)
}
}

impl MulAssign<i32> for Dims3D {
fn mul_assign(&mut self, other: i32) {
self.0 *= other;
Expand Down
4 changes: 3 additions & 1 deletion tmaze/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ derivative = "2.2.0"
unicode-width = "0.1.14"
thiserror = "2"
chrono = { version = "0.4.38", features = ["serde"] }
log = "0.4"
log = { version = "0.4", features = ["serde"] }
smallvec = { version = "1.13.2", features = ["const_generics"] }
hashbrown = { version = "0.14", features = ["serde"] }
toml = "0.8"
json5 = "0.4.1"
serde_json = "1.0.137"
paste = "1.0.15"
arc-swap = "1.8.0"

# optional
crates_io_api = { version = "0.11.0", optional = true, default-features = false, features = ["rustls"] }
Expand Down
Loading