mirror of https://github.com/mgba-emu/mgba.git
Qt: Getting tired of pushing commits to fix the build without json-c
This commit is contained in:
parent
3cbfaa010d
commit
c709aee0f3
|
@ -149,7 +149,9 @@ void ScriptingController::runCode(const QString& code) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ScriptingController::flushStorage() {
|
void ScriptingController::flushStorage() {
|
||||||
|
#ifdef USE_JSON_C
|
||||||
mScriptStorageFlushAll(&m_scriptContext);
|
mScriptStorageFlushAll(&m_scriptContext);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScriptingController::eventFilter(QObject* obj, QEvent* ev) {
|
bool ScriptingController::eventFilter(QObject* obj, QEvent* ev) {
|
||||||
|
@ -320,7 +322,9 @@ void ScriptingController::init() {
|
||||||
m_activeEngine = *m_engines.begin();
|
m_activeEngine = *m_engines.begin();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef USE_JSON_C
|
||||||
m_storageFlush.start();
|
m_storageFlush.start();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t ScriptingController::qtToScriptingKey(const QKeyEvent* event) {
|
uint32_t ScriptingController::qtToScriptingKey(const QKeyEvent* event) {
|
||||||
|
|
Loading…
Reference in New Issue