Index: ps/trunk/source/ps/GameSetup/HWDetect.cpp =================================================================== --- ps/trunk/source/ps/GameSetup/HWDetect.cpp +++ ps/trunk/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 @@ JSContext* cx = scriptInterface.GetContext(); JSAutoRequest rq(cx); + JSI_Debug::RegisterScriptFunctions(scriptInterface); // Engine.DisplayErrorDialog + scriptInterface.RegisterFunction("SetDisableAudio"); scriptInterface.RegisterFunction("SetDisableS3TC"); scriptInterface.RegisterFunction("SetDisableShadows");