From c17509112a5ec1ded860abc869fc5f30a954acdf Mon Sep 17 00:00:00 2001 From: Alexander Guryanov Date: Tue, 21 May 2024 11:34:40 +0300 Subject: [PATCH] v8.1.0 --- gulpfile.ts/cmake.ts | 3 ++- native/sockdrive | 2 +- src/build.ts | 8 ++++---- src/dos/dosbox/cpp/worker-protocol.cpp | 4 ++-- targets/dosbox-x-sdl2.cmake | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gulpfile.ts/cmake.ts b/gulpfile.ts/cmake.ts index 6a9c855b..da5128e0 100644 --- a/gulpfile.ts/cmake.ts +++ b/gulpfile.ts/cmake.ts @@ -1,6 +1,7 @@ import * as process from "process"; import * as fs from "fs-extra"; import * as path from "path"; +import { cpus } from "os"; import { execute } from "./execute"; export default async function make(listsPath: string, @@ -22,7 +23,7 @@ export default async function make(listsPath: string, } async function makeBuild(...targets: string[]) { - await execute("ninja", "-j16", ...targets); + await execute("ninja", "-j" + cpus().length, ...targets); } async function emcmake(listsPath: string) { diff --git a/native/sockdrive b/native/sockdrive index 78bae45e..ae790d18 160000 --- a/native/sockdrive +++ b/native/sockdrive @@ -1 +1 @@ -Subproject commit 78bae45ec49c09a63ddcba48781166846c982e30 +Subproject commit ae790d18290a404d21bc2eb8034e5a5fa4509533 diff --git a/src/build.ts b/src/build.ts index cc2556a4..41dd8f0f 100644 --- a/src/build.ts +++ b/src/build.ts @@ -5,14 +5,14 @@ // gulpfile.ts/wasm.ts --> generateBuildInfo export const Build = { - version: "0.80.23 (c49efab75bfea005569c13a463cb08c1)", - buildSeed: 1714984446345, + version: "8.1.0 (a6f1c8c1274ce3a99d05b80f58468e5b)", + buildSeed: 1715896282098, "wdosbox-x.wasm": { - "size": 6525787, + "size": 6547079, "gzSize": 0 }, "wdosbox-x.js": { - "size": 252409, + "size": 252522, "gzSize": 0 }, "wdosbox.wasm": { diff --git a/src/dos/dosbox/cpp/worker-protocol.cpp b/src/dos/dosbox/cpp/worker-protocol.cpp index da797156..d10a433a 100644 --- a/src/dos/dosbox/cpp/worker-protocol.cpp +++ b/src/dos/dosbox/cpp/worker-protocol.cpp @@ -713,8 +713,8 @@ EM_ASYNC_JS(size_t, em_sockdrive_open, (const char* url, if (!Module.sockdrive) { jsImpl = UTF8ToString(jsImpl); eval(jsImpl); - Module.sockdrive.onOpen = (drive, read, write) => { - Module.log("sockdrive: " + drive + ", read=" + read + ", write=" + write); + Module.sockdrive.onOpen = (drive, read, write, imageSize, preloadQueue) => { + Module.log("sockdrive: " + drive + ", read=" + read + ", write=" + write + ", imageSize=" + Math.round(imageSize / 1024 / 1024) + "Mb" + ", preloadQueue=" + preloadQueue.length); }; Module.sockdrive.onError = (e) => { Module.err(e.message ?? "unable to open sockdrive"); diff --git a/targets/dosbox-x-sdl2.cmake b/targets/dosbox-x-sdl2.cmake index 57f6accb..669ef323 100644 --- a/targets/dosbox-x-sdl2.cmake +++ b/targets/dosbox-x-sdl2.cmake @@ -622,7 +622,8 @@ set(SOURCES_X_SDL_MAIN "${DBX_PATH}/src/hardware/mixer.cpp" "${DBX_PATH}/src/hardware/ipx.cpp" "${DBX_PATH}/src/hardware/ipxserver.cpp" - "${NATIVE_DIR}/sockdrive/SDL2/sockdrive.cpp" + "${DBX_PATH}/src/hardware/imfc.cpp" + "${NATIVE_DIR}/jsdos/sockdrive-noop.cpp" ) set(SOURCES_X_JSDOS_CORE @@ -633,7 +634,6 @@ set(SOURCES_X_JSDOS_CORE "${NATIVE_DIR}/jsdos/jsdos-support.cpp" "${NATIVE_DIR}/jsdos/jsdos-events.cpp" "${NATIVE_DIR}/jsdos/jsdos-drive.cpp" - "${NATIVE_DIR}/sockdrive/lz4/lz4.c" ) set(SOURCES_X_JSDOS_MAIN