mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-10 07:11:46 +00:00
Allow web client to use unzipped QVMs
Compile the QVMs and automatically uses them when not using --preload-file.
This commit is contained in:
parent
41ec9ae05f
commit
e6c0776d98
3 changed files with 5 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -1066,7 +1066,6 @@ ifeq ($(PLATFORM),emscripten)
|
||||||
USE_RENDERER_DLOPEN=0
|
USE_RENDERER_DLOPEN=0
|
||||||
USE_OPENAL_DLOPEN=0
|
USE_OPENAL_DLOPEN=0
|
||||||
BUILD_GAME_SO=0
|
BUILD_GAME_SO=0
|
||||||
BUILD_GAME_QVM=0
|
|
||||||
BUILD_RENDERER_OPENGL1=0
|
BUILD_RENDERER_OPENGL1=0
|
||||||
BUILD_SERVER=0
|
BUILD_SERVER=0
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
{"src": "baseq3/pak5.pk3", "dst": "/baseq3"},
|
{"src": "baseq3/pak5.pk3", "dst": "/baseq3"},
|
||||||
{"src": "baseq3/pak6.pk3", "dst": "/baseq3"},
|
{"src": "baseq3/pak6.pk3", "dst": "/baseq3"},
|
||||||
{"src": "baseq3/pak7.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"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,7 @@ if (window.location.protocol === 'file:') throw new Error('Unfortunately browser
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
const basegame = urlParams.get('basegame') || 'baseq3';
|
const basegame = urlParams.get('basegame') || 'baseq3';
|
||||||
let generatedArguments = `
|
let generatedArguments = `
|
||||||
|
+set sv_pure 0
|
||||||
+set net_enabled 0
|
+set net_enabled 0
|
||||||
+set r_mode -2
|
+set r_mode -2
|
||||||
+set fs_game ${basegame}
|
+set fs_game ${basegame}
|
||||||
|
|
Loading…
Reference in a new issue