mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-21 21:09:00 +02:00
This is part of a series of PRs made in preparation for the QML rewrite. this PR specifically moves a bunch of utility functions from main.cpp into qt_common, with the biggest benefit being that QML can reuse the exact same code through ctx passthrough. Also, QtCommon::Frontend is an abstraction layer over several previously Widgets-specific stuff like QMessageBox that gets used everywhere. The idea is that once QML is implemented, these functions can have a Quick version implemented for systems that don't work well with Widgets (sun) or for those on Plasma 6+ (reduces memory usage w/o Widgets linkage) although Quick from C++ is actually anal, but whatever. Other than that this should also just kinda reduce the size of main.cpp which is a 6000-line behemoth rn, and clangd straight up gives up with it for me (likely caused by the massive amount of headers, which this DOES reduce). In the future, I probably want to create a common strings lookup table that both Qt and QML can reference--though I'm not sure how much linguist likes that--which should give us a way to keep language consistent (use frozen-map). TODO: Docs for Qt stuff Co-authored-by: MaranBr <maranbr@outlook.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/94 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: Shinmegumi <shinmegumi@eden-emu.dev> |
||
|---|---|---|
| .. | ||
| applets | ||
| configuration | ||
| debugger | ||
| multiplayer | ||
| util | ||
| about_dialog.cpp | ||
| about_dialog.h | ||
| aboutdialog.ui | ||
| bootmanager.cpp | ||
| bootmanager.h | ||
| breakpad.cpp | ||
| breakpad.h | ||
| CMakeLists.txt | ||
| compatdb.cpp | ||
| compatdb.h | ||
| compatdb.ui | ||
| compatibility_list.cpp | ||
| compatibility_list.h | ||
| deps_dialog.cpp | ||
| deps_dialog.h | ||
| deps_dialog.ui | ||
| discord.h | ||
| discord_impl.cpp | ||
| discord_impl.h | ||
| game_list.cpp | ||
| game_list.h | ||
| game_list_p.h | ||
| game_list_worker.cpp | ||
| game_list_worker.h | ||
| hotkeys.cpp | ||
| hotkeys.h | ||
| Info.plist | ||
| install_dialog.cpp | ||
| install_dialog.h | ||
| loading_screen.cpp | ||
| loading_screen.h | ||
| loading_screen.ui | ||
| main.cpp | ||
| main.h | ||
| main.ui | ||
| migration_dialog.cpp | ||
| migration_dialog.h | ||
| migration_worker.cpp | ||
| migration_worker.h | ||
| play_time_manager.cpp | ||
| play_time_manager.h | ||
| precompiled_headers.h | ||
| startup_checks.cpp | ||
| startup_checks.h | ||
| update_checker.cpp | ||
| update_checker.h | ||
| user_data_migration.cpp | ||
| user_data_migration.h | ||
| vk_device_info.cpp | ||
| vk_device_info.h | ||
| yuzu.qrc | ||
| yuzu.rc | ||