Skip to content

Commit

Permalink
publish: 6.22.29
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Jul 22, 2019
1 parent 0465870 commit 7a9b47b
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 21 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ if(${EMSCRIPTEN})
-s MODULARIZE=1 \
-s EXPORT_NAME='WDOSBOX' \
-s FORCE_FILESYSTEM=1 \
-s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 -s EMTERPRETIFY_WHITELIST=@${CMAKE_CURRENT_LIST_DIR}/js-dos-cpp/emterpretify.txt \
-s ASYNCIFY \
-s EXTRA_EXPORTED_RUNTIME_METHODS=\"['getMemory', 'addRunDependency', 'removeRunDependency','FS', 'FS_createPath', 'FS_createPreloadedFile', \
'FS_createDataFile', 'lengthBytesUTF8', 'stringToUTF8', 'UTF16ToString']\" \
-s NO_EXIT_RUNTIME=1 \
-s ERROR_ON_UNDEFINED_SYMBOLS=0")
add_definitions(-DEMSCRIPTEN)
# -s ASYNCIFY_IGNORE_INDIRECT \
# -s EMTERPRETIFY=1 -s EMTERPRETIFY_ASYNC=1 -s EMTERPRETIFY_WHITELIST=@${CMAKE_CURRENT_LIST_DIR}/js-dos-cpp/emterpretify.txt \
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=return-type -Wno-deprecated")
add_definitions(-DDEBUG -DEMSCRIPTEN_KEEPALIVE=)
Expand Down Expand Up @@ -181,7 +183,7 @@ if(${EMSCRIPTEN})
add_library(bin-obj OBJECT ${SOURCES} ${SOURCES_CXX11} ${SOURCES_3RDPARTY})
add_executable(wdosbox $<TARGET_OBJECTS:bin-obj>)
set_target_properties(wdosbox PROPERTIES SUFFIX .js)
set_target_properties(wdosbox PROPERTIES LINK_FLAGS "-s WASM=1 -s BINARYEN_TRAP_MODE=\"clamp\"")
set_target_properties(wdosbox PROPERTIES LINK_FLAGS "-s WASM=1")
else()
add_executable(bin ${SOURCES} ${SOURCES_CXX11} ${SOURCES_3RDPARTY})
target_link_libraries(bin
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[![Build Status](https://travis-ci.org/caiiiycuk/js-dos.svg?branch=6.22)](https://travis-ci.org/caiiiycuk/js-dos)

6.22 is a javascript library that allows you to run DOS programs in browser. js-dos provides nice and easy to use javascript api over dosbox.
6.22 is a javascript library that allows you to run DOS programs in browser. js-dos provides nice and easy to use javascript api over dosbox. Try our <a href="https://dosify.me">demo app</a>.

You can found previous version here [v3](https://js-dos.com/index_v3.html)

Expand Down
10 changes: 5 additions & 5 deletions dist/docs/api/js-dos-ts/js-dos-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ gulpfile.js --> generateBuildInfo
```
export const Build = {
version: "6.22.28 (29e99da42ae1666b417f86c674ce28a7)",
jsVersion: "1a7c80b3a7dc6ac0448751d82d6d7ecb9627ec0a",
jsSize: 459510,
wasmVersion: "1f96ea3830ba77713d40289fe510fc6a",
wasmSize: 2125427,
version: "6.22.29 (e54c8c8bec01ad1a072f1b0f430cc492)",
jsVersion: "0465870325e768eb26cc06b00d920fc94314efc7",
jsSize: 197174,
wasmVersion: "c22105169b59875d7b46cd156a6e7c17",
wasmSize: 2851969,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ Bitu DEBUG_Loop(void) {
PIC_runIRQs();
#if defined(JSDOS)
#if defined(EMTERPRETER_SYNC)
emscripten_sleep_with_yield(1);
emscripten_sleep(1);
#endif
#else
SDL_Delay(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,7 @@ class WGET : public Program {
/* Emscripten won't allow a sync fetch:
* https://kripken.github.io/emscripten-site/docs/api_reference/fetch.html#synchronous-fetches
* The program instead waits for these to be called, looping and calling
* emscripten_sleep_with_yield().
* emscripten_sleep().
*/
bool WGET::fetchsuccess = false, WGET::fetchdone = false;
void WGET::downloadSucceeded(emscripten_fetch_t *fetch) {
Expand Down Expand Up @@ -1598,7 +1598,7 @@ void WGET::Run(void) {
attr.onerror = downloadFailed;
fetchdone = false;
emscripten_fetch_t *fetch = emscripten_fetch(&attr, url.c_str());
while (!fetchdone) emscripten_sleep_with_yield(10);
while (!fetchdone) emscripten_sleep(10);
if (fetchsuccess) {
Bit16u fhandle;
if (!DOS_CreateFile(outname.c_str(),OPEN_WRITE,&fhandle)) {
Expand Down
6 changes: 3 additions & 3 deletions dreamlayers-em-dosbox-em-dosbox-svn-sdl2/src/dosbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ bool doHeapOperation() {

#if defined(EMTERPRETER_SYNC) && defined(EMSCRIPTEN)
bool isNormalState = EM_ASM_INT((
return EmterpreterAsync.state === 0 ? 1 : 0;
return Asyncify.state === 0 ? 1 : 0;
)) == 1;

if (!isNormalState) {
Expand Down Expand Up @@ -204,7 +204,7 @@ static Bitu Normal_Loop(void) {
if (SDL_TICKS_PASSED(ticksEntry, last_sleep + 10)) {
if (nosleep_lock == 0) {
last_sleep = ticksEntry;
emscripten_sleep_with_yield(1);
emscripten_sleep(1);
ticksEntry = GetTicks();
} else if (SDL_TICKS_PASSED(ticksEntry, last_sleep + 2000) &&
!SDL_TICKS_PASSED(ticksEntry, last_loop + 200)) {
Expand Down Expand Up @@ -409,7 +409,7 @@ static Bitu Normal_Loop(void) {
#elif defined(EMTERPRETER_SYNC)
if (nosleep_lock == 0) {
last_sleep = ticksNew;
emscripten_sleep_with_yield(1);
emscripten_sleep(1);
}
#endif
ticksDone -= GetTicks() - ticksNew;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2089,7 +2089,7 @@ static void GUI_StartUp(Section * sec) {
}
if (exit_splash) break;
#if defined(JSDOS) && defined(EMTERPRETER_SYNC)
emscripten_sleep_with_yield(1);
emscripten_sleep(1);
#endif

if (ct<1) {
Expand Down
10 changes: 5 additions & 5 deletions js-dos-ts/js-dos-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// gulpfile.js --> generateBuildInfo

export const Build = {
version: "6.22.28 (29e99da42ae1666b417f86c674ce28a7)",
jsVersion: "1a7c80b3a7dc6ac0448751d82d6d7ecb9627ec0a",
jsSize: 459510,
wasmVersion: "1f96ea3830ba77713d40289fe510fc6a",
wasmSize: 2125427,
version: "6.22.29 (e54c8c8bec01ad1a072f1b0f430cc492)",
jsVersion: "0465870325e768eb26cc06b00d920fc94314efc7",
jsSize: 197174,
wasmVersion: "c22105169b59875d7b46cd156a6e7c17",
wasmSize: 2851969,
};
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": "6.22.28",
"version": "6.22.29",
"description": "Easiest API to run dos programs in browser",
"main": "dist/js-dos.js",
"types": "dist/typescript/js-dos.ts",
Expand Down

0 comments on commit 7a9b47b

Please sign in to comment.