Allow web client to use unzipped QVMs

Compile the QVMs and automatically uses them when not using --preload-file.
This commit is contained in:
Zack Middleton 2024-06-10 02:55:20 -05:00
parent 41ec9ae05f
commit e6c0776d98
3 changed files with 5 additions and 2 deletions

View file

@ -1066,7 +1066,6 @@ ifeq ($(PLATFORM),emscripten)
USE_RENDERER_DLOPEN=0
USE_OPENAL_DLOPEN=0
BUILD_GAME_SO=0
BUILD_GAME_QVM=0
BUILD_RENDERER_OPENGL1=0
BUILD_SERVER=0

View file

@ -8,6 +8,9 @@
{"src": "baseq3/pak5.pk3", "dst": "/baseq3"},
{"src": "baseq3/pak6.pk3", "dst": "/baseq3"},
{"src": "baseq3/pak7.pk3", "dst": "/baseq3"},
{"src": "baseq3/pak8.pk3", "dst": "/baseq3"}
{"src": "baseq3/pak8.pk3", "dst": "/baseq3"},
{"src": "baseq3/vm/cgame.qvm", "dst": "/baseq3/vm"},
{"src": "baseq3/vm/qagame.qvm", "dst": "/baseq3/vm"},
{"src": "baseq3/vm/ui.qvm", "dst": "/baseq3/vm"}
]
}

View file

@ -14,6 +14,7 @@ if (window.location.protocol === 'file:') throw new Error('Unfortunately browser
const urlParams = new URLSearchParams(window.location.search);
const basegame = urlParams.get('basegame') || 'baseq3';
let generatedArguments = `
+set sv_pure 0
+set net_enabled 0
+set r_mode -2
+set fs_game ${basegame}