git.lucas.co / cce-ui
GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git

commit55b5d6a210193917b35600be2d19688df6ed85e6
parentde6d84d718
authorLucas Galante <[email protected]>
date2026-07-06 21:46
Remove superceded get_input_path function and replace calls with get_config_path

 src/config.rs                        | 4 +---
 src/widget/input/keybinds_control.rs | 4 ++--
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/config.rs b/src/config.rs
index 87c5c3e..faf1a1c 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -460,9 +460,7 @@ pub fn get_config_path() -> std::path::PathBuf {
     dir.join("cce").join("config.kdl")
 }
 
-pub fn get_input_path() -> std::path::PathBuf {
-    get_config_path()
-}
+
 
 fn perform_rolling_backup(path: &str) {
     let config_path = get_config_path();
diff --git a/src/widget/input/keybinds_control.rs b/src/widget/input/keybinds_control.rs
index 067a8c0..78690c8 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_input_path();
+        let path = crate::config::get_config_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_input_path();
+        let path = crate::config::get_config_path();
         if let Some(parent) = path.parent() {
             let _ = std::fs::create_dir_all(parent);
         }