Skip to content

Commit

Permalink
v8.1.4: bump empulators & sockdrive
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Jun 10, 2024
1 parent 3deb9b8 commit af4e6b9
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-dos",
"version": "8.1.3",
"version": "8.1.4",
"description": "Full-featured DOS player with multiple emulator backends",
"type": "module",
"keywords": [
Expand Down Expand Up @@ -35,7 +35,7 @@
"@typescript-eslint/parser": "^6.20.0",
"autoprefixer": "^10.4.17",
"daisyui": "^3.9.3",
"emulators": "8.1.2",
"emulators": "8.1.3",
"eslint": "^8.56.0",
"eslint-config-google": "^0.14.0",
"postcss": "^8.4.33",
Expand Down
2 changes: 1 addition & 1 deletion src/sockdrive
3 changes: 3 additions & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
// eslint-disable-next-line
/// <reference types="vite/client" />

// eslint-disable-next-line no-unused-vars
declare const JSDOS_VERSION: string;
4 changes: 3 additions & 1 deletion src/window/dos/dos-runtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ function useLog(ci: CommandInterface): void {
} else if (msgType === "log" && args[0]?.indexOf("sockdrive:") !== -1) {
const drive = args[0].substring(args[0].indexOf(" ") + 1, args[0].indexOf(","));
dispatch(uiSlice.actions.cloudSaves(false));
if (args[0]?.indexOf("write=false") !== -1) {
if (args[0]?.indexOf("write=") !== -1) {
console.log("drive", drive, "config:", args[0]);
}
if (args[0]?.indexOf("write=false") !== -1) {
dispatch(uiSlice.actions.readOnlyWarning(true));
}
if (args[0]?.indexOf("preload=") !== -1) {
Expand Down
8 changes: 3 additions & 5 deletions src/window/prerun-window.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ declare const emulators: Emulators;
export function PreRunWindow() {
const account = useSelector((state: State) => state.auth.account);
const emuVersion = useSelector((state: State) => state.dos.emuVersion);
const lang = useSelector((state: State) => state.i18n.lang);
const dispatch = useDispatch();
const t = useT();

Expand All @@ -22,9 +21,7 @@ export function PreRunWindow() {
}

function openPremiumPage() {
window.open(lang === "ru" ?
"https://dos.zone/ru/blog/premium-subscription/" :
"https://dos.zone/blog/premium-subscription/", "_blank");
window.open("https://js-dos.com/cloud-overview.html", "_blank");
}

return <div class="pre-run-window">
Expand Down Expand Up @@ -82,7 +79,8 @@ export function PreRunWindow() {
<MouseSensitiviySlider class="mt-4 w-full max-w-sm" />
<VolumeSlider class="w-full max-w-sm" />

<div class="text-center mt-8">emu-version: <span class="text-ellipsis overflow-hidden">{emuVersion}</span></div>
<div class="text-center mt-8">jsdos/emu version:&nbsp;
<span class="text-ellipsis overflow-hidden">{JSDOS_VERSION}/{emuVersion}</span></div>
</div>;
}

Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ export default defineConfig({
},
},
},
define: {
JSDOS_VERSION: JSON.stringify(process.env.npm_package_version),
},
});
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1154,10 +1154,10 @@ electron-to-chromium@^1.4.648:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.653.tgz#832ab25e80ad698ac09c1ca547bd9ee6cce7df10"
integrity sha512-wA2A2LQCqnEwQAvwADQq3KpMpNwgAUBnRmrFgRzHnPhbQUFArTR32Ab46f4p0MovDLcg4uqd4nCsN2hTltslpA==

[email protected].2:
version "8.1.2"
resolved "https://registry.yarnpkg.com/emulators/-/emulators-8.1.2.tgz#15dfc1045f0b05ccda70a49be59ae435db5f15ea"
integrity sha512-1cagI2XUN8b3TixCyERjr+wRWfcnM5a00i8ZM20kRhZp4zfvNo/CNgAyyJS9xxW5DGpNct9iTAVYCND7oZK9ZQ==
[email protected].3:
version "8.1.3"
resolved "https://registry.yarnpkg.com/emulators/-/emulators-8.1.3.tgz#6267371bc85eeafe66f709ceba830cbfba7780bd"
integrity sha512-9Qkad/SJEejfks2dGAL10Jn488uIIYEtFbAc2E1BNjosO3HoWBVII2FmZBCpvhjua5jounypIC5jwtfNj9wyVw==

entities@^4.2.0:
version "4.5.0"
Expand Down

0 comments on commit af4e6b9

Please sign in to comment.