Skip to content

Commit

Permalink
v8.3.9: option to change ipx backend through options
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Nov 18, 2024
1 parent c08c250 commit 5c836d2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
// kiosk: true,
// background: "https://dos.zone/images/http/original/2X/f/f833b147609640191342f555d70eb07261f53c03.png/0a94af564ab81a14a27d6a67671e5416.webp",
pathPrefix: "/emulators/",
server: params.get("server"),
ipxBackend: params.get("ipxBackend"),
room: params.get("room"),
// ipx: [{
// name: "my-ipx-server",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-dos",
"version": "8.3.8",
"version": "8.3.9",
"description": "Full-featured DOS player with multiple emulator backends",
"type": "module",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/frame/network-frame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function NetworkFrame() {
const ipxLink =
network.status === "connected" ?
location.href + searchSeparator() +
"ipx=1&server=" + selected + "&room=" + room :
"ipx=1&ipxBackend=" + selected + "&room=" + room :
null;

function setRoom(room: string) {
Expand Down
4 changes: 4 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,10 @@ export const Dos: DosFn = (element: HTMLDivElement,
setIpx(options.ipx);
}

if (options.ipxBackend) {
setIpxBackend(options.ipxBackend);
}

if (options.room) {
setRoom(options.room);
}
Expand Down
1 change: 1 addition & 0 deletions src/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export interface DosOptions {
mouseCapture: boolean,
onEvent: (event: DosEvent, ci?: any /* CommandInterface */) => void,
ipx: NamedHost[],
ipxBackend: string,
room: string,
fullScreen: boolean,
sockdriveBackend: NamedHost,
Expand Down

0 comments on commit 5c836d2

Please sign in to comment.