getRyzenAdjExecutablePath() cross platform.

This commit is contained in:
Quentin DECAUNES 2019-03-11 12:58:49 +01:00
parent 235b7e77d5
commit a519d76281

View File

@ -108,10 +108,10 @@ function notification(type, message) {
function getRyzenAdjExecutablePath() { function getRyzenAdjExecutablePath() {
const settings = require('electron-settings'); const settings = require('electron-settings');
var ryzen_adj_path = settings.get('settings.ryzen_adj_path'); var ryzen_adj_path = settings.get('settings.ryzen_adj_path');
if (!ryzen_adj_path) { if (!ryzen_adj_path && require('os').platform === 'win32') {
ryzen_adj_path = getCurrentWorkingDirectory() + "\\bin\\ryzenadj.exe"; ryzen_adj_path = getCurrentWorkingDirectory() + "\\bin\\ryzenadj.exe";
} }
appendLog(`getRyzenAdjExecutablePath(): ${ryzen_adj_path}`); appendLog(`getRyzenAdjExecutablePath(): "${ryzen_adj_path}"`);
return ryzen_adj_path; return ryzen_adj_path;
} }