Autopatching on game launch

Plus adding some non-functional options for later
Need to add support for Chinese version of the game
This commit is contained in:
Benj
2022-07-07 01:25:54 +08:00
parent 6124d6949c
commit 99687f0550
12 changed files with 183 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
use std::fs;
use file_diff::diff;
#[tauri::command]
pub fn rename(path: String, new_name: String) {
@@ -32,4 +33,9 @@ pub fn dir_is_empty(path: &str) -> bool {
#[tauri::command]
pub fn dir_delete(path: &str) {
fs::remove_dir_all(path).unwrap();
}
#[tauri::command]
pub fn are_files_identical(path1: &str, path2: &str) -> bool {
return diff(path1, path2);
}