From 7dc2089baf24904da5bef602bb14dc964f91090d Mon Sep 17 00:00:00 2001 From: leca Date: Wed, 10 Apr 2024 22:14:29 +0300 Subject: [PATCH] readme changes --- README.md | 48 ++++++++++++++++++------------------- src/ui/guessing/game/mod.rs | 7 ------ 2 files changed, 24 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 7fa26ee..2713b07 100644 --- a/README.md +++ b/README.md @@ -4,28 +4,28 @@ This project pursues few aims: 2. I'd like to learn gtk 3. I'd like to learn japanese 4. I'd like to help others -I am learning japanese as well. I'm not native japanese speaker and even don't speak japanese at all. -I just think that there's a good way to learn languages and I'd like to try program these ways -to master my own skills and probably help others. -## building -To build this on GNU/Linux -### 1.Install dependencies for your distro: -Everything, starting with ``$`` should be run as usual user without that sign. ``#`` in the start indicated that root is necessary. -#### Arch linux: -``# sudo pacman -S glib2 rust`` -#### Debian and derivatives: -``# sudo apt install libgtk-4-dev build-essential cargo`` -### 2.Build it: -``` -cargo build -``` -then, run it: -``` -$ cargo run -``` -#### Windows -Windows sucks. -## Contributing -Contributing is welcome! Please, make an issue if you found a bug. -Ideas are welcomed as well! +I am learning japanese as well. I'm not native japanese speaker and even don't speak japanese at all. +I just think that there's a good way to learn languages and I'd like to try program these ways to master my own skills and probably help others. +## Building +### To build this on GNU/Linux +#### 1.Install dependencies for your distro: +Everything, starting with ``$`` should be run as usual user without that sign. ``#`` in the start indicated that root is necessary. + +Arch linux: `# sudo pacman -S glib2 rust`, + +Debian and derivatives: `# sudo apt install libgtk-4-dev build-essential cargo`, + +Fedora: `# sudo dnf install gtk4-devel gcc`. +#### 2.Build it: +Build: `$ cargo build`, + +then, run an application: `$ cargo run`. + +Application saves all data in $HOME/.config/learn-hieroglyph. +### To build this on Windows +I am not using Windows, so I have no idea how to install dependencies for it, fuck with that by yourself (or use a normal operating system ;) ) I am planning to cross-compile binaries for Windows. + +Application saves all data in %APPDATA%/learn-hieroglyph. +## Contributing +Contributing is welcome! Please, make an issue if you found a bug. Ideas are welcomed as well! diff --git a/src/ui/guessing/game/mod.rs b/src/ui/guessing/game/mod.rs index a25cb5e..cf31f30 100644 --- a/src/ui/guessing/game/mod.rs +++ b/src/ui/guessing/game/mod.rs @@ -25,19 +25,12 @@ impl GuessingScene { } pub fn read_settings(&self) { - println!("reading settings"); let settings = Settings::new(APP_ID); - println!("before hiragana: {}", *self.imp().hiragana.borrow()); - println!("before katakana: {}", *self.imp().katakana.borrow()); - *self.imp().ktr.borrow_mut() = settings.boolean("is-ktr-enabled"); *self.imp().rtk.borrow_mut() = settings.boolean("is-rtk-enabled"); *self.imp().hiragana.borrow_mut() = settings.boolean("is-hiragana-enabled"); *self.imp().katakana.borrow_mut() = settings.boolean("is-katakana-enabled"); - - println!("after hiragana: {}", *self.imp().hiragana.borrow()); - println!("after katakana: {}", *self.imp().katakana.borrow()); } pub fn init(&self) {