diff options
| author | Crystalwarrior <Varsash@Gmail.com> | 2021-04-23 09:55:04 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-23 01:55:04 -0500 |
| commit | 9fbe899c0e6ff464d91c2b2171eebb8fb879facb (patch) | |
| tree | 3c36c9ed98a82745e3bc8789a525f7065f96eff3 /include/demoserver.h | |
| parent | 3e4de5da62966b63dc553fd793cb6de3d2f48391 (diff) | |
Automatically fix desynced demo files with issues pre-#496 PR (#532)
* Implement a demo auto-fixing solution. If the client detects a pre-2.9.1 demo file, it will prompt the user if they wish to correct it, since otherwise the demo will be desynched from reality.
The aforementioned issue was fixed in https://github.com/AttorneyOnline/AO2-Client/pull/496 however 2.9.0 still has incorrect demo recording.
Fix potential memory leak by not flushing and closing the demo file after opening it for reading.
* backup broken demo file before fixing it
* comments ahoy
Co-authored-by: in1tiate <radwoodward@vikings.grayson.edu>
Diffstat (limited to 'include/demoserver.h')
| -rw-r--r-- | include/demoserver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/demoserver.h b/include/demoserver.h index 3dc645be..f41084e0 100644 --- a/include/demoserver.h +++ b/include/demoserver.h @@ -10,6 +10,7 @@ #include <QTcpSocket> #include <QTimer> #include <QFileDialog> +#include <QMessageBox> class DemoServer : public QObject { |
