mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 16:23:39 +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;
|
||||
|
||||
function getApplicationDataDirectory() {
|
||||
var osType = os.type();
|
||||
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';
|
||||
}
|
||||
var rootDirectory = app.getPath('appData');
|
||||
return path.join(rootDirectory, '/High Fidelity/Console');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue