Skip to content

Commit

Permalink
fix: API await dialog + MCFG mount params
Browse files Browse the repository at this point in the history
  • Loading branch information
colin969 committed Mar 8, 2024
1 parent 227e175 commit f931968
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@fortawesome/fontawesome-svg-core": "1.2.36",
"@fortawesome/free-solid-svg-icons": "5.15.4",
"@fortawesome/react-fontawesome": "0.1.18",
"@fparchive/flashpoint-archive": "0.6.2",
"@fparchive/flashpoint-archive": "0.6.3",
"@types/react-virtualized": "^9.21.21",
"axios": "1.3.4",
"connected-react-router": "6.9.2",
Expand Down
1 change: 1 addition & 0 deletions src/back/curate/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ export async function makeCurationFromGame(state: BackState, gameId: string, ski
// Update curation meta fields with saved
(game as any).applicationPath = activeData.applicationPath;
(game as any).launchCommand = activeData.launchCommand;
(game as any).mountParameters = activeData.parameters || '';
}
} else {
(game as any).applicationPath = game.legacyApplicationPath;
Expand Down
8 changes: 1 addition & 7 deletions src/back/extensions/ApiImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,7 @@ export function createApiFactory(extId: string, extManifest: IExtensionManifest,
if (!openDialogFunc) { throw new Error('No suitable client for dialog func.'); }
return openDialogFunc(options);
},
awaitDialog: async (dialogId: string) => {
return new Promise<flashpoint.DialogResponse>((resolve) => {
state.resolveDialogEvents.once(dialogId, (res) => {
resolve(res);
});
});
},
awaitDialog: (dialogId: string) => awaitDialog(state, dialogId),
cancelDialog: async (dialogId: string) => {
state.socketServer.broadcast(BackOut.CANCEL_DIALOG, dialogId);
},
Expand Down

0 comments on commit f931968

Please sign in to comment.