mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
refactor(console): attach console early
also use RAII guard to free it instead of tracking it with a member variable Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
35121f26fd
commit
ffd50e318a
10 changed files with 79 additions and 80 deletions
|
|
@ -274,11 +274,6 @@ class Application : public QApplication {
|
|||
Qt::ApplicationState m_prevAppState = Qt::ApplicationInactive;
|
||||
#endif
|
||||
|
||||
#if defined Q_OS_WIN32
|
||||
// used on Windows to attach the standard IO streams
|
||||
bool consoleAttached = false;
|
||||
#endif
|
||||
|
||||
// FIXME: attach to instances instead.
|
||||
struct InstanceXtras {
|
||||
InstanceWindow* window = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue