mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-09 17:39:35 +00:00
fix for Android
This commit is contained in:
1 parent
7b75d6302e
commit
653eacf8d4
5 files changed
+30
-36
No files matched your search
@@ -29,7 +29,7 @@ pub fn run() {
|
||||
let bytes = app.fs().read(&resource_path)?;
|
||||
|
||||
// Write to app's cache dir, which IS a real writable filesystem path on Android
|
||||
let cache_dir = app.path().cache_dir()?;
|
||||
let cache_dir = app.path().app_cache_dir()?.join("vibrato");
|
||||
create_dir_all(&cache_dir)?;
|
||||
let dict_path = cache_dir.join("system.dic.zst");
|
||||
fs::write(&dict_path, &bytes)?;
|
||||
|
||||
Reference in new issue
Block a user