diff --git a/src/ui/components/ServerLaunchSection.tsx b/src/ui/components/ServerLaunchSection.tsx index 313eebe..cf23f9d 100644 --- a/src/ui/components/ServerLaunchSection.tsx +++ b/src/ui/components/ServerLaunchSection.tsx @@ -54,7 +54,6 @@ export default class ServerLaunchSection extends React.Component<{}, IState> { this.toggleGrasscutter = this.toggleGrasscutter.bind(this) this.playGame = this.playGame.bind(this) this.launchAkebi = this.launchAkebi.bind(this) - this.launch3dm = this.launch3dm.bind(this) this.setIp = this.setIp.bind(this) this.setPort = this.setPort.bind(this) this.toggleHttps = this.toggleHttps.bind(this) @@ -193,18 +192,6 @@ export default class ServerLaunchSection extends React.Component<{}, IState> { await this.playGame(config.akebi_path, gameExec) } - async launch3dm() { - const config = await getConfig() - - // First launch 3dm - invoke('run_program', { - path: config.migoto_path, - }) - - // Then play the game as normal - await this.playGame() - } - setIp(text: string) { this.setState({ ip: text, @@ -282,9 +269,6 @@ export default class ServerLaunchSection extends React.Component<{}, IState> { - - 3DM - )} diff --git a/src/ui/components/menu/Options.tsx b/src/ui/components/menu/Options.tsx index e7cfec9..8e7e9bf 100644 --- a/src/ui/components/menu/Options.tsx +++ b/src/ui/components/menu/Options.tsx @@ -37,7 +37,6 @@ interface IState { // Swag stuff akebi_path: string - migoto_path: string } export default class Options extends React.Component { @@ -61,14 +60,12 @@ export default class Options extends React.Component { // Swag stuff akebi_path: '', - migoto_path: '', } this.setGameExecutable = this.setGameExecutable.bind(this) this.setGrasscutterJar = this.setGrasscutterJar.bind(this) this.setJavaPath = this.setJavaPath.bind(this) this.setAkebi = this.setAkebi.bind(this) - this.setMigoto = this.setMigoto.bind(this) this.toggleGrasscutterWithGame = this.toggleGrasscutterWithGame.bind(this) this.setCustomBackground = this.setCustomBackground.bind(this) this.toggleEncryption = this.toggleEncryption.bind(this) @@ -140,14 +137,6 @@ export default class Options extends React.Component { }) } - setMigoto(value: string) { - setConfigOption('migoto_path', value) - - this.setState({ - migoto_path: value, - }) - } - async setLanguage(value: string) { await setConfigOption('language', value) window.location.reload() @@ -319,14 +308,6 @@ export default class Options extends React.Component { - )} diff --git a/src/utils/configuration.ts b/src/utils/configuration.ts index c2f2e00..f3c3c06 100644 --- a/src/utils/configuration.ts +++ b/src/utils/configuration.ts @@ -50,7 +50,6 @@ export interface Configuration { // Swag stuff akebi_path?: string - migoto_path?: string } export async function setConfigOption(key: K, value: Configuration[K]): Promise {