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

@@ -269,6 +269,21 @@ export default class Downloads extends React.Component<IProps, IState> {
</BigButton>
</div>
</div>
<Divider />
<div className='DownloadMenuSection' id="downloadMenuContainerResources">
<div className='DownloadLabel' id="downloadMenuLabelResources">
<Tr text="downloads.game" />
<HelpButton>
<Tr text="help.game" />
</HelpButton>
</div>
<div className='DownloadValue' id="downloadMenuButtonResources">
<BigButton disabled={this.state.resources_downloading || !this.state.grasscutter_set || this.state.resources_exist} onClick={this.downloadResources} id="resourcesBtn" >
<Tr text="components.download" />
</BigButton>
</div>
</div>
</Menu>
)
}

View File

@@ -175,7 +175,7 @@ export default class Options extends React.Component<IProps, IState> {
<Tr text="options.game_exec" />
</div>
<div className='OptionValue' id="menuOptionsDirGameExec">
<DirInput onChange={this.setGameExec} value={this.state?.game_install_path} extensions={['exe']} />
<DirInput onChange={this.setGameExec} value={this.state?.game_install_path} folder={true} />
</div>
</div>
<div className='OptionSection' id="menuOptionsContainerGCJar">