1
0
forked from 0ad/0ad

Fixes missing Engine.DisplayErrorDialog in hwdetect.js (lost in 4b1297b328).

Fixes #5533.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D2123
This was SVN commit r22549.
This commit is contained in:
historic_bruno 2019-07-25 05:21:25 +00:00
parent 4ced2182b2
commit 1e9cc3d43e

View File

@ -38,10 +38,11 @@
#include "ps/CLogger.h"
#include "ps/ConfigDB.h"
#include "ps/Filesystem.h"
#include "ps/GameSetup/Config.h"
#include "ps/Profile.h"
#include "ps/scripting/JSInterface_Debug.h"
#include "ps/UserReport.h"
#include "ps/VideoMode.h"
#include "ps/GameSetup/Config.h"
#ifdef SDL_VIDEO_DRIVER_X11
#include <GL/glx.h>
@ -215,6 +216,8 @@ void RunHardwareDetection()
JSContext* cx = scriptInterface.GetContext();
JSAutoRequest rq(cx);
JSI_Debug::RegisterScriptFunctions(scriptInterface); // Engine.DisplayErrorDialog
scriptInterface.RegisterFunction<void, bool, &SetDisableAudio>("SetDisableAudio");
scriptInterface.RegisterFunction<void, bool, &SetDisableS3TC>("SetDisableS3TC");
scriptInterface.RegisterFunction<void, bool, &SetDisableShadows>("SetDisableShadows");