mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:52:26 +02:00
Replace custom app data resolution code with app.getPath
This commit is contained in:
parent
09369599fc
commit
b7315790be
1 changed files with 1 additions and 9 deletions
|
@ -26,15 +26,7 @@ var ProcessGroup = hfprocess.ProcessGroup;
|
||||||
var ProcessGroupStates = hfprocess.ProcessGroupStates;
|
var ProcessGroupStates = hfprocess.ProcessGroupStates;
|
||||||
|
|
||||||
function getApplicationDataDirectory() {
|
function getApplicationDataDirectory() {
|
||||||
var osType = os.type();
|
var rootDirectory = app.getPath('appData');
|
||||||
var rootDirectory;
|
|
||||||
if (osType == 'Windows_NT') {
|
|
||||||
rootDirectory = process.env.APPDATA;
|
|
||||||
} else if (osType == 'Darwin') {
|
|
||||||
rootDirecotry = process.env.HOME + 'Library/Application Support';
|
|
||||||
} else {
|
|
||||||
rootDirectory = '/usr/local/share';
|
|
||||||
}
|
|
||||||
return path.join(rootDirectory, '/High Fidelity/Console');
|
return path.join(rootDirectory, '/High Fidelity/Console');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue