Skip to content

Commit 330b030

Browse files
committed
fix #2497
1 parent aae0b3f commit 330b030

4 files changed

Lines changed: 34 additions & 0 deletions

File tree

src/frontend/qt_sdl/ARCodeQDecl.h

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
Copyright 2016-2025 melonDS team
3+
4+
This file is part of melonDS.
5+
6+
melonDS is free software: you can redistribute it and/or modify it under
7+
the terms of the GNU General Public License as published by the Free
8+
Software Foundation, either version 3 of the License, or (at your option)
9+
any later version.
10+
11+
melonDS is distributed in the hope that it will be useful, but WITHOUT ANY
12+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13+
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14+
15+
You should have received a copy of the GNU General Public License along
16+
with melonDS. If not, see http://www.gnu.org/licenses/.
17+
*/
18+
#ifndef ARCODEQDECL
19+
#define ARCODEQDECL
20+
21+
#include <QObject>
22+
23+
#include "ARCodeFile.h"
24+
#include "ARDatabaseDAT.h"
25+
26+
Q_DECLARE_METATYPE(melonDS::ARCodeCat*)
27+
Q_DECLARE_METATYPE(melonDS::ARDatabaseEntry*)
28+
Q_DECLARE_METATYPE(melonDS::ARCode*)
29+
30+
#endif

src/frontend/qt_sdl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ set(SOURCES_QT_SDL
4242
AboutDialog.cpp
4343
AboutDialog.h
4444
AboutDialog.ui
45+
ARCodeQDecl.h
4546

4647
ArchiveUtil.h
4748
ArchiveUtil.cpp

src/frontend/qt_sdl/CheatImportDialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929

3030
#include "CheatImportDialog.h"
3131
#include "ui_CheatImportDialog.h"
32+
#include "ARCodeQDecl.h"
3233

3334
using namespace melonDS;
3435
using Platform::Log;

src/frontend/qt_sdl/CheatsDialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
#include "ui_CheatsDialog.h"
3131
#include "CheatImportDialog.h"
3232

33+
#include "ARCodeQDecl.h"
34+
3335
using namespace melonDS;
3436
using Platform::Log;
3537
using Platform::LogLevel;

0 commit comments

Comments
 (0)