Skip to content

Commit

Permalink
v8.3.7: remove dead network servers
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Nov 8, 2024
1 parent d27d3d1 commit a6a43e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
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.6",
"version": "8.3.7",
"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 @@ -57,7 +57,7 @@ export function NetworkFrame() {
selectClass="w-full"
label={t("server") + ":"}
selected={server}
values={["netherlands", "newyork", "singapore"]}
values={["netherlands"]}
disabled={disabled}
onSelect={onServer}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/public/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface DosOptions {
workerThread: boolean,
mouseCapture: boolean,
onEvent: (event: DosEvent, ci?: any /* CommandInterface */) => void,
server: "netherlands" | "newyork" | "singapore",
server: "netherlands",
room: string,
fullScreen: boolean,
sockdriveBackend: {
Expand Down
4 changes: 2 additions & 2 deletions src/store/dos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const initialState: {
ci: boolean,
ciStartedAt: number,
network: {
server: "netherlands" | "newyork" | "singapore",
server: "netherlands",
room: string,
ipx: "connecting" | "connected" | "disconnected" | "error",
},
Expand Down Expand Up @@ -126,7 +126,7 @@ const initialState: {
driveIo: [],
},
network: {
server: (lStorage.getItem("net.server") ?? "netherlands") as any,
server: "netherlands",
room: randomRoom(),
ipx: "disconnected",
},
Expand Down
3 changes: 1 addition & 2 deletions src/window/dos/dos-runtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function useLog(ci: CommandInterface): void {
dispatch(uiSlice.actions.showToast({
message: t("preloading_sockdrive") + " " +
(isFork[name] ? "@" + name : name) + " — " +
(Math.round(preloadProgress[drive] - rest) / 1024 / 1024).toFixed(2) + "/" +
(Math.round(preloadProgress[drive] / 1024 / 1024)) + "Mb",
Math.round((preloadProgress[drive] - rest) * 100 / preloadProgress[drive]) + "%",
long: true,
}));
}
Expand Down

0 comments on commit a6a43e4

Please sign in to comment.