From 330b030e81a6a746290e18dad99f80210ccbee1b Mon Sep 17 00:00:00 2001 From: RSDuck Date: Tue, 9 Dec 2025 18:14:43 +0100 Subject: [PATCH] fix #2497 --- src/frontend/qt_sdl/ARCodeQDecl.h | 30 +++++++++++++++++++++++ src/frontend/qt_sdl/CMakeLists.txt | 1 + src/frontend/qt_sdl/CheatImportDialog.cpp | 1 + src/frontend/qt_sdl/CheatsDialog.cpp | 2 ++ 4 files changed, 34 insertions(+) create mode 100644 src/frontend/qt_sdl/ARCodeQDecl.h diff --git a/src/frontend/qt_sdl/ARCodeQDecl.h b/src/frontend/qt_sdl/ARCodeQDecl.h new file mode 100644 index 0000000000..7e63302743 --- /dev/null +++ b/src/frontend/qt_sdl/ARCodeQDecl.h @@ -0,0 +1,30 @@ +/* + Copyright 2016-2025 melonDS team + + This file is part of melonDS. + + melonDS is free software: you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation, either version 3 of the License, or (at your option) + any later version. + + melonDS is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with melonDS. If not, see http://www.gnu.org/licenses/. +*/ +#ifndef ARCODEQDECL +#define ARCODEQDECL + +#include + +#include "ARCodeFile.h" +#include "ARDatabaseDAT.h" + +Q_DECLARE_METATYPE(melonDS::ARCodeCat*) +Q_DECLARE_METATYPE(melonDS::ARDatabaseEntry*) +Q_DECLARE_METATYPE(melonDS::ARCode*) + +#endif diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt index db2d413ea7..b8fa40cecc 100644 --- a/src/frontend/qt_sdl/CMakeLists.txt +++ b/src/frontend/qt_sdl/CMakeLists.txt @@ -42,6 +42,7 @@ set(SOURCES_QT_SDL AboutDialog.cpp AboutDialog.h AboutDialog.ui + ARCodeQDecl.h ArchiveUtil.h ArchiveUtil.cpp diff --git a/src/frontend/qt_sdl/CheatImportDialog.cpp b/src/frontend/qt_sdl/CheatImportDialog.cpp index 4ff71b855b..99761af9f9 100644 --- a/src/frontend/qt_sdl/CheatImportDialog.cpp +++ b/src/frontend/qt_sdl/CheatImportDialog.cpp @@ -29,6 +29,7 @@ #include "CheatImportDialog.h" #include "ui_CheatImportDialog.h" +#include "ARCodeQDecl.h" using namespace melonDS; using Platform::Log; diff --git a/src/frontend/qt_sdl/CheatsDialog.cpp b/src/frontend/qt_sdl/CheatsDialog.cpp index ec906e7a73..d9d9cd9baf 100644 --- a/src/frontend/qt_sdl/CheatsDialog.cpp +++ b/src/frontend/qt_sdl/CheatsDialog.cpp @@ -30,6 +30,8 @@ #include "ui_CheatsDialog.h" #include "CheatImportDialog.h" +#include "ARCodeQDecl.h" + using namespace melonDS; using Platform::Log; using Platform::LogLevel;