Worked, thanks.
Now, fuse code does not compile if follow instructions from emscripten.md If to add -pthread to CFFAGS and LDFLAGS and '-sINITIAL_MEMORY=128MB -sFORCE_FILESYSTEM -sASYNCIFY -sSHARED_MEMORY=1' it compiles, but hangs on start.
Thank you!
After recent changes only one change left. It is required, because both getuid and geteuid return 0 on emscripten, causing setuid failure. PNG_LIBS can be reused. HOME env variable is /home/web_user under emscripten. Here is the build script: host none is for enforcing unix compat paths, without xml2 for a smaller binary. What else need to be changed? #!/bin/bash export CFLAGS="-O3" DIR="home/web_user/.config/fuse-emulator" mkdir -p $DIR cp -a fuserc $DIR/ export PNG_LIBS="--preload-file home --preload-file...
In featchure #132 it was me. I just forgot about it. libspectrum does not need patching, just to compile with -pthread. In attachment modified patch against current git.
In the attachment, a poor slideshow. First it generates 59 screens and display them in a loop. How it should behave in different configurations, when taking snapshot and then restore it? 128k vs 512k. Snapshot taken on 128k and loaded in version with 512k should display 11 different screens or 59 ?
Security model of browsers disallow to load from local files, but when it is easily available users will find out other possibilities to make use of it.
diff --git a/peripherals/ide/divmmc.c b/peripherals/ide/divmmc.c index 35084113..ec49981d 100644 --- a/peripherals/ide/divmmc.c +++ b/peripherals/ide/divmmc.c @@ -74,8 +74,8 @@ static libspectrum_mmc_card *card; /* The card currently selected via the "card select" call */ static libspectrum_mmc_card *current_card; -/* *Our* DivMMC has 128 Kb of RAM */ -#define DIVMMC_PAGES 16 +/* *Our* DivMMC has 512 Kb of RAM */ +#define DIVMMC_PAGES 64 #define DIVMMC_PAGE_LENGTH 0x2000 static void divmmc_reset(...