Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/fceux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorharry <hrosen2016@gmail.com>2024-01-16 04:09:25 +0300
committerharry <hrosen2016@gmail.com>2024-01-16 04:09:25 +0300
commit9a9f9541d68ab16b8ebdc3dc3836a26882a669d3 (patch)
tree230da86b6e6a3c34d01cc34a8ad599461ca009d1
parent198cdafbf80da0dbdad6424e4afc4c49e21c05b4 (diff)
Build fix for systems without Qt QML installed.
-rw-r--r--src/drivers/Qt/fceuWrapper.cpp4
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();