mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 16:14:48 +01:00
generate and install cert based on config setting
This commit is contained in:
@@ -17,6 +17,7 @@ let defaultConfig: Configuration
|
||||
last_port: '',
|
||||
language: 'en',
|
||||
customBackground: '',
|
||||
cert_generated: false,
|
||||
}
|
||||
})()
|
||||
|
||||
@@ -35,6 +36,7 @@ export interface Configuration {
|
||||
last_port: string
|
||||
language: string
|
||||
customBackground: string
|
||||
cert_generated: boolean
|
||||
}
|
||||
|
||||
export async function setConfigOption(key: string, value: any): Promise<void> {
|
||||
@@ -94,7 +96,6 @@ async function readConfigFile() {
|
||||
await fs.createDir(local + 'cultivation\\grasscutter')
|
||||
}
|
||||
|
||||
|
||||
const dataFiles = await fs.readDir(local + 'cultivation')
|
||||
|
||||
// Ensure config exists
|
||||
|
||||
Reference in New Issue
Block a user