Skip to content

Commit

Permalink
Change path to emulator on linux and windows
Browse files Browse the repository at this point in the history
Disable devtools
  • Loading branch information
ran-j committed Nov 7, 2020
1 parent e867c52 commit d7023a0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function createWindow () {
hasShadow: true,
webPreferences: {
nodeIntegration: true,
enableRemoteModule: true
enableRemoteModule: true,
devTools: false
},
// icon: __dirname + 'icon.png'
})
Expand Down
14 changes: 12 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const execProc = require('child_process').exec

const defaultsConfig = {
gamesPath: 'none',
pcsx2Path: 'C:\\Program Files (x86)\\PCSX2\\pcsx2.exe',
pcsx2Path: 'none',
parans: '--fullscreen --nogui',
default: true
}
Expand Down Expand Up @@ -84,7 +84,7 @@ var app = new Vue({
}
})
resolve(output)
})
}.bind(this))
})
},
extractCnf(directory, file) {
Expand Down Expand Up @@ -507,6 +507,16 @@ var app = new Vue({
if(config.gamesPath === 'none') {
config.gamesPath = path.join(require('os').homedir(), 'PCSX2/games')
}

if(config.pcsx2Path === 'none') {
const isWin = process.platform === "win32";
if(isWin) {
config.pcsx2Path = 'C:\\Program Files (x86)\\PCSX2\\pcsx2.exe'
} else {
config.pcsx2Path = '/usr/bin/PCSX2-1.4.0/PCSX2'
}
}

}
console.log("Using config", config)
this.refreshLibrary()
Expand Down

0 comments on commit d7023a0

Please # to comment.