diff options
author | harry <hrosen2016@gmail.com> | 2024-01-16 04:09:25 +0300 |
---|---|---|
committer | harry <hrosen2016@gmail.com> | 2024-01-16 04:09:25 +0300 |
commit | 9a9f9541d68ab16b8ebdc3dc3836a26882a669d3 (patch) | |
tree | 230da86b6e6a3c34d01cc34a8ad599461ca009d1 | |
parent | 198cdafbf80da0dbdad6424e4afc4c49e21c05b4 (diff) |
Build fix for systems without Qt QML installed.
-rw-r--r-- | src/drivers/Qt/fceuWrapper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/Qt/fceuWrapper.cpp b/src/drivers/Qt/fceuWrapper.cpp index 0aaa73ce..3f9f7272 100644 --- a/src/drivers/Qt/fceuWrapper.cpp +++ b/src/drivers/Qt/fceuWrapper.cpp @@ -1478,6 +1478,7 @@ int fceuWrapperUpdate( void ) if ( GameInfo ) { +#ifdef __FCEU_QSCRIPT_ENABLE__ auto* qscriptMgr = QtScriptManager::getInstance(); bool scriptsLoaded = (qscriptMgr != nullptr) && (qscriptMgr->numScriptsLoaded() > 0); @@ -1486,13 +1487,16 @@ int fceuWrapperUpdate( void ) { qscriptMgr->frameBeginUpdate(); } +#endif DoFun(frameskip, periodic_saves); +#ifdef __FCEU_QSCRIPT_ENABLE__ if (scriptsLoaded) { qscriptMgr->frameFinishedUpdate(); } +#endif hexEditorUpdateMemoryValues(); |