Skip to content

Commit

Permalink
Move the core files to a core directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Skarsnik committed Dec 17, 2024
1 parent 2997dad commit 1ab1c24
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 34 deletions.
18 changes: 10 additions & 8 deletions QUsb2snes.pro
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ equals(QUSB2SNES_NOGUI, 1) {

include($$PWD/devices/EmuNWAccess-qt/EmuNWAccess-qt.pri)

SOURCES += adevice.cpp \
INCLUDEPATH += core/

SOURCES += core/adevice.cpp \
devicefactory.cpp \
devices/sd2snesfactory.cpp \
devices/snesclassicfactory.cpp \
Expand All @@ -79,12 +81,12 @@ SOURCES += adevice.cpp \
rommapping/rominfo.c \
devices/sd2snesdevice.cpp \
devices/snesclassic.cpp \
localstorage.cpp \
wsserver.cpp \
wsservercommands.cpp
core/localstorage.cpp \
core/wsserver.cpp \
core/wsservercommands.cpp

HEADERS += adevice.h \
devicefactory.h \
HEADERS += core/adevice.h \
core/devicefactory.h \
devices/deviceerror.h \
devices/sd2snesfactory.h \
devices/snesclassicfactory.h \
Expand All @@ -101,9 +103,9 @@ HEADERS += adevice.h \
devices/sd2snesdevice.h \
devices/snesclassic.h \
localstorage.h \
usb2snes.h \
core/usb2snes.h \
sqpath.h \
wsserver.h
core/wsserver.h

macx: {
message("MAC OS BUILD")
Expand Down
22 changes: 11 additions & 11 deletions QUsb2snes.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ Project {
QtApplication {
name : "QUsb2Snes"
cpp.cxxLanguageVersion: "c++11"
cpp.includePaths: ["devices/EmuNWAccess-qt", "./"]
cpp.includePaths: ["devices/EmuNWAccess-qt", "./", "core/"]
consoleApplication: false
files: [
"TODO",
"devices/EmuNWAccess-qt/emunwaccessclient.cpp",
"devices/EmuNWAccess-qt/emunwaccessclient.h",
"adevice.cpp",
"adevice.h",
"core/adevice.cpp",
"core/adevice.h",
"sqpath.h",
"ui/appui.cpp",
"ui/appuimenu.cpp",
Expand All @@ -27,8 +27,8 @@ Project {
"ui/diagnosticdialog.h",
"ui/diagnosticdialog.ui",
"backward.hpp",
"devicefactory.cpp",
"devicefactory.h",
"core/devicefactory.cpp",
"core/devicefactory.h",
"devices/deviceerror.cpp",
"devices/deviceerror.h",
"devices/emunetworkaccessdevice.cpp",
Expand All @@ -49,8 +49,8 @@ Project {
"devices/luabridge.h",
"devices/luabridgedevice.cpp",
"devices/luabridgedevice.h",
"localstorage.cpp",
"localstorage.h",
"core/localstorage.cpp",
"core/localstorage.h",
"main.cpp",
"qskarsnikringlist.hpp",
"qusb2snes.rc",
Expand Down Expand Up @@ -86,10 +86,10 @@ Project {
"ui/wizard/snesclassicpage.cpp",
"ui/wizard/snesclassicpage.h",
"ui/wizard/snesclassicpage.ui",
"usb2snes.h",
"wsserver.cpp",
"wsserver.h",
"wsservercommands.cpp",
"core/usb2snes.h",
"core/wsserver.cpp",
"core/wsserver.h",
"core/wsservercommands.cpp",
]

Group {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions devices/emunetworkaccessdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
#include <QTimer>


#include "../adevice.h"
#include "../localstorage.h"
#include "adevice.h"
#include "localstorage.h"
#include "emunwaccessclient.h"
#include "../rommapping/rommapping.h"

Expand Down
2 changes: 1 addition & 1 deletion devices/emunetworkaccessfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#define EMUNETWORKACCESSFACTORY_H

#include <QObject>
#include "../devicefactory.h"
#include "devicefactory.h"
#include "emunetworkaccessdevice.h"
#include "emunwaccessclient.h"

Expand Down
2 changes: 1 addition & 1 deletion devices/luabridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef LUABRIDGE_H
#define LUABRIDGE_H

#include "../devicefactory.h"
#include "devicefactory.h"
#include "luabridgedevice.h"
#include <QRandomGenerator>

Expand Down
2 changes: 1 addition & 1 deletion devices/luabridgedevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef LUABRIDGEDEVICE_H
#define LUABRIDGEDEVICE_H

#include "../adevice.h"
#include "adevice.h"

#include <QObject>
#include <QTcpServer>
Expand Down
2 changes: 1 addition & 1 deletion devices/retroarchdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef RETROARCHDEVICE_H
#define RETROARCHDEVICE_H

#include "../adevice.h"
#include "adevice.h"
#include "retroarchhost.h"
#include "../rommapping/rominfo.h"

Expand Down
2 changes: 1 addition & 1 deletion devices/retroarchfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <QObject>
#include <QUdpSocket>
#include "../devicefactory.h"
#include "devicefactory.h"
#include "retroarchhost.h"
#include "retroarchdevice.h"

Expand Down
2 changes: 1 addition & 1 deletion devices/sd2snesdevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <QQueue>
#include <QSerialPort>
#include <QVector>
#include "../adevice.h"
#include "adevice.h"

class SD2SnesDevice : public ADevice
{
Expand Down
2 changes: 1 addition & 1 deletion devices/sd2snesfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <QMap>
#include <QObject>

#include "../devicefactory.h"
#include "devicefactory.h"
#include "sd2snesdevice.h"

class SD2SnesFactory : public DeviceFactory
Expand Down
2 changes: 1 addition & 1 deletion devices/snesclassic.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef SNESCLASSIC_H
#define SNESCLASSIC_H

#include "../adevice.h"
#include "adevice.h"

#include <QObject>
#include <QTcpSocket>
Expand Down
2 changes: 1 addition & 1 deletion devices/snesclassicfactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <QObject>
#include <QTcpSocket>

#include "../devicefactory.h"
#include "devicefactory.h"

#include "snesclassic.h"

Expand Down
4 changes: 2 additions & 2 deletions ui/appui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ Q_LOGGING_CATEGORY(log_appUi, "APPUI")
#define sDebug() qCDebug(log_appUi)
#define sInfo() qCInfo(log_appUi)

#include "../usb2snes.h"
//#include "../core/usb2snes.h"
#include "appui.h"
#include "../wsserver.h"
#include "wsserver.h"
#include "sqpath.h"


Expand Down
2 changes: 1 addition & 1 deletion ui/appuimenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "appui.h"

#include "diagnosticdialog.h"
#include "../wsserver.h"
#include "wsserver.h"

Q_LOGGING_CATEGORY(log_appUiMenu, "APPUIMenu")
#define sDebug() qCDebug(log_appUiMenu)
Expand Down
2 changes: 1 addition & 1 deletion ui/diagnosticdialog.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef DIAGNOSTICDIALOG_H
#define DIAGNOSTICDIALOG_H

#include "../wsserver.h"
#include "wsserver.h"

#include <QDialog>

Expand Down

0 comments on commit 1ab1c24

Please sign in to comment.