// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project // SPDX-License-Identifier: GPL-3.0-or-later #ifndef QT_COMMON_H #define QT_COMMON_H #include #include "core/core.h" #include "core/file_sys/registered_cache.h" #include #include #include namespace QtCommon { #ifdef YUZU_QT_WIDGETS extern QWidget *rootObject; #else extern QObject *rootObject; #endif extern std::unique_ptr system; extern std::shared_ptr vfs; extern std::unique_ptr provider; typedef std::function QtProgressCallback; Core::Frontend::WindowSystemType GetWindowSystemType(); Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow *window); #ifdef YUZU_QT_WIDGETS void Init(QWidget *root); #else void Init(QObject *root); #endif const QString tr(const char *str); const QString tr(const std::string &str); std::filesystem::path GetEdenCommand(); } // namespace QtCommon #endif