[Paths] Fix resources path

pull/9/head
Oj 2 years ago
parent fe5cbe275b
commit 2465956c60

@ -12,7 +12,7 @@ const exeDir = dirname(app.getPath('exe'));
const installPath = /^app-[0-9]+\.[0-9]+\.[0-9]+/.test(basename(exeDir)) ? join(exeDir, '..') : null;
const moduleData = buildInfo.newUpdater ? join(userData, 'module_data') : join(userDataVersioned, 'modules');
const resourcesPath = join(process.resourcesPath, '..'); // Discord uses path and require.main.filename here because ??
const resourcesPath = join(process.resourcesPath); // Discord uses path and require.main.filename here because ??
exports.getUserData = () => userData;
exports.getUserDataVersioned = () => userDataVersioned;

Loading…
Cancel
Save