mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix non-SQLite3 build
This commit is contained in:
parent
2e3daaedc2
commit
3d113112c4
|
@ -68,7 +68,6 @@ endif()
|
|||
|
||||
set(SOURCE_FILES
|
||||
AboutScreen.cpp
|
||||
ArchiveInspector.cpp
|
||||
AssetTile.cpp
|
||||
AssetView.cpp
|
||||
AudioProcessor.cpp
|
||||
|
@ -88,7 +87,6 @@ set(SOURCE_FILES
|
|||
InputController.cpp
|
||||
InputProfile.cpp
|
||||
KeyEditor.cpp
|
||||
LibraryModel.cpp
|
||||
LoadSaveState.cpp
|
||||
LogController.cpp
|
||||
LogView.cpp
|
||||
|
@ -189,6 +187,12 @@ if(USE_GDB_STUB)
|
|||
list(APPEND SOURCE_FILES GDBController.cpp GDBWindow.cpp)
|
||||
endif()
|
||||
|
||||
if(USE_SQLITE3)
|
||||
list(APPEND SOURCE_FILES
|
||||
ArchiveInspector.cpp
|
||||
LibraryModel.cpp)
|
||||
endif()
|
||||
|
||||
qt5_add_resources(RESOURCES resources.qrc)
|
||||
if(APPLE)
|
||||
set(MACOSX_BUNDLE_ICON_FILE mgba.icns)
|
||||
|
|
|
@ -15,7 +15,9 @@
|
|||
#include <QStackedLayout>
|
||||
|
||||
#include "AboutScreen.h"
|
||||
#ifdef USE_SQLITE3
|
||||
#include "ArchiveInspector.h"
|
||||
#endif
|
||||
#include "CheatsView.h"
|
||||
#include "ConfigController.h"
|
||||
#include "DebuggerConsole.h"
|
||||
|
@ -362,6 +364,7 @@ void Window::selectROM() {
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef USE_SQLITE3
|
||||
void Window::selectROMInArchive() {
|
||||
QString filename = GBAApp::app()->getOpenFileName(this, tr("Select ROM"), getFiltersArchive());
|
||||
if (filename.isEmpty()) {
|
||||
|
@ -378,6 +381,7 @@ void Window::selectROMInArchive() {
|
|||
archiveInspector->setAttribute(Qt::WA_DeleteOnClose);
|
||||
archiveInspector->show();
|
||||
}
|
||||
#endif
|
||||
|
||||
void Window::replaceROM() {
|
||||
QString filename = GBAApp::app()->getOpenFileName(this, tr("Select ROM"), getFilters());
|
||||
|
|
|
@ -57,7 +57,9 @@ signals:
|
|||
|
||||
public slots:
|
||||
void selectROM();
|
||||
#ifdef USE_SQLITE3
|
||||
void selectROMInArchive();
|
||||
#endif
|
||||
void selectSave(bool temporary);
|
||||
void selectBIOS();
|
||||
void selectPatch();
|
||||
|
|
Loading…
Reference in New Issue