mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
getRyzenAdjExecutablePath() cross platform.
This commit is contained in:
parent
235b7e77d5
commit
a519d76281
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user