mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-16 09:04:45 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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'})
|
||||
}
|
||||
Reference in New Issue
Block a user