diff options
| author | TrickyLeifa <date.epoch@gmail.com> | 2024-05-17 16:39:30 +0200 |
|---|---|---|
| committer | TrickyLeifa <date.epoch@gmail.com> | 2024-05-17 19:04:57 +0200 |
| commit | 1ef96383c8f7ed136a0e028aef0835b4838b5e95 (patch) | |
| tree | e87a9df097a50b4d1f918f8a4f37d210562d10d6 /src/demoserver.cpp | |
| parent | 39e4354b1dae5d8487ea5b84be9f304b1950a61a (diff) | |
Lightly reworked `NetworkManager`, ...
* Lightly reworked `NetworkManager`
* Added new modules to handle various connection types.
* TCP
* WebSocket
* Added general string splitter alias based on Qt version.
* Replaced `lobby_constructed` and `courtroom_constructed`
* Refactored and partially reimplemented the following classes:
* `AOBlipPlayer`
* `AOEmotePreview`
* `AOMusicPlayer`
* `AOSfxPlayer`
* `AOTextArea`
Diffstat (limited to 'src/demoserver.cpp')
| -rw-r--r-- | src/demoserver.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/demoserver.cpp b/src/demoserver.cpp index 0573b84e..22f383a1 100644 --- a/src/demoserver.cpp +++ b/src/demoserver.cpp @@ -1,5 +1,7 @@ #include "demoserver.h" +#include "datatypes.h" + DemoServer::DemoServer(QObject *parent) : QObject(parent) { @@ -93,12 +95,7 @@ void DemoServer::recv_data() { QString in_data = QString::fromUtf8(client_sock->readAll()); -#if QT_VERSION < QT_VERSION_CHECK(5, 14, 0) - const QStringList packet_list = in_data.split("%", QString::SkipEmptyParts); -#else - const QStringList packet_list = in_data.split("%", Qt::SkipEmptyParts); -#endif - + const QStringList packet_list = in_data.split("%", AOSplitBehaviorFlags::SkipEmptyParts); for (const QString &packet : packet_list) { QStringList f_contents; |
