Skip to content

Commit

Permalink
Merge pull request #414 from oblivioncth/bugfix/abs_ext_fp_path
Browse files Browse the repository at this point in the history
Resolve absolute Flashpoint path for services/extensions
  • Loading branch information
colin969 authored Nov 16, 2023
2 parents aba5c4f + 239e1a3 commit 13b432b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/back/extensions/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export async function parseAppVar(extId: string, appPath: string, launchCommand:
case 'arch': return process.arch;
case 'launchCommand': return launchCommand;
case 'cwd': return fixSlashes(process.cwd());
case 'fpPath': return state.config ? fixSlashes(state.config.flashpointPath) : '';
case 'fpPath': return state.config ? path.resolve(fixSlashes(state.config.flashpointPath)) : '';
case 'proxy': return state.preferences.browserModeProxy || '';
default: {
if (name.startsWith('extConf:')) {
Expand Down
2 changes: 1 addition & 1 deletion src/shared/Util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ export function parseVarStr(str: string, config?: AppConfigData) {
return parseVariableString(str, (name) => {
switch (name) {
case 'cwd': return fixSlashes(process.cwd());
case 'fpPath': return config ? fixSlashes(config.flashpointPath) : '';
case 'fpPath': return config ? path.resolve(fixSlashes(config.flashpointPath)) : '';
default: return '';
}
});
Expand Down

0 comments on commit 13b432b

Please sign in to comment.