mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-15 00:24:45 +01:00
log cleanup
This commit is contained in:
@@ -65,8 +65,6 @@ export class Main extends React.Component<IProps, IState> {
|
|||||||
if (wasPatched) {
|
if (wasPatched) {
|
||||||
const unpatched = await unpatchGame()
|
const unpatched = await unpatchGame()
|
||||||
|
|
||||||
console.log(`unpatched game? ${unpatched}`)
|
|
||||||
|
|
||||||
if (!unpatched) {
|
if (!unpatched) {
|
||||||
alert(
|
alert(
|
||||||
`Could not unpatch game! (You should be able to find your metadata backup in ${await dataDir()}\\cultivation\\)`
|
`Could not unpatch game! (You should be able to find your metadata backup in ${await dataDir()}\\cultivation\\)`
|
||||||
|
|||||||
@@ -53,8 +53,6 @@ export class Mods extends React.Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async addDownload(mod: ModData) {
|
async addDownload(mod: ModData) {
|
||||||
console.log('Downloading:', mod.name)
|
|
||||||
|
|
||||||
const modFolder = await getModsFolder()
|
const modFolder = await getModsFolder()
|
||||||
const modPath = `${modFolder}${mod.id}.zip`
|
const modPath = `${modFolder}${mod.id}.zip`
|
||||||
const dlLinks = await getModDownload(String(mod.id))
|
const dlLinks = await getModDownload(String(mod.id))
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ export default class DirInput extends React.Component<IProps, IState> {
|
|||||||
directory: true,
|
directory: true,
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
console.log(this.props.openFolder)
|
|
||||||
path = await open({
|
path = await open({
|
||||||
filters: [{ name: 'Files', extensions: this.props.extensions || ['*'] }],
|
filters: [{ name: 'Files', extensions: this.props.extensions || ['*'] }],
|
||||||
defaultPath: this.props.openFolder,
|
defaultPath: this.props.openFolder,
|
||||||
|
|||||||
@@ -215,7 +215,6 @@ export default class Options extends React.Component<IProps, IState> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async restoreMetadata() {
|
async restoreMetadata() {
|
||||||
console.log(this.props)
|
|
||||||
await meta.restoreMetadata(this.props.downloadManager)
|
await meta.restoreMetadata(this.props.downloadManager)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,8 +51,6 @@ export class ModList extends React.Component<IProps, IState> {
|
|||||||
|
|
||||||
const newInfo = mod.info as PartialModData
|
const newInfo = mod.info as PartialModData
|
||||||
|
|
||||||
console.log(newInfo)
|
|
||||||
|
|
||||||
return mod
|
return mod
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user