mirror of
https://github.com/patarapolw/cjdic2.git
synced 2026-11-08 17:35:18 +00:00
try build current state for Android
This commit is contained in:
1 parent
519343dde2
commit
2777a0cd39
8 files changed
+64
-474
No files matched your search
+7
-6
@@ -63,17 +63,18 @@ impl Database {
|
||||
} else {
|
||||
current_dir()?.join(dir)
|
||||
};
|
||||
let mut path = path
|
||||
let path = path
|
||||
.join("yomitan.db")
|
||||
.to_string_lossy()
|
||||
.replace(r"\", r"/");
|
||||
|
||||
#[cfg(windows)]
|
||||
{
|
||||
if !path.starts_with("/") {
|
||||
path = format!("/{}", path);
|
||||
}
|
||||
}
|
||||
let path = if !path.starts_with("/") {
|
||||
format!("/{}", path)
|
||||
} else {
|
||||
path.to_string()
|
||||
};
|
||||
|
||||
let uri = format!("file:{}?mode=ro&immutable=1", path);
|
||||
|
||||
conn.execute("ATTACH DATABASE ?1 AS yomitan", [uri])?;
|
||||
|
||||
Reference in new issue
Block a user