diff options
| author | lizzie <lizzie@eden-emu.dev> | 2026-07-09 03:46:06 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2026-07-09 03:46:06 +0200 |
| commit | c2e74a93804f0ba4e7e87a95e8881bbe817aa0a4 (patch) | |
| tree | 43e99e5f3f385c3301cbe77e0919ec50f52a00d8 /src/yuzu/main.cpp | |
| parent | e401414aabb37c903b4f02018d5a7fba3d767321 (diff) | |
[common] remove DetachedTasks object usage (#4096)
this was only ever used for announce room json on one single instance
this object is pretty much a danger to society and shouldnt exist, especially since its:
a) a singleton
b) spawns objects out of thin air
c) doesn't respect RAII and can outlive its parent objects (big no no)
generally we shouldnt endorse objects like these in the future, but alas, it existed, now it has to begone
additionally there is a similar object in KWorkerTaskManager but it's not as egregious as this one.
check that this didnt break the usual announce room json logic
Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4096
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/yuzu/main.cpp')
| -rw-r--r-- | src/yuzu/main.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 29a1f075fa..8cc979124c 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -8,9 +8,6 @@ #include <cstring> #include "dedicated_room/yuzu_room.h" #endif - -#include <common/detached_tasks.h> - #ifdef __unix__ #include "qt_common/gui_settings.h" #endif @@ -104,8 +101,6 @@ int main(int argc, char* argv[]) { Breakpad::InstallCrashHandler(); #endif - Common::DetachedTasks detached_tasks; - // Init settings params QCoreApplication::setOrganizationName(QStringLiteral("eden")); QCoreApplication::setApplicationName(QStringLiteral("eden")); @@ -193,10 +188,6 @@ int main(int argc, char* argv[]) { // After settings have been loaded by GMainWindow, apply the filter main_window.show(); - app.connect(&app, &QGuiApplication::applicationStateChanged, &main_window, - &MainWindow::OnAppFocusStateChanged); - - int result = app.exec(); - detached_tasks.WaitForAllTasks(); - return result; + app.connect(&app, &QGuiApplication::applicationStateChanged, &main_window, &MainWindow::OnAppFocusStateChanged); + return app.exec(); } |
