From 1e9cc3d43e8f47c8bd6d16404bac8da5215b7a4d Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Thu, 25 Jul 2019 05:21:25 +0000 Subject: [PATCH] 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. --- source/ps/GameSetup/HWDetect.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/ps/GameSetup/HWDetect.cpp b/source/ps/GameSetup/HWDetect.cpp index a2a560b869..36b34c069d 100644 --- a/source/ps/GameSetup/HWDetect.cpp +++ b/source/ps/GameSetup/HWDetect.cpp @@ -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 @@ -215,6 +216,8 @@ void RunHardwareDetection() JSContext* cx = scriptInterface.GetContext(); JSAutoRequest rq(cx); + JSI_Debug::RegisterScriptFunctions(scriptInterface); // Engine.DisplayErrorDialog + scriptInterface.RegisterFunction("SetDisableAudio"); scriptInterface.RegisterFunction("SetDisableS3TC"); scriptInterface.RegisterFunction("SetDisableShadows");