Qt: Fix build without json-c

This commit is contained in:
Vicki Pfau 2023-02-08 19:17:28 -08:00
parent 123532ed6e
commit 466639ee31
1 changed files with 2 additions and 0 deletions

View File

@ -301,7 +301,9 @@ void ScriptingController::detachGamepad() {
void ScriptingController::init() {
mScriptContextInit(&m_scriptContext);
mScriptContextAttachStdlib(&m_scriptContext);
#ifdef USE_JSON_C
mScriptContextAttachStorage(&m_scriptContext);
#endif
mScriptContextAttachSocket(&m_scriptContext);
mScriptContextAttachInput(&m_scriptContext);
mScriptContextRegisterEngines(&m_scriptContext);