56 changed files with 233 additions and 153 deletions
-
40ffmpeg.patch
-
1src/CMakeLists.txt
-
23src/qt_common/CMakeLists.txt
-
25src/qt_common/qt_common.cpp
-
47src/qt_common/qt_common.h
-
0src/qt_common/qt_config.cpp
-
0src/qt_common/qt_config.h
-
10src/qt_common/shared_translation.cpp
-
9src/qt_common/shared_translation.h
-
2src/qt_common/uisettings.cpp
-
2src/qt_common/uisettings.h
-
13src/yuzu/CMakeLists.txt
-
9src/yuzu/bootmanager.cpp
-
4src/yuzu/configuration/configure_audio.cpp
-
2src/yuzu/configuration/configure_cpu.h
-
2src/yuzu/configuration/configure_debug.cpp
-
2src/yuzu/configuration/configure_dialog.cpp
-
2src/yuzu/configuration/configure_dialog.h
-
28src/yuzu/configuration/configure_filesystem.cpp
-
2src/yuzu/configuration/configure_general.cpp
-
4src/yuzu/configuration/configure_graphics.cpp
-
2src/yuzu/configuration/configure_graphics.h
-
2src/yuzu/configuration/configure_graphics_advanced.cpp
-
2src/yuzu/configuration/configure_graphics_extensions.cpp
-
2src/yuzu/configuration/configure_hotkeys.cpp
-
2src/yuzu/configuration/configure_input_per_game.h
-
2src/yuzu/configuration/configure_input_player.cpp
-
2src/yuzu/configuration/configure_per_game.cpp
-
4src/yuzu/configuration/configure_per_game.h
-
2src/yuzu/configuration/configure_per_game_addons.cpp
-
2src/yuzu/configuration/configure_ringcon.cpp
-
2src/yuzu/configuration/configure_tas.cpp
-
2src/yuzu/configuration/configure_ui.cpp
-
2src/yuzu/configuration/configure_web.cpp
-
2src/yuzu/configuration/input_profiles.h
-
2src/yuzu/configuration/shared_widget.cpp
-
2src/yuzu/configuration/shared_widget.h
-
2src/yuzu/debugger/console.cpp
-
2src/yuzu/debugger/wait_tree.cpp
-
15src/yuzu/game_list.cpp
-
5src/yuzu/game_list.h
-
2src/yuzu/game_list_p.h
-
30src/yuzu/game_list_worker.cpp
-
7src/yuzu/game_list_worker.h
-
2src/yuzu/hotkeys.cpp
-
2src/yuzu/install_dialog.cpp
-
27src/yuzu/main.cpp
-
2src/yuzu/main.h
-
2src/yuzu/multiplayer/direct_connect.cpp
-
2src/yuzu/multiplayer/host_room.cpp
-
2src/yuzu/multiplayer/lobby.cpp
-
2src/yuzu/multiplayer/state.cpp
-
1src/yuzu/play_time_manager.cpp
-
3src/yuzu/play_time_manager.h
-
15src/yuzu/qt_common.h
-
2src/yuzu/vk_device_info.cpp
@ -0,0 +1,40 @@ |
|||
diff --git a/externals/ffmpeg/CMakeLists.txt b/externals/ffmpeg/CMakeLists.txt
|
|||
index 54c852f831..ff35c8dc2c 100644
|
|||
--- a/externals/ffmpeg/CMakeLists.txt
|
|||
+++ b/externals/ffmpeg/CMakeLists.txt
|
|||
@@ -63,20 +63,22 @@ if (NOT WIN32 AND NOT ANDROID)
|
|||
set(FFmpeg_HWACCEL_INCLUDE_DIRS) |
|||
set(FFmpeg_HWACCEL_LDFLAGS) |
|||
|
|||
- # In Solaris needs explicit linking for ffmpeg which links to /lib/amd64/libX11.so
|
|||
- if(PLATFORM_SUN)
|
|||
- list(APPEND FFmpeg_HWACCEL_LIBRARIES
|
|||
- X11
|
|||
- "/usr/lib/xorg/amd64/libdrm.so")
|
|||
- else()
|
|||
- pkg_check_modules(LIBDRM libdrm REQUIRED)
|
|||
- list(APPEND FFmpeg_HWACCEL_LIBRARIES
|
|||
- ${LIBDRM_LIBRARIES})
|
|||
- list(APPEND FFmpeg_HWACCEL_INCLUDE_DIRS
|
|||
- ${LIBDRM_INCLUDE_DIRS})
|
|||
+ if (NOT APPLE)
|
|||
+ # In Solaris needs explicit linking for ffmpeg which links to /lib/amd64/libX11.so
|
|||
+ if(PLATFORM_SUN)
|
|||
+ list(APPEND FFmpeg_HWACCEL_LIBRARIES
|
|||
+ X11
|
|||
+ "/usr/lib/xorg/amd64/libdrm.so")
|
|||
+ else()
|
|||
+ pkg_check_modules(LIBDRM libdrm REQUIRED)
|
|||
+ list(APPEND FFmpeg_HWACCEL_LIBRARIES
|
|||
+ ${LIBDRM_LIBRARIES})
|
|||
+ list(APPEND FFmpeg_HWACCEL_INCLUDE_DIRS
|
|||
+ ${LIBDRM_INCLUDE_DIRS})
|
|||
+ endif()
|
|||
+ list(APPEND FFmpeg_HWACCEL_FLAGS
|
|||
+ --enable-libdrm)
|
|||
endif() |
|||
- list(APPEND FFmpeg_HWACCEL_FLAGS
|
|||
- --enable-libdrm)
|
|||
|
|||
if(LIBVA_FOUND) |
|||
find_package(X11 REQUIRED) |
|||
@ -0,0 +1,23 @@ |
|||
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project |
|||
# SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
add_library(qt_common STATIC |
|||
qt_common.h |
|||
qt_common.cpp |
|||
|
|||
uisettings.cpp |
|||
uisettings.h |
|||
|
|||
qt_config.cpp |
|||
qt_config.h |
|||
|
|||
shared_translation.cpp |
|||
shared_translation.h |
|||
) |
|||
|
|||
create_target_directory_groups(qt_common) |
|||
target_link_libraries(qt_common PUBLIC core Qt6::Core Qt6::Gui SimpleIni::SimpleIni) |
|||
|
|||
if (NOT WIN32) |
|||
target_include_directories(qt_common PRIVATE ${Qt6Gui_PRIVATE_INCLUDE_DIRS}) |
|||
endif() |
|||
@ -0,0 +1,47 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project |
|||
// SPDX-License-Identifier: GPL-3.0-or-later |
|||
|
|||
#ifndef QT_COMMON_H |
|||
#define QT_COMMON_H |
|||
|
|||
#include <array> |
|||
|
|||
#include <QWindow> |
|||
#include <core/frontend/emu_window.h> |
|||
|
|||
namespace QtCommon { |
|||
|
|||
static constexpr std::array<const char *, 3> METADATA_RESULTS = { |
|||
"The operation completed successfully.", |
|||
"The metadata cache couldn't be deleted. It might be in use or non-existent.", |
|||
"The metadata cache is already empty.", |
|||
}; |
|||
|
|||
enum MetadataResult { |
|||
Success, |
|||
Failure, |
|||
Empty, |
|||
}; |
|||
/** |
|||
* @brief ResetMetadata Reset game list metadata. |
|||
* @return A result code. |
|||
*/ |
|||
MetadataResult ResetMetadata(); |
|||
|
|||
/** |
|||
* \brief Get a string representation of a result from ResetMetadata. |
|||
* \param result The result code. |
|||
* \return A string representation of the passed result code. |
|||
*/ |
|||
inline constexpr const char *GetResetMetadataResultString(MetadataResult result) |
|||
{ |
|||
return METADATA_RESULTS.at(static_cast<std::size_t>(result)); |
|||
} |
|||
|
|||
Core::Frontend::WindowSystemType GetWindowSystemType(); |
|||
|
|||
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window); |
|||
|
|||
|
|||
} // namespace QtCommon |
|||
#endif |
|||
@ -1,15 +0,0 @@ |
|||
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
#pragma once |
|||
|
|||
#include <QWindow> |
|||
#include "core/frontend/emu_window.h" |
|||
|
|||
namespace QtCommon { |
|||
|
|||
Core::Frontend::WindowSystemType GetWindowSystemType(); |
|||
|
|||
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window); |
|||
|
|||
} // namespace QtCommon |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue