GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
Migrate all input configurations and keybindings to input.kdl
src/config.rs | 4 ++--
src/widget/input/keybinds_control.rs | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/config.rs b/src/config.rs
index 75ee8ac..dfe01e4 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -374,8 +374,8 @@ pub fn get_config_path() -> std::path::PathBuf {
dir.join("cce").join("config.kdl")
}
-pub fn get_keybinds_path() -> std::path::PathBuf {
- get_config_path().parent().unwrap().to_path_buf().join("keybinds.kdl")
+pub fn get_input_path() -> std::path::PathBuf {
+ get_config_path().parent().unwrap().to_path_buf().join("input.kdl")
}
fn perform_rolling_backup(path: &str) {
diff --git a/src/widget/input/keybinds_control.rs b/src/widget/input/keybinds_control.rs
index e2862d9..159ed09 100644
--- a/src/widget/input/keybinds_control.rs
+++ b/src/widget/input/keybinds_control.rs
@@ -53,7 +53,7 @@ impl KeybindsControl {
}
pub fn load_from_config(&mut self) {
- let path = crate::config::get_keybinds_path();
+ let path = crate::config::get_input_path();
let content = std::fs::read_to_string(&path).unwrap_or_default();
let val = crate::config::parse_kdl_to_json(&content);
let mut loaded = Vec::new();
@@ -104,7 +104,7 @@ impl KeybindsControl {
}
pub fn save_to_config(&self) {
- let path = crate::config::get_keybinds_path();
+ let path = crate::config::get_input_path();
if let Some(parent) = path.parent() {
let _ = std::fs::create_dir_all(parent);
}