Files
eden/src/qt_common/qt_common.h
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
944 B
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
2025-09-15 17:21:18 +02:00
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef QT_COMMON_H
#define QT_COMMON_H
#include <memory>
2025-09-15 17:21:18 +02:00
#include <QWindow>
#include <core/frontend/emu_window.h>
2025-09-15 17:21:18 +02:00
#include "core/core.h"
#include "core/file_sys/registered_cache.h"
#include <core/file_sys/vfs/vfs_real.h>
namespace QtCommon {
extern QWidget* rootObject;
2025-09-15 17:21:18 +02:00
extern std::unique_ptr<Core::System> system;
extern std::shared_ptr<FileSys::RealVfsFilesystem> vfs;
extern std::unique_ptr<FileSys::ManualContentProvider> provider;
typedef std::function<bool(std::size_t, std::size_t)> QtProgressCallback;
Core::Frontend::WindowSystemType GetWindowSystemType();
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window);
2025-09-15 17:21:18 +02:00
void Init(QWidget* root);
2025-09-15 17:21:18 +02:00
const QString tr(const char* str);
const QString tr(const std::string& str);
2025-09-15 17:21:18 +02:00
std::filesystem::path GetEdenCommand();
} // namespace QtCommon
#endif