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

@@ -7,7 +7,8 @@ let defaultConfig: Configuration
(async() => {
defaultConfig = {
toggle_grasscutter: false,
game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game\\GenshinImpact.exe',
game_install_path: 'C:\\Program Files\\Genshin Impact\\Genshin Impact game',
game_version: 'global',
grasscutter_with_game: false,
grasscutter_path: '',
java_path: '',
@@ -30,6 +31,7 @@ let defaultConfig: Configuration
export interface Configuration {
toggle_grasscutter: boolean
game_install_path: string
game_version: string
grasscutter_with_game: boolean
grasscutter_path: string
java_path: string

View File

@@ -1,6 +0,0 @@
import { invoke } from '@tauri-apps/api'
export async function patchMetadata() {
console.log('patching')
await invoke('patch_metadata', {metadataFolder: 'C:\\Users\\benja\\Desktop'})
}