mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 19:57:45 +00:00
This is a design limitation of the Dalamud Injector (at least from how we use it) because we depend on the child process exiting to be when the game exists. For vanilla games, this is true but not for Dalamud. Now we track the PID given to us by Dalamud and use that as an indicator to when the game exits. This is needed to properly keep tracked of when the game exists for the future sync feature.
17 lines
No EOL
332 B
C++
17 lines
No EOL
332 B
C++
// SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QFile>
|
|
#include <QObject>
|
|
#include <QProcess>
|
|
|
|
class ProcessLogger : public QObject
|
|
{
|
|
public:
|
|
explicit ProcessLogger(const QString &baseName, QProcess *process);
|
|
|
|
private:
|
|
QFile m_file;
|
|
}; |