mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add custom launch options to game
This commit is contained in:
parent
83e662f633
commit
520eb91a55
15 changed files with 155 additions and 8 deletions
|
@ -104,6 +104,8 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
ipcRenderer.invoke("createGameShortcut", id),
|
||||
updateExecutablePath: (id: number, executablePath: string | null) =>
|
||||
ipcRenderer.invoke("updateExecutablePath", id, executablePath),
|
||||
updateLaunchOptions: (id: number, launchOptions: string | null) =>
|
||||
ipcRenderer.invoke("updateLaunchOptions", id, launchOptions),
|
||||
selectGameWinePrefix: (id: number, winePrefixPath: string | null) =>
|
||||
ipcRenderer.invoke("selectGameWinePrefix", id, winePrefixPath),
|
||||
verifyExecutablePathInUse: (executablePath: string) =>
|
||||
|
@ -115,8 +117,11 @@ contextBridge.exposeInMainWorld("electron", {
|
|||
ipcRenderer.invoke("openGameInstallerPath", gameId),
|
||||
openGameExecutablePath: (gameId: number) =>
|
||||
ipcRenderer.invoke("openGameExecutablePath", gameId),
|
||||
openGame: (gameId: number, executablePath: string) =>
|
||||
ipcRenderer.invoke("openGame", gameId, executablePath),
|
||||
openGame: (
|
||||
gameId: number,
|
||||
executablePath: string,
|
||||
launchOptions: string | null
|
||||
) => ipcRenderer.invoke("openGame", gameId, executablePath, launchOptions),
|
||||
closeGame: (gameId: number) => ipcRenderer.invoke("closeGame", gameId),
|
||||
removeGameFromLibrary: (gameId: number) =>
|
||||
ipcRenderer.invoke("removeGameFromLibrary", gameId),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue