chore: update project branding to CITRON

Signed-off-by: Zephyron <zephyron@citron-emu.org>
This commit is contained in:
Zephyron
2025-05-06 16:11:33 +10:00
parent 5e16e20427
commit b2d9cf4a01
119 changed files with 483 additions and 483 deletions

View File

@@ -15,9 +15,9 @@ include(CTest)
# Set bundled sdl2/qt as dependent options. # Set bundled sdl2/qt as dependent options.
# OFF by default, but if ENABLE_SDL2 and MSVC are true then ON # OFF by default, but if ENABLE_SDL2 and MSVC are true then ON
option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) option(ENABLE_SDL2 "Enable the SDL2 frontend" ON)
CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" ON "ENABLE_SDL2;MSVC" OFF) CMAKE_DEPENDENT_OPTION(CITRON_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" ON "ENABLE_SDL2;MSVC" OFF)
# On Linux system SDL2 is likely to be lacking HIDAPI support which have drawbacks but is needed for SDL motion # On Linux system SDL2 is likely to be lacking HIDAPI support which have drawbacks but is needed for SDL motion
CMAKE_DEPENDENT_OPTION(YUZU_USE_EXTERNAL_SDL2 "Compile external SDL2" ON "ENABLE_SDL2;NOT MSVC" OFF) CMAKE_DEPENDENT_OPTION(CITRON_USE_EXTERNAL_SDL2 "Compile external SDL2" ON "ENABLE_SDL2;NOT MSVC" OFF)
cmake_dependent_option(ENABLE_LIBUSB "Enable the use of LibUSB" ON "NOT ANDROID" OFF) cmake_dependent_option(ENABLE_LIBUSB "Enable the use of LibUSB" ON "NOT ANDROID" OFF)
@@ -28,45 +28,45 @@ option(ENABLE_QT6 "Allow usage of Qt6 to be attempted" OFF)
set(QT6_LOCATION "" CACHE PATH "Additional Location to search for Qt6 libraries like C:/Qt/6.3.1/msvc2019_64/") set(QT6_LOCATION "" CACHE PATH "Additional Location to search for Qt6 libraries like C:/Qt/6.3.1/msvc2019_64/")
option(ENABLE_QT_TRANSLATION "Enable translations for the Qt frontend" OFF) option(ENABLE_QT_TRANSLATION "Enable translations for the Qt frontend" OFF)
CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" "${MSVC}" "ENABLE_QT" OFF) CMAKE_DEPENDENT_OPTION(CITRON_USE_BUNDLED_QT "Download bundled Qt binaries" "${MSVC}" "ENABLE_QT" OFF)
option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON) option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON)
option(YUZU_USE_BUNDLED_FFMPEG "Download/Build bundled FFmpeg" "${WIN32}") option(CITRON_USE_BUNDLED_FFMPEG "Download/Build bundled FFmpeg" "${WIN32}")
option(YUZU_USE_EXTERNAL_VULKAN_HEADERS "Use Vulkan-Headers from externals" ON) option(CITRON_USE_EXTERNAL_VULKAN_HEADERS "Use Vulkan-Headers from externals" ON)
option(YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES "Use Vulkan-Utility-Libraries from externals" ON) option(CITRON_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES "Use Vulkan-Utility-Libraries from externals" ON)
option(YUZU_USE_QT_MULTIMEDIA "Use QtMultimedia for Camera" OFF) option(CITRON_USE_QT_MULTIMEDIA "Use QtMultimedia for Camera" OFF)
option(YUZU_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OFF) option(CITRON_USE_QT_WEB_ENGINE "Use QtWebEngine for web applet implementation" OFF)
option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) option(ENABLE_CUBEB "Enables the cubeb audio backend" ON)
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}") option(CITRON_TESTS "Compile tests" "${BUILD_TESTING}")
option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) option(CITRON_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON)
option(YUZU_DOWNLOAD_ANDROID_VVL "Download validation layer binary for android" ON) option(CITRON_DOWNLOAD_ANDROID_VVL "Download validation layer binary for android" ON)
CMAKE_DEPENDENT_OPTION(YUZU_ROOM "Compile LDN room server" ON "NOT ANDROID" OFF) CMAKE_DEPENDENT_OPTION(CITRON_ROOM "Compile LDN room server" ON "NOT ANDROID" OFF)
CMAKE_DEPENDENT_OPTION(YUZU_CRASH_DUMPS "Compile crash dump (Minidump) support" OFF "WIN32 OR LINUX" OFF) CMAKE_DEPENDENT_OPTION(CITRON_CRASH_DUMPS "Compile crash dump (Minidump) support" OFF "WIN32 OR LINUX" OFF)
option(YUZU_USE_BUNDLED_VCPKG "Use vcpkg for citron dependencies" "${MSVC}") option(CITRON_USE_BUNDLED_VCPKG "Use vcpkg for citron dependencies" "${MSVC}")
option(YUZU_CHECK_SUBMODULES "Check if submodules are present" ON) option(CITRON_CHECK_SUBMODULES "Check if submodules are present" ON)
option(YUZU_ENABLE_LTO "Enable link-time optimization" OFF) option(CITRON_ENABLE_LTO "Enable link-time optimization" OFF)
option(YUZU_DOWNLOAD_TIME_ZONE_DATA "Always download time zone binaries" OFF) option(CITRON_DOWNLOAD_TIME_ZONE_DATA "Always download time zone binaries" OFF)
option(YUZU_ENABLE_PORTABLE "Allow citron to enable portable mode if a user folder is found in the CWD" ON) option(CITRON_ENABLE_PORTABLE "Allow citron to enable portable mode if a user folder is found in the CWD" ON)
CMAKE_DEPENDENT_OPTION(YUZU_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF) CMAKE_DEPENDENT_OPTION(CITRON_USE_FASTER_LD "Check if a faster linker is available" ON "NOT WIN32" OFF)
CMAKE_DEPENDENT_OPTION(USE_SYSTEM_MOLTENVK "Use the system MoltenVK lib (instead of the bundled one)" OFF "APPLE" OFF) CMAKE_DEPENDENT_OPTION(USE_SYSTEM_MOLTENVK "Use the system MoltenVK lib (instead of the bundled one)" OFF "APPLE" OFF)
@@ -82,7 +82,7 @@ if (ANDROID OR WIN32 OR APPLE)
endif() endif()
option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL}) option(ENABLE_OPENSSL "Enable OpenSSL backend for ISslConnection" ${DEFAULT_ENABLE_OPENSSL})
if (ANDROID AND YUZU_DOWNLOAD_ANDROID_VVL) if (ANDROID AND CITRON_DOWNLOAD_ANDROID_VVL)
set(vvl_version "sdk-1.3.261.1") set(vvl_version "sdk-1.3.261.1")
set(vvl_zip_file "${CMAKE_BINARY_DIR}/externals/vvl-android.zip") set(vvl_zip_file "${CMAKE_BINARY_DIR}/externals/vvl-android.zip")
if (NOT EXISTS "${vvl_zip_file}") if (NOT EXISTS "${vvl_zip_file}")
@@ -104,7 +104,7 @@ if (ANDROID)
set(CMAKE_SKIP_INSTALL_RULES ON) set(CMAKE_SKIP_INSTALL_RULES ON)
endif() endif()
if (YUZU_USE_BUNDLED_VCPKG) if (CITRON_USE_BUNDLED_VCPKG)
if (ANDROID) if (ANDROID)
set(ENV{ANDROID_NDK_HOME} "${ANDROID_NDK}") set(ENV{ANDROID_NDK_HOME} "${ANDROID_NDK}")
list(APPEND VCPKG_MANIFEST_FEATURES "android") list(APPEND VCPKG_MANIFEST_FEATURES "android")
@@ -138,7 +138,7 @@ if (YUZU_USE_BUNDLED_VCPKG)
endif() endif()
endif() endif()
if (YUZU_TESTS) if (CITRON_TESTS)
list(APPEND VCPKG_MANIFEST_FEATURES "citron-tests") list(APPEND VCPKG_MANIFEST_FEATURES "citron-tests")
endif() endif()
if (ENABLE_WEB_SERVICE) if (ENABLE_WEB_SERVICE)
@@ -155,16 +155,16 @@ elseif(NOT "$ENV{VCPKG_TOOLCHAIN_FILE}" STREQUAL "")
include("$ENV{VCPKG_TOOLCHAIN_FILE}") include("$ENV{VCPKG_TOOLCHAIN_FILE}")
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
if (MSVC AND CCACHE) if (MSVC AND CCACHE)
# buildcache does not properly cache PCH files, leading to compilation errors. # buildcache does not properly cache PCH files, leading to compilation errors.
# See https://github.com/mbitsnbites/buildcache/discussions/230 # See https://github.com/mbitsnbites/buildcache/discussions/230
message(WARNING "buildcache does not properly support Precompiled Headers. Disabling PCH") message(WARNING "buildcache does not properly support Precompiled Headers. Disabling PCH")
set(DYNARMIC_USE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE) set(DYNARMIC_USE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE)
set(YUZU_USE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE) set(CITRON_USE_PRECOMPILED_HEADERS OFF CACHE BOOL "" FORCE)
endif() endif()
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
message(STATUS "Using Precompiled Headers.") message(STATUS "Using Precompiled Headers.")
set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON) set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON)
endif() endif()
@@ -199,7 +199,7 @@ function(check_submodules_present)
endforeach() endforeach()
endfunction() endfunction()
if(EXISTS ${PROJECT_SOURCE_DIR}/.gitmodules AND YUZU_CHECK_SUBMODULES) if(EXISTS ${PROJECT_SOURCE_DIR}/.gitmodules AND CITRON_CHECK_SUBMODULES)
check_submodules_present() check_submodules_present()
endif() endif()
configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc
@@ -262,7 +262,7 @@ endif()
message(STATUS "Target architecture: ${ARCHITECTURE}") message(STATUS "Target architecture: ${ARCHITECTURE}")
if (UNIX) if (UNIX)
add_definitions(-DYUZU_UNIX=1) add_definitions(-DCITRON_UNIX=1)
endif() endif()
if (ARCHITECTURE_arm64 AND (ANDROID OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux")) if (ARCHITECTURE_arm64 AND (ANDROID OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux"))
@@ -306,11 +306,11 @@ find_package(VulkanMemoryAllocator CONFIG)
find_package(ZLIB 1.2 REQUIRED) find_package(ZLIB 1.2 REQUIRED)
find_package(zstd 1.5 REQUIRED) find_package(zstd 1.5 REQUIRED)
if (NOT YUZU_USE_EXTERNAL_VULKAN_HEADERS) if (NOT CITRON_USE_EXTERNAL_VULKAN_HEADERS)
find_package(VulkanHeaders 1.3.274 REQUIRED) find_package(VulkanHeaders 1.3.274 REQUIRED)
endif() endif()
if (NOT YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES) if (NOT CITRON_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES)
find_package(VulkanUtilityLibraries REQUIRED) find_package(VulkanUtilityLibraries REQUIRED)
endif() endif()
@@ -343,7 +343,7 @@ if (ENABLE_WEB_SERVICE)
find_package(httplib 0.12 MODULE COMPONENTS OpenSSL) find_package(httplib 0.12 MODULE COMPONENTS OpenSSL)
endif() endif()
if (YUZU_TESTS) if (CITRON_TESTS)
find_package(Catch2 3.0.1 REQUIRED) find_package(Catch2 3.0.1 REQUIRED)
endif() endif()
@@ -367,23 +367,23 @@ endif()
function(set_citron_qt_components) function(set_citron_qt_components)
# Best practice is to ask for all components at once, so they are from the same version # Best practice is to ask for all components at once, so they are from the same version
set(YUZU_QT_COMPONENTS2 Core Widgets Concurrent) set(CITRON_QT_COMPONENTS2 Core Widgets Concurrent)
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
list(APPEND YUZU_QT_COMPONENTS2 DBus) list(APPEND CITRON_QT_COMPONENTS2 DBus)
endif() endif()
if (YUZU_USE_QT_MULTIMEDIA) if (CITRON_USE_QT_MULTIMEDIA)
list(APPEND YUZU_QT_COMPONENTS2 Multimedia) list(APPEND CITRON_QT_COMPONENTS2 Multimedia)
endif() endif()
if (YUZU_USE_QT_WEB_ENGINE) if (CITRON_USE_QT_WEB_ENGINE)
list(APPEND YUZU_QT_COMPONENTS2 WebEngineCore WebEngineWidgets) list(APPEND CITRON_QT_COMPONENTS2 WebEngineCore WebEngineWidgets)
endif() endif()
if (ENABLE_QT_TRANSLATION) if (ENABLE_QT_TRANSLATION)
list(APPEND YUZU_QT_COMPONENTS2 LinguistTools) list(APPEND CITRON_QT_COMPONENTS2 LinguistTools)
endif() endif()
if (USE_DISCORD_PRESENCE) if (USE_DISCORD_PRESENCE)
list(APPEND YUZU_QT_COMPONENTS2 Network) list(APPEND CITRON_QT_COMPONENTS2 Network)
endif() endif()
set(YUZU_QT_COMPONENTS ${YUZU_QT_COMPONENTS2} PARENT_SCOPE) set(CITRON_QT_COMPONENTS ${CITRON_QT_COMPONENTS2} PARENT_SCOPE)
endfunction(set_citron_qt_components) endfunction(set_citron_qt_components)
# Qt5 requires that we find components, so it doesn't fit our pretty little find package function # Qt5 requires that we find components, so it doesn't fit our pretty little find package function
@@ -395,7 +395,7 @@ if(ENABLE_QT)
set_citron_qt_components() set_citron_qt_components()
if (ENABLE_QT6) if (ENABLE_QT6)
find_package(Qt6 ${QT6_VERSION} COMPONENTS ${YUZU_QT_COMPONENTS}) find_package(Qt6 ${QT6_VERSION} COMPONENTS ${CITRON_QT_COMPONENTS})
endif() endif()
if (Qt6_FOUND) if (Qt6_FOUND)
message(STATUS "citron/CMakeLists.txt: Qt6Widgets_VERSION ${Qt6Widgets_VERSION}, setting QT_VERSION") message(STATUS "citron/CMakeLists.txt: Qt6Widgets_VERSION ${Qt6Widgets_VERSION}, setting QT_VERSION")
@@ -409,13 +409,13 @@ if(ENABLE_QT)
set(QT_DEFAULT_MAJOR_VERSION 5) set(QT_DEFAULT_MAJOR_VERSION 5)
set(QT_MAJOR_VERSION 5) set(QT_MAJOR_VERSION 5)
set(YUZU_USE_QT_MULTIMEDIA ON) set(CITRON_USE_QT_MULTIMEDIA ON)
# Check for system Qt on Linux, fallback to bundled Qt # Check for system Qt on Linux, fallback to bundled Qt
if (UNIX AND NOT APPLE) if (UNIX AND NOT APPLE)
if (NOT YUZU_USE_BUNDLED_QT) if (NOT CITRON_USE_BUNDLED_QT)
find_package(Qt5 ${QT5_VERSION} COMPONENTS Widgets DBus Multimedia) find_package(Qt5 ${QT5_VERSION} COMPONENTS Widgets DBus Multimedia)
endif() endif()
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND (NOT Qt5_FOUND OR YUZU_USE_BUNDLED_QT)) if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND (NOT Qt5_FOUND OR CITRON_USE_BUNDLED_QT))
# Check for dependencies, then enable bundled Qt download # Check for dependencies, then enable bundled Qt download
# Check that the system GLIBCXX version is compatible # Check that the system GLIBCXX version is compatible
@@ -489,23 +489,23 @@ if(ENABLE_QT)
message(FATAL_ERROR "Bundled Qt package missing required dependencies: ${UNRESOLVED_QT_DEPS}") message(FATAL_ERROR "Bundled Qt package missing required dependencies: ${UNRESOLVED_QT_DEPS}")
endif() endif()
set(YUZU_USE_BUNDLED_QT ON CACHE BOOL "Download bundled Qt" FORCE) set(CITRON_USE_BUNDLED_QT ON CACHE BOOL "Download bundled Qt" FORCE)
endif() endif()
if (YUZU_USE_BUNDLED_QT) if (CITRON_USE_BUNDLED_QT)
# Binary package currently does not support Qt webengine, so make sure it's disabled # Binary package currently does not support Qt webengine, so make sure it's disabled
set(YUZU_USE_QT_WEB_ENGINE OFF CACHE BOOL "Use Qt Webengine" FORCE) set(CITRON_USE_QT_WEB_ENGINE OFF CACHE BOOL "Use Qt Webengine" FORCE)
endif() endif()
endif() endif()
set(YUZU_QT_NO_CMAKE_SYSTEM_PATH) set(CITRON_QT_NO_CMAKE_SYSTEM_PATH)
if(YUZU_USE_BUNDLED_QT) if(CITRON_USE_BUNDLED_QT)
if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64) if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64)
set(QT_BUILD qt-5.15.2-msvc2019_64) set(QT_BUILD qt-5.15.2-msvc2019_64)
elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND NOT MINGW AND ARCHITECTURE_x86_64) elseif ((${CMAKE_SYSTEM_NAME} STREQUAL "Linux") AND NOT MINGW AND ARCHITECTURE_x86_64)
set(QT_BUILD qt5_5_15_2) set(QT_BUILD qt5_5_15_2)
else() else()
message(FATAL_ERROR "No bundled Qt binaries for your toolchain. Disable YUZU_USE_BUNDLED_QT and provide your own.") message(FATAL_ERROR "No bundled Qt binaries for your toolchain. Disable CITRON_USE_BUNDLED_QT and provide your own.")
endif() endif()
if (DEFINED QT_BUILD) if (DEFINED QT_BUILD)
@@ -514,25 +514,25 @@ if(ENABLE_QT)
set(QT_PREFIX_HINT HINTS "${QT_PREFIX}") set(QT_PREFIX_HINT HINTS "${QT_PREFIX}")
set(YUZU_QT_NO_CMAKE_SYSTEM_PATH "NO_CMAKE_SYSTEM_PATH") set(CITRON_QT_NO_CMAKE_SYSTEM_PATH "NO_CMAKE_SYSTEM_PATH")
# Binary package for Qt5 has Qt Multimedia # Binary package for Qt5 has Qt Multimedia
set(YUZU_USE_QT_MULTIMEDIA ON CACHE BOOL "Use Qt Multimedia" FORCE) set(CITRON_USE_QT_MULTIMEDIA ON CACHE BOOL "Use Qt Multimedia" FORCE)
endif() endif()
set_citron_qt_components() set_citron_qt_components()
find_package(Qt5 ${QT5_VERSION} COMPONENTS ${YUZU_QT_COMPONENTS} ${QT_PREFIX_HINT} ${YUZU_QT_NO_CMAKE_SYSTEM_PATH}) find_package(Qt5 ${QT5_VERSION} COMPONENTS ${CITRON_QT_COMPONENTS} ${QT_PREFIX_HINT} ${CITRON_QT_NO_CMAKE_SYSTEM_PATH})
endif() endif()
endif() endif()
# find SDL2 exports a bunch of variables that are needed, so its easier to do this outside of the citron_find_package # find SDL2 exports a bunch of variables that are needed, so its easier to do this outside of the citron_find_package
if (ENABLE_SDL2) if (ENABLE_SDL2)
if (YUZU_USE_BUNDLED_SDL2) if (CITRON_USE_BUNDLED_SDL2)
# Detect toolchain and platform # Detect toolchain and platform
if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64) if ((MSVC_VERSION GREATER_EQUAL 1920 AND MSVC_VERSION LESS 1940) AND ARCHITECTURE_x86_64)
set(SDL2_VER "SDL2-2.28.2") set(SDL2_VER "SDL2-2.28.2")
else() else()
message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable YUZU_USE_BUNDLED_SDL2 and provide your own.") message(FATAL_ERROR "No bundled SDL2 binaries for your toolchain. Disable CITRON_USE_BUNDLED_SDL2 and provide your own.")
endif() endif()
if (DEFINED SDL2_VER) if (DEFINED SDL2_VER)
@@ -547,7 +547,7 @@ if (ENABLE_SDL2)
add_library(SDL2::SDL2 INTERFACE IMPORTED) add_library(SDL2::SDL2 INTERFACE IMPORTED)
target_link_libraries(SDL2::SDL2 INTERFACE "${SDL2_LIBRARY}") target_link_libraries(SDL2::SDL2 INTERFACE "${SDL2_LIBRARY}")
target_include_directories(SDL2::SDL2 INTERFACE "${SDL2_INCLUDE_DIR}") target_include_directories(SDL2::SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")
elseif (YUZU_USE_EXTERNAL_SDL2) elseif (CITRON_USE_EXTERNAL_SDL2)
message(STATUS "Using SDL2 from externals.") message(STATUS "Using SDL2 from externals.")
else() else()
find_package(SDL2 2.26.4 REQUIRED) find_package(SDL2 2.26.4 REQUIRED)
@@ -565,12 +565,12 @@ if (UNIX AND NOT APPLE AND NOT ANDROID)
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
pkg_check_modules(LIBVA libva) pkg_check_modules(LIBVA libva)
endif() endif()
if (NOT YUZU_USE_BUNDLED_FFMPEG) if (NOT CITRON_USE_BUNDLED_FFMPEG)
# Use system installed FFmpeg # Use system installed FFmpeg
find_package(FFmpeg 4.3 REQUIRED QUIET COMPONENTS ${FFmpeg_COMPONENTS}) find_package(FFmpeg 4.3 REQUIRED QUIET COMPONENTS ${FFmpeg_COMPONENTS})
endif() endif()
if (WIN32 AND YUZU_CRASH_DUMPS) if (WIN32 AND CITRON_CRASH_DUMPS)
set(BREAKPAD_VER "breakpad-c89f9dd") set(BREAKPAD_VER "breakpad-c89f9dd")
download_bundled_external("breakpad/" ${BREAKPAD_VER} BREAKPAD_PREFIX) download_bundled_external("breakpad/" ${BREAKPAD_VER} BREAKPAD_PREFIX)
@@ -685,7 +685,7 @@ if (MSVC AND CMAKE_GENERATOR STREQUAL "Ninja")
) )
endif() endif()
if (YUZU_USE_FASTER_LD AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if (CITRON_USE_FASTER_LD AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# We will assume that if the compiler is GCC, it will attempt to use ld.bfd by default. # We will assume that if the compiler is GCC, it will attempt to use ld.bfd by default.
# Try to pick a faster linker. # Try to pick a faster linker.
find_program(LLD lld) find_program(LLD lld)

View File

@@ -29,12 +29,12 @@ function(copy_citron_Qt5_deps target_dir)
Qt5Widgets$<$<CONFIG:Debug>:d>.* Qt5Widgets$<$<CONFIG:Debug>:d>.*
Qt5Network$<$<CONFIG:Debug>:d>.* Qt5Network$<$<CONFIG:Debug>:d>.*
) )
if (YUZU_USE_QT_MULTIMEDIA) if (CITRON_USE_QT_MULTIMEDIA)
windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST} windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST}
Qt5Multimedia$<$<CONFIG:Debug>:d>.* Qt5Multimedia$<$<CONFIG:Debug>:d>.*
) )
endif() endif()
if (YUZU_USE_QT_WEB_ENGINE) if (CITRON_USE_QT_WEB_ENGINE)
windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST} windows_copy_files(${target_dir} ${Qt5_DLL_DIR} ${DLL_DEST}
Qt5Network$<$<CONFIG:Debug>:d>.* Qt5Network$<$<CONFIG:Debug>:d>.*
Qt5Positioning$<$<CONFIG:Debug>:d>.* Qt5Positioning$<$<CONFIG:Debug>:d>.*

View File

@@ -63,7 +63,7 @@ if (ENABLE_LIBUSB AND NOT TARGET libusb::usb)
endif() endif()
# SDL2 # SDL2
if (YUZU_USE_EXTERNAL_SDL2) if (CITRON_USE_EXTERNAL_SDL2)
if (NOT WIN32) if (NOT WIN32)
# Citron itself needs: Atomic Audio Events Joystick Haptic Sensor Threads Timers # Citron itself needs: Atomic Audio Events Joystick Haptic Sensor Threads Timers
# Since 2.0.18 Atomic+Threads required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095) # Since 2.0.18 Atomic+Threads required for HIDAPI/libusb (see https://github.com/libsdl-org/SDL/issues/5095)
@@ -142,7 +142,7 @@ if (NOT TARGET Opus::opus)
endif() endif()
# FFMpeg # FFMpeg
if (YUZU_USE_BUNDLED_FFMPEG) if (CITRON_USE_BUNDLED_FFMPEG)
add_subdirectory(ffmpeg) add_subdirectory(ffmpeg)
set(FFmpeg_PATH "${FFmpeg_PATH}" PARENT_SCOPE) set(FFmpeg_PATH "${FFmpeg_PATH}" PARENT_SCOPE)
set(FFmpeg_LDFLAGS "${FFmpeg_LDFLAGS}" PARENT_SCOPE) set(FFmpeg_LDFLAGS "${FFmpeg_LDFLAGS}" PARENT_SCOPE)
@@ -151,12 +151,12 @@ if (YUZU_USE_BUNDLED_FFMPEG)
endif() endif()
# Vulkan-Headers # Vulkan-Headers
if (YUZU_USE_EXTERNAL_VULKAN_HEADERS) if (CITRON_USE_EXTERNAL_VULKAN_HEADERS)
add_subdirectory(Vulkan-Headers) add_subdirectory(Vulkan-Headers)
endif() endif()
# Vulkan-Utility-Libraries # Vulkan-Utility-Libraries
if (YUZU_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES) if (CITRON_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES)
add_subdirectory(Vulkan-Utility-Libraries) add_subdirectory(Vulkan-Utility-Libraries)
endif() endif()
@@ -210,7 +210,7 @@ endif()
# Breakpad # Breakpad
# https://github.com/microsoft/vcpkg/blob/master/ports/breakpad/CMakeLists.txt # https://github.com/microsoft/vcpkg/blob/master/ports/breakpad/CMakeLists.txt
if (YUZU_CRASH_DUMPS AND NOT TARGET libbreakpad_client) if (CITRON_CRASH_DUMPS AND NOT TARGET libbreakpad_client)
set(BREAKPAD_WIN32_DEFINES set(BREAKPAD_WIN32_DEFINES
NOMINMAX NOMINMAX
UNICODE UNICODE

View File

@@ -32,7 +32,7 @@ set(NX_TZDB_ARCHIVE "${CMAKE_CURRENT_BINARY_DIR}/${NX_TZDB_VERSION}.zip")
set(NX_TZDB_ROMFS_DIR "${CMAKE_CURRENT_BINARY_DIR}/nx_tzdb") set(NX_TZDB_ROMFS_DIR "${CMAKE_CURRENT_BINARY_DIR}/nx_tzdb")
if ((NOT CAN_BUILD_NX_TZDB OR YUZU_DOWNLOAD_TIME_ZONE_DATA) AND NOT EXISTS ${NX_TZDB_ROMFS_DIR}) if ((NOT CAN_BUILD_NX_TZDB OR CITRON_DOWNLOAD_TIME_ZONE_DATA) AND NOT EXISTS ${NX_TZDB_ROMFS_DIR})
set(NX_TZDB_DOWNLOAD_URL "https://github.com/lat9nq/tzdb_to_nx/releases/download/${NX_TZDB_VERSION}/${NX_TZDB_VERSION}.zip") set(NX_TZDB_DOWNLOAD_URL "https://github.com/lat9nq/tzdb_to_nx/releases/download/${NX_TZDB_VERSION}/${NX_TZDB_VERSION}.zip")
message(STATUS "Downloading time zone data from ${NX_TZDB_DOWNLOAD_URL}...") message(STATUS "Downloading time zone data from ${NX_TZDB_DOWNLOAD_URL}...")
@@ -48,7 +48,7 @@ if ((NOT CAN_BUILD_NX_TZDB OR YUZU_DOWNLOAD_TIME_ZONE_DATA) AND NOT EXISTS ${NX_
${NX_TZDB_ARCHIVE} ${NX_TZDB_ARCHIVE}
DESTINATION DESTINATION
${NX_TZDB_ROMFS_DIR}) ${NX_TZDB_ROMFS_DIR})
elseif (CAN_BUILD_NX_TZDB AND NOT YUZU_DOWNLOAD_TIME_ZONE_DATA) elseif (CAN_BUILD_NX_TZDB AND NOT CITRON_DOWNLOAD_TIME_ZONE_DATA)
add_subdirectory(tzdb_to_nx) add_subdirectory(tzdb_to_nx)
add_dependencies(nx_tzdb x80e) add_dependencies(nx_tzdb x80e)

View File

@@ -88,7 +88,7 @@ if (MSVC)
/wd4702 # unreachable code (when used with LTO) /wd4702 # unreachable code (when used with LTO)
) )
if (USE_CCACHE OR YUZU_USE_PRECOMPILED_HEADERS) if (USE_CCACHE OR CITRON_USE_PRECOMPILED_HEADERS)
# when caching, we need to use /Z7 to downgrade debug info to use an older but more cacheable format # when caching, we need to use /Z7 to downgrade debug info to use an older but more cacheable format
# Precompiled headers are deleted if not using /Z7. See https://github.com/nanoant/CMakePCHCompiler/issues/21 # Precompiled headers are deleted if not using /Z7. See https://github.com/nanoant/CMakePCHCompiler/issues/21
add_compile_options(/Z7) add_compile_options(/Z7)
@@ -192,11 +192,11 @@ add_subdirectory(input_common)
add_subdirectory(frontend_common) add_subdirectory(frontend_common)
add_subdirectory(shader_recompiler) add_subdirectory(shader_recompiler)
if (YUZU_ROOM) if (CITRON_ROOM)
add_subdirectory(dedicated_room) add_subdirectory(dedicated_room)
endif() endif()
if (YUZU_TESTS) if (CITRON_TESTS)
add_subdirectory(tests) add_subdirectory(tests)
endif() endif()

View File

@@ -172,9 +172,9 @@ android {
"-DENABLE_WEB_SERVICE=0", // Don't use telemetry "-DENABLE_WEB_SERVICE=0", // Don't use telemetry
"-DBUNDLE_SPEEX=ON", "-DBUNDLE_SPEEX=ON",
"-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work "-DANDROID_ARM_NEON=true", // cryptopp requires Neon to work
"-DYUZU_USE_BUNDLED_VCPKG=ON", "-DCITRON_USE_BUNDLED_VCPKG=ON",
"-DYUZU_USE_BUNDLED_FFMPEG=ON", "-DCITRON_USE_BUNDLED_FFMPEG=ON",
"-DYUZU_ENABLE_LTO=ON", "-DCITRON_ENABLE_LTO=ON",
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
) )

View File

@@ -262,7 +262,7 @@ if (ANDROID)
target_compile_definitions(audio_core PRIVATE HAVE_OBOE) target_compile_definitions(audio_core PRIVATE HAVE_OBOE)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(audio_core PRIVATE precompiled_headers.h) target_precompile_headers(audio_core PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -8,7 +8,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Set the RPATH for Qt Libraries # Set the RPATH for Qt Libraries
# This must be done before the `citron` target is created # This must be done before the `citron` target is created
if (YUZU_USE_BUNDLED_QT AND (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")) if (CITRON_USE_BUNDLED_QT AND (${CMAKE_SYSTEM_NAME} STREQUAL "Linux"))
set(CMAKE_BUILD_RPATH "${CMAKE_BINARY_DIR}/bin/lib/") set(CMAKE_BUILD_RPATH "${CMAKE_BINARY_DIR}/bin/lib/")
endif() endif()
@@ -233,14 +233,14 @@ add_executable(citron
citron.rc citron.rc
) )
if (YUZU_CRASH_DUMPS) if (CITRON_CRASH_DUMPS)
target_sources(citron PRIVATE target_sources(citron PRIVATE
breakpad.cpp breakpad.cpp
breakpad.h breakpad.h
) )
target_link_libraries(citron PRIVATE libbreakpad_client) target_link_libraries(citron PRIVATE libbreakpad_client)
target_compile_definitions(citron PRIVATE YUZU_CRASH_DUMPS) target_compile_definitions(citron PRIVATE CITRON_CRASH_DUMPS)
endif() endif()
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
@@ -256,7 +256,7 @@ file(GLOB_RECURSE ICONS ${PROJECT_SOURCE_DIR}/dist/icons/*)
file(GLOB_RECURSE THEMES ${PROJECT_SOURCE_DIR}/dist/qt_themes/*) file(GLOB_RECURSE THEMES ${PROJECT_SOURCE_DIR}/dist/qt_themes/*)
if (ENABLE_QT_TRANSLATION) if (ENABLE_QT_TRANSLATION)
set(YUZU_QT_LANGUAGES "${PROJECT_SOURCE_DIR}/dist/languages" CACHE PATH "Path to the translation bundle for the Qt frontend") set(CITRON_QT_LANGUAGES "${PROJECT_SOURCE_DIR}/dist/languages" CACHE PATH "Path to the translation bundle for the Qt frontend")
option(GENERATE_QT_TRANSLATION "Generate en.ts as the translation source file" OFF) option(GENERATE_QT_TRANSLATION "Generate en.ts as the translation source file" OFF)
option(WORKAROUND_BROKEN_LUPDATE "Run lupdate directly through CMake if Qt's convenience wrappers don't work" OFF) option(WORKAROUND_BROKEN_LUPDATE "Run lupdate directly through CMake if Qt's convenience wrappers don't work" OFF)
@@ -265,15 +265,15 @@ if (ENABLE_QT_TRANSLATION)
get_target_property(SRCS citron SOURCES) get_target_property(SRCS citron SOURCES)
# these calls to qt_create_translation also creates a rule to generate en.qm which conflicts with providing english plurals # these calls to qt_create_translation also creates a rule to generate en.qm which conflicts with providing english plurals
# so we have to set a OUTPUT_LOCATION so that we don't have multiple rules to generate en.qm # so we have to set a OUTPUT_LOCATION so that we don't have multiple rules to generate en.qm
set_source_files_properties(${YUZU_QT_LANGUAGES}/en.ts PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/translations") set_source_files_properties(${CITRON_QT_LANGUAGES}/en.ts PROPERTIES OUTPUT_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/translations")
if (WORKAROUND_BROKEN_LUPDATE) if (WORKAROUND_BROKEN_LUPDATE)
add_custom_command(OUTPUT ${YUZU_QT_LANGUAGES}/en.ts add_custom_command(OUTPUT ${CITRON_QT_LANGUAGES}/en.ts
COMMAND lupdate COMMAND lupdate
-source-language en_US -source-language en_US
-target-language en_US -target-language en_US
${SRCS} ${SRCS}
${UIS} ${UIS}
-ts ${YUZU_QT_LANGUAGES}/en.ts -ts ${CITRON_QT_LANGUAGES}/en.ts
DEPENDS DEPENDS
${SRCS} ${SRCS}
${UIS} ${UIS}
@@ -284,7 +284,7 @@ if (ENABLE_QT_TRANSLATION)
qt_create_translation(QM_FILES qt_create_translation(QM_FILES
${SRCS} ${SRCS}
${UIS} ${UIS}
${YUZU_QT_LANGUAGES}/en.ts ${CITRON_QT_LANGUAGES}/en.ts
OPTIONS OPTIONS
-source-language en_US -source-language en_US
-target-language en_US -target-language en_US
@@ -312,12 +312,12 @@ if (ENABLE_QT_TRANSLATION)
qt_create_translation(QM_FILES ${SRCS} ${UIS} ${GENERATED_PLURALS_FILE} OPTIONS -pluralonly -source-language en_US -target-language en_US) qt_create_translation(QM_FILES ${SRCS} ${UIS} ${GENERATED_PLURALS_FILE} OPTIONS -pluralonly -source-language en_US -target-language en_US)
endif() endif()
add_custom_target(translation ALL DEPENDS ${YUZU_QT_LANGUAGES}/en.ts ${GENERATED_PLURALS_FILE}) add_custom_target(translation ALL DEPENDS ${CITRON_QT_LANGUAGES}/en.ts ${GENERATED_PLURALS_FILE})
endif() endif()
# Find all TS files except en.ts # Find all TS files except en.ts
file(GLOB_RECURSE LANGUAGES_TS ${YUZU_QT_LANGUAGES}/*.ts) file(GLOB_RECURSE LANGUAGES_TS ${CITRON_QT_LANGUAGES}/*.ts)
list(REMOVE_ITEM LANGUAGES_TS ${YUZU_QT_LANGUAGES}/en.ts) list(REMOVE_ITEM LANGUAGES_TS ${CITRON_QT_LANGUAGES}/en.ts)
# Compile TS files to QM files # Compile TS files to QM files
qt_add_translation(LANGUAGES_QM ${LANGUAGES_TS}) qt_add_translation(LANGUAGES_QM ${LANGUAGES_TS})
@@ -412,8 +412,8 @@ target_compile_definitions(citron PRIVATE
-DQT_NO_URL_CAST_FROM_STRING -DQT_NO_URL_CAST_FROM_STRING
) )
if (YUZU_ENABLE_COMPATIBILITY_REPORTING) if (CITRON_ENABLE_COMPATIBILITY_REPORTING)
target_compile_definitions(citron PRIVATE -DYUZU_ENABLE_COMPATIBILITY_REPORTING) target_compile_definitions(citron PRIVATE -DCITRON_ENABLE_COMPATIBILITY_REPORTING)
endif() endif()
if (USE_DISCORD_PRESENCE) if (USE_DISCORD_PRESENCE)
@@ -429,14 +429,14 @@ if (ENABLE_WEB_SERVICE)
target_compile_definitions(citron PRIVATE -DENABLE_WEB_SERVICE) target_compile_definitions(citron PRIVATE -DENABLE_WEB_SERVICE)
endif() endif()
if (YUZU_USE_QT_MULTIMEDIA) if (CITRON_USE_QT_MULTIMEDIA)
target_link_libraries(citron PRIVATE Qt${QT_MAJOR_VERSION}::Multimedia) target_link_libraries(citron PRIVATE Qt${QT_MAJOR_VERSION}::Multimedia)
target_compile_definitions(citron PRIVATE -DYUZU_USE_QT_MULTIMEDIA) target_compile_definitions(citron PRIVATE -DCITRON_USE_QT_MULTIMEDIA)
endif () endif ()
if (YUZU_USE_QT_WEB_ENGINE) if (CITRON_USE_QT_WEB_ENGINE)
target_link_libraries(citron PRIVATE Qt${QT_MAJOR_VERSION}::WebEngineCore Qt${QT_MAJOR_VERSION}::WebEngineWidgets) target_link_libraries(citron PRIVATE Qt${QT_MAJOR_VERSION}::WebEngineCore Qt${QT_MAJOR_VERSION}::WebEngineWidgets)
target_compile_definitions(citron PRIVATE -DYUZU_USE_QT_WEB_ENGINE) target_compile_definitions(citron PRIVATE -DCITRON_USE_QT_WEB_ENGINE)
endif () endif ()
if(UNIX AND NOT APPLE) if(UNIX AND NOT APPLE)
@@ -444,11 +444,11 @@ if(UNIX AND NOT APPLE)
endif() endif()
if (WIN32 AND QT_VERSION VERSION_GREATER_EQUAL 6) if (WIN32 AND QT_VERSION VERSION_GREATER_EQUAL 6)
set(YUZU_EXE_DIR "$<TARGET_FILE_DIR:citron>") set(CITRON_EXE_DIR "$<TARGET_FILE_DIR:citron>")
add_custom_command(TARGET citron POST_BUILD COMMAND ${WINDEPLOYQT_EXECUTABLE} "${YUZU_EXE_DIR}/citron.exe" --dir "${YUZU_EXE_DIR}" --libdir "${YUZU_EXE_DIR}" --plugindir "${YUZU_EXE_DIR}/plugins" --no-compiler-runtime --no-opengl-sw --no-system-d3d-compiler --no-translations --verbose 0) add_custom_command(TARGET citron POST_BUILD COMMAND ${WINDEPLOYQT_EXECUTABLE} "${CITRON_EXE_DIR}/citron.exe" --dir "${CITRON_EXE_DIR}" --libdir "${CITRON_EXE_DIR}" --plugindir "${CITRON_EXE_DIR}/plugins" --no-compiler-runtime --no-opengl-sw --no-system-d3d-compiler --no-translations --verbose 0)
endif() endif()
if (YUZU_USE_BUNDLED_QT AND QT_VERSION VERSION_LESS 6) if (CITRON_USE_BUNDLED_QT AND QT_VERSION VERSION_LESS 6)
include(CopyCitronQt5Deps) include(CopyCitronQt5Deps)
copy_citron_Qt5_deps(citron) copy_citron_Qt5_deps(citron)
endif() endif()
@@ -473,7 +473,7 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
target_link_libraries(citron PRIVATE dynarmic::dynarmic) target_link_libraries(citron PRIVATE dynarmic::dynarmic)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(citron PRIVATE precompiled_headers.h) target_precompile_headers(citron PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
#include <bit> #include <bit>
#include <QApplication> #include <QApplication>
@@ -24,7 +24,7 @@
#include "citron/main.h" #include "citron/main.h"
#include "citron/util/url_request_interceptor.h" #include "citron/util/url_request_interceptor.h"
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
namespace { namespace {

View File

@@ -8,7 +8,7 @@
#include <QObject> #include <QObject>
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
#include <QWebEngineView> #include <QWebEngineView>
#endif #endif
@@ -30,7 +30,7 @@ namespace InputCommon {
class InputSubsystem; class InputSubsystem;
} }
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
enum class UserAgent { enum class UserAgent {
WebApplet, WebApplet,

View File

@@ -13,7 +13,7 @@
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#include "common/settings_enums.h" #include "common/settings_enums.h"
#include "uisettings.h" #include "uisettings.h"
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
#include <QCamera> #include <QCamera>
#include <QCameraImageCapture> #include <QCameraImageCapture>
#include <QCameraInfo> #include <QCameraInfo>
@@ -760,7 +760,7 @@ void GRenderWindow::TouchEndEvent() {
} }
void GRenderWindow::InitializeCamera() { void GRenderWindow::InitializeCamera() {
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
constexpr auto camera_update_ms = std::chrono::milliseconds{50}; // (50ms, 20Hz) constexpr auto camera_update_ms = std::chrono::milliseconds{50}; // (50ms, 20Hz)
if (!Settings::values.enable_ir_sensor) { if (!Settings::values.enable_ir_sensor) {
return; return;
@@ -821,7 +821,7 @@ void GRenderWindow::InitializeCamera() {
} }
void GRenderWindow::FinalizeCamera() { void GRenderWindow::FinalizeCamera() {
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
if (camera_timer) { if (camera_timer) {
camera_timer->stop(); camera_timer->stop();
} }
@@ -832,7 +832,7 @@ void GRenderWindow::FinalizeCamera() {
} }
void GRenderWindow::RequestCameraCapture() { void GRenderWindow::RequestCameraCapture() {
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
if (!Settings::values.enable_ir_sensor) { if (!Settings::values.enable_ir_sensor) {
return; return;
} }
@@ -853,7 +853,7 @@ void GRenderWindow::RequestCameraCapture() {
} }
void GRenderWindow::OnCameraCapture(int requestId, const QImage& img) { void GRenderWindow::OnCameraCapture(int requestId, const QImage& img) {
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
// TODO: Capture directly in the format and resolution needed // TODO: Capture directly in the format and resolution needed
const auto camera_width = input_subsystem->GetCamera()->getImageWidth(); const auto camera_width = input_subsystem->GetCamera()->getImageWidth();
const auto camera_height = input_subsystem->GetCamera()->getImageHeight(); const auto camera_height = input_subsystem->GetCamera()->getImageHeight();

View File

@@ -261,7 +261,7 @@ private:
bool first_frame = false; bool first_frame = false;
InputCommon::TasInput::TasState last_tas_state; InputCommon::TasInput::TasState last_tas_state;
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
bool is_virtual_camera; bool is_virtual_camera;
int pending_camera_snapshots; int pending_camera_snapshots;
std::vector<u32> camera_data; std::vector<u32> camera_data;

View File

@@ -3,7 +3,7 @@
#include <memory> #include <memory>
#include <QtCore> #include <QtCore>
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
#include <QCameraImageCapture> #include <QCameraImageCapture>
#include <QCameraInfo> #include <QCameraInfo>
#endif #endif
@@ -36,7 +36,7 @@ ConfigureCamera::ConfigureCamera(QWidget* parent, InputCommon::InputSubsystem* i
ConfigureCamera::~ConfigureCamera() = default; ConfigureCamera::~ConfigureCamera() = default;
void ConfigureCamera::PreviewCamera() { void ConfigureCamera::PreviewCamera() {
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
const auto index = ui->ir_sensor_combo_box->currentIndex(); const auto index = ui->ir_sensor_combo_box->currentIndex();
bool camera_found = false; bool camera_found = false;
const QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); const QList<QCameraInfo> cameras = QCameraInfo::availableCameras();
@@ -138,7 +138,7 @@ void ConfigureCamera::LoadConfiguration() {
ui->ir_sensor_combo_box->clear(); ui->ir_sensor_combo_box->clear();
input_devices.push_back("Auto"); input_devices.push_back("Auto");
ui->ir_sensor_combo_box->addItem(tr("Auto")); ui->ir_sensor_combo_box->addItem(tr("Auto"));
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
const auto cameras = QCameraInfo::availableCameras(); const auto cameras = QCameraInfo::availableCameras();
for (const QCameraInfo& cameraInfo : cameras) { for (const QCameraInfo& cameraInfo : cameras) {
input_devices.push_back(cameraInfo.deviceName().toStdString()); input_devices.push_back(cameraInfo.deviceName().toStdString());

View File

@@ -46,7 +46,7 @@ private:
bool is_virtual_camera; bool is_virtual_camera;
int pending_snapshots; int pending_snapshots;
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && YUZU_USE_QT_MULTIMEDIA #if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0)) && CITRON_USE_QT_MULTIMEDIA
std::unique_ptr<QCamera> camera; std::unique_ptr<QCamera> camera;
std::unique_ptr<QCameraImageCapture> camera_capture; std::unique_ptr<QCameraImageCapture> camera_capture;
#endif #endif

View File

@@ -75,7 +75,7 @@ void ConfigureDebug::SetConfiguration() {
ui->extended_logging->setChecked(Settings::values.extended_logging.GetValue()); ui->extended_logging->setChecked(Settings::values.extended_logging.GetValue());
ui->perform_vulkan_check->setChecked(Settings::values.perform_vulkan_check.GetValue()); ui->perform_vulkan_check->setChecked(Settings::values.perform_vulkan_check.GetValue());
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
ui->disable_web_applet->setChecked(UISettings::values.disable_web_applet.GetValue()); ui->disable_web_applet->setChecked(UISettings::values.disable_web_applet.GetValue());
#else #else
ui->disable_web_applet->setEnabled(false); ui->disable_web_applet->setEnabled(false);

View File

@@ -197,7 +197,7 @@ void ConfigureInputAdvanced::UpdateUIEnabled() {
ui->debug_configure->setEnabled(ui->debug_enabled->isChecked()); ui->debug_configure->setEnabled(ui->debug_enabled->isChecked());
ui->touchscreen_advanced->setEnabled(ui->touchscreen_enabled->isChecked()); ui->touchscreen_advanced->setEnabled(ui->touchscreen_enabled->isChecked());
ui->ring_controller_configure->setEnabled(ui->enable_ring_controller->isChecked()); ui->ring_controller_configure->setEnabled(ui->enable_ring_controller->isChecked());
#if QT_VERSION > QT_VERSION_CHECK(6, 0, 0) || !defined(YUZU_USE_QT_MULTIMEDIA) #if QT_VERSION > QT_VERSION_CHECK(6, 0, 0) || !defined(CITRON_USE_QT_MULTIMEDIA)
ui->enable_ir_sensor->setEnabled(false); ui->enable_ir_sensor->setEnabled(false);
ui->camera_configure->setEnabled(false); ui->camera_configure->setEnabled(false);
#endif #endif

View File

@@ -19,7 +19,7 @@
// Mingw seems to not have QMovie at all. If QMovie is missing then use a single frame instead of an // Mingw seems to not have QMovie at all. If QMovie is missing then use a single frame instead of an
// showing the full animation // showing the full animation
#if !YUZU_QT_MOVIE_MISSING #if !CITRON_QT_MOVIE_MISSING
#include <QMovie> #include <QMovie>
#endif #endif
@@ -96,7 +96,7 @@ LoadingScreen::~LoadingScreen() = default;
void LoadingScreen::Prepare(Loader::AppLoader& loader) { void LoadingScreen::Prepare(Loader::AppLoader& loader) {
std::vector<u8> buffer; std::vector<u8> buffer;
if (loader.ReadBanner(buffer) == Loader::ResultStatus::Success) { if (loader.ReadBanner(buffer) == Loader::ResultStatus::Success) {
#ifdef YUZU_QT_MOVIE_MISSING #ifdef CITRON_QT_MOVIE_MISSING
QPixmap map; QPixmap map;
map.loadFromData(buffer.data(), buffer.size()); map.loadFromData(buffer.data(), buffer.size());
ui->banner->setPixmap(map); ui->banner->setPixmap(map);
@@ -194,7 +194,7 @@ void LoadingScreen::paintEvent(QPaintEvent* event) {
} }
void LoadingScreen::Clear() { void LoadingScreen::Clear() {
#ifndef YUZU_QT_MOVIE_MISSING #ifndef CITRON_QT_MOVIE_MISSING
animation.reset(); animation.reset();
backing_buf.reset(); backing_buf.reset();
backing_mem.reset(); backing_mem.reset();

View File

@@ -10,7 +10,7 @@
#include <QtGlobal> #include <QtGlobal>
#if !QT_CONFIG(movie) #if !QT_CONFIG(movie)
#define YUZU_QT_MOVIE_MISSING 1 #define CITRON_QT_MOVIE_MISSING 1
#endif #endif
namespace Loader { namespace Loader {
@@ -64,7 +64,7 @@ signals:
void Hidden(); void Hidden();
private: private:
#ifndef YUZU_QT_MOVIE_MISSING #ifndef CITRON_QT_MOVIE_MISSING
std::unique_ptr<QMovie> animation; std::unique_ptr<QMovie> animation;
std::unique_ptr<QBuffer> backing_buf; std::unique_ptr<QBuffer> backing_buf;
std::unique_ptr<QByteArray> backing_mem; std::unique_ptr<QByteArray> backing_mem;

View File

@@ -163,7 +163,7 @@ static FileSys::VirtualFile VfsDirectoryCreateFileWrapper(const FileSys::Virtual
#include "citron/util/clickable_label.h" #include "citron/util/clickable_label.h"
#include "citron/vk_device_info.h" #include "citron/vk_device_info.h"
#ifdef YUZU_CRASH_DUMPS #ifdef CITRON_CRASH_DUMPS
#include "citron/breakpad.h" #include "citron/breakpad.h"
#endif #endif
@@ -848,7 +848,7 @@ void GMainWindow::SoftwareKeyboardExit() {
void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url, void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
const std::string& additional_args, bool is_local) { const std::string& additional_args, bool is_local) {
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
// Raw input breaks with the web applet, Disable web applets if enabled // Raw input breaks with the web applet, Disable web applets if enabled
if (UISettings::values.disable_web_applet || Settings::values.enable_raw_input) { if (UISettings::values.disable_web_applet || Settings::values.enable_raw_input) {
@@ -989,7 +989,7 @@ void GMainWindow::WebBrowserOpenWebPage(const std::string& main_url,
} }
void GMainWindow::WebBrowserRequestExit() { void GMainWindow::WebBrowserRequestExit() {
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
if (web_applet) { if (web_applet) {
web_applet->SetExitReason(Service::AM::Frontend::WebExitReason::ExitRequested); web_applet->SetExitReason(Service::AM::Frontend::WebExitReason::ExitRequested);
web_applet->SetFinished(true); web_applet->SetFinished(true);
@@ -998,7 +998,7 @@ void GMainWindow::WebBrowserRequestExit() {
} }
void GMainWindow::InitializeWidgets() { void GMainWindow::InitializeWidgets() {
#ifdef YUZU_ENABLE_COMPATIBILITY_REPORTING #ifdef CITRON_ENABLE_COMPATIBILITY_REPORTING
ui->action_Report_Compatibility->setVisible(true); ui->action_Report_Compatibility->setVisible(true);
#endif #endif
render_window = new GRenderWindow(this, emu_thread.get(), input_subsystem, *system); render_window = new GRenderWindow(this, emu_thread.get(), input_subsystem, *system);
@@ -5258,7 +5258,7 @@ int main(int argc, char* argv[]) {
return 0; return 0;
} }
#ifdef YUZU_CRASH_DUMPS #ifdef CITRON_CRASH_DUMPS
Breakpad::InstallCrashHandler(); Breakpad::InstallCrashHandler();
#endif #endif

View File

@@ -26,8 +26,8 @@ public:
explicit PlayTimeManager(Service::Account::ProfileManager& profile_manager); explicit PlayTimeManager(Service::Account::ProfileManager& profile_manager);
~PlayTimeManager(); ~PlayTimeManager();
YUZU_NON_COPYABLE(PlayTimeManager); CITRON_NON_COPYABLE(PlayTimeManager);
YUZU_NON_MOVEABLE(PlayTimeManager); CITRON_NON_MOVEABLE(PlayTimeManager);
u64 GetPlayTime(u64 program_id) const; u64 GetPlayTime(u64 program_id) const;
void ResetProgramPlayTime(u64 program_id); void ResetProgramPlayTime(u64 program_id);

View File

@@ -7,7 +7,7 @@
#include <cstring> #include <cstring>
#include <processthreadsapi.h> #include <processthreadsapi.h>
#include <windows.h> #include <windows.h>
#elif defined(YUZU_UNIX) #elif defined(CITRON_UNIX)
#include <cstring> #include <cstring>
#include <errno.h> #include <errno.h>
#include <spawn.h> #include <spawn.h>
@@ -56,7 +56,7 @@ bool CheckEnvVars(bool* is_child) {
IS_CHILD_ENV_VAR, GetLastError()); IS_CHILD_ENV_VAR, GetLastError());
return true; return true;
} }
#elif defined(YUZU_UNIX) #elif defined(CITRON_UNIX)
const char* startup_check_var = getenv(STARTUP_CHECK_ENV_VAR); const char* startup_check_var = getenv(STARTUP_CHECK_ENV_VAR);
if (startup_check_var != nullptr && if (startup_check_var != nullptr &&
std::strncmp(startup_check_var, ENV_VAR_ENABLED_TEXT, 8) == 0) { std::strncmp(startup_check_var, ENV_VAR_ENABLED_TEXT, 8) == 0) {
@@ -110,7 +110,7 @@ bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulka
STARTUP_CHECK_ENV_VAR, GetLastError()); STARTUP_CHECK_ENV_VAR, GetLastError());
} }
#elif defined(YUZU_UNIX) #elif defined(CITRON_UNIX)
const int env_var_set = setenv(STARTUP_CHECK_ENV_VAR, ENV_VAR_ENABLED_TEXT, 1); const int env_var_set = setenv(STARTUP_CHECK_ENV_VAR, ENV_VAR_ENABLED_TEXT, 1);
if (env_var_set == -1) { if (env_var_set == -1) {
const int err = errno; const int err = errno;
@@ -175,7 +175,7 @@ bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags) {
return true; return true;
} }
#elif defined(YUZU_UNIX) #elif defined(CITRON_UNIX)
pid_t SpawnChild(const char* arg0) { pid_t SpawnChild(const char* arg0) {
const pid_t pid = fork(); const pid_t pid = fork();

View File

@@ -5,12 +5,12 @@
#ifdef _WIN32 #ifdef _WIN32
#include <windows.h> #include <windows.h>
#elif defined(YUZU_UNIX) #elif defined(CITRON_UNIX)
#include <sys/types.h> #include <sys/types.h>
#endif #endif
constexpr char IS_CHILD_ENV_VAR[] = "YUZU_IS_CHILD"; constexpr char IS_CHILD_ENV_VAR[] = "CITRON_IS_CHILD";
constexpr char STARTUP_CHECK_ENV_VAR[] = "YUZU_DO_STARTUP_CHECKS"; constexpr char STARTUP_CHECK_ENV_VAR[] = "CITRON_DO_STARTUP_CHECKS";
constexpr char ENV_VAR_ENABLED_TEXT[] = "ON"; constexpr char ENV_VAR_ENABLED_TEXT[] = "ON";
void CheckVulkan(); void CheckVulkan();
@@ -19,6 +19,6 @@ bool StartupChecks(const char* arg0, bool* has_broken_vulkan, bool perform_vulka
#ifdef _WIN32 #ifdef _WIN32
bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags); bool SpawnChild(const char* arg0, PROCESS_INFORMATION* pi, int flags);
#elif defined(YUZU_UNIX) #elif defined(CITRON_UNIX)
pid_t SpawnChild(const char* arg0); pid_t SpawnChild(const char* arg0);
#endif #endif

View File

@@ -1,7 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project // SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later // SPDX-License-Identifier: GPL-2.0-or-later
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
#include "citron/util/url_request_interceptor.h" #include "citron/util/url_request_interceptor.h"

View File

@@ -3,7 +3,7 @@
#pragma once #pragma once
#ifdef YUZU_USE_QT_WEB_ENGINE #ifdef CITRON_USE_QT_WEB_ENGINE
#include <QObject> #include <QObject>
#include <QWebEngineUrlRequestInterceptor> #include <QWebEngineUrlRequestInterceptor>

View File

@@ -58,7 +58,7 @@ if (MSVC)
copy_citron_SDL_deps(citron-cmd) copy_citron_SDL_deps(citron-cmd)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(citron-cmd PRIVATE precompiled_headers.h) target_precompile_headers(citron-cmd PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -9,7 +9,7 @@
// Icon with lowest ID value placed first to ensure application icon // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems. // remains consistent on all systems.
YUZU_ICON ICON "../../dist/citron.ico" CITRON_ICON ICON "../../dist/citron.ico"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@@ -12,7 +12,7 @@
#include "video_core/renderer_null/renderer_null.h" #include "video_core/renderer_null/renderer_null.h"
#include "citron_cmd/emu_window/emu_window_sdl2_null.h" #include "citron_cmd/emu_window/emu_window_sdl2_null.h"
#ifdef YUZU_USE_EXTERNAL_SDL2 #ifdef CITRON_USE_EXTERNAL_SDL2
// Include this before SDL.h to prevent the external from including a dummy // Include this before SDL.h to prevent the external from including a dummy
#define USING_GENERATED_CONFIG_H #define USING_GENERATED_CONFIG_H
#include <SDL_config.h> #include <SDL_config.h>

View File

@@ -161,8 +161,8 @@ add_library(common STATIC
zstd_compression.h zstd_compression.h
) )
if (YUZU_ENABLE_PORTABLE) if (CITRON_ENABLE_PORTABLE)
add_compile_definitions(YUZU_ENABLE_PORTABLE) add_compile_definitions(CITRON_ENABLE_PORTABLE)
endif() endif()
if (WIN32) if (WIN32)
@@ -262,7 +262,7 @@ if (ANDROID)
target_link_libraries(common PRIVATE android) target_link_libraries(common PRIVATE android)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(common PRIVATE precompiled_headers.h) target_precompile_headers(common PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -14,13 +14,13 @@ void assert_fail_impl();
[[noreturn]] void unreachable_impl(); [[noreturn]] void unreachable_impl();
#ifdef _MSC_VER #ifdef _MSC_VER
#define YUZU_NO_INLINE __declspec(noinline) #define CITRON_NO_INLINE __declspec(noinline)
#else #else
#define YUZU_NO_INLINE __attribute__((noinline)) #define CITRON_NO_INLINE __attribute__((noinline))
#endif #endif
#define ASSERT(_a_) \ #define ASSERT(_a_) \
([&]() YUZU_NO_INLINE { \ ([&]() CITRON_NO_INLINE { \
if (!(_a_)) [[unlikely]] { \ if (!(_a_)) [[unlikely]] { \
LOG_CRITICAL(Debug, "Assertion Failed!"); \ LOG_CRITICAL(Debug, "Assertion Failed!"); \
assert_fail_impl(); \ assert_fail_impl(); \
@@ -28,7 +28,7 @@ void assert_fail_impl();
}()) }())
#define ASSERT_MSG(_a_, ...) \ #define ASSERT_MSG(_a_, ...) \
([&]() YUZU_NO_INLINE { \ ([&]() CITRON_NO_INLINE { \
if (!(_a_)) [[unlikely]] { \ if (!(_a_)) [[unlikely]] { \
LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); \ LOG_CRITICAL(Debug, "Assertion Failed!\n" __VA_ARGS__); \
assert_fail_impl(); \ assert_fail_impl(); \

View File

@@ -109,11 +109,11 @@ __declspec(dllimport) void __stdcall DebugBreak(void);
return static_cast<T>(key) == 0; \ return static_cast<T>(key) == 0; \
} }
#define YUZU_NON_COPYABLE(cls) \ #define CITRON_NON_COPYABLE(cls) \
cls(const cls&) = delete; \ cls(const cls&) = delete; \
cls& operator=(const cls&) = delete cls& operator=(const cls&) = delete
#define YUZU_NON_MOVEABLE(cls) \ #define CITRON_NON_MOVEABLE(cls) \
cls(cls&&) = delete; \ cls(cls&&) = delete; \
cls& operator=(cls&&) = delete cls& operator=(cls&&) = delete

View File

@@ -5,7 +5,7 @@
// citron data directories // citron data directories
#define YUZU_DIR "citron" #define CITRON_DIR "citron"
#define PORTABLE_DIR "user" #define PORTABLE_DIR "user"
// Sub-directories contained within a citron data directory // Sub-directories contained within a citron data directory

View File

@@ -88,11 +88,11 @@ public:
fs::path citron_path_config; fs::path citron_path_config;
#ifdef _WIN32 #ifdef _WIN32
#ifdef YUZU_ENABLE_PORTABLE #ifdef CITRON_ENABLE_PORTABLE
citron_path = GetExeDirectory() / PORTABLE_DIR; citron_path = GetExeDirectory() / PORTABLE_DIR;
#endif #endif
if (!IsDir(citron_path)) { if (!IsDir(citron_path)) {
citron_path = GetAppDataRoamingDirectory() / YUZU_DIR; citron_path = GetAppDataRoamingDirectory() / CITRON_DIR;
} }
citron_path_cache = citron_path / CACHE_DIR; citron_path_cache = citron_path / CACHE_DIR;
@@ -102,16 +102,16 @@ public:
citron_path_cache = citron_path / CACHE_DIR; citron_path_cache = citron_path / CACHE_DIR;
citron_path_config = citron_path / CONFIG_DIR; citron_path_config = citron_path / CONFIG_DIR;
#else #else
#ifdef YUZU_ENABLE_PORTABLE #ifdef CITRON_ENABLE_PORTABLE
citron_path = GetCurrentDir() / PORTABLE_DIR; citron_path = GetCurrentDir() / PORTABLE_DIR;
#endif #endif
if (Exists(citron_path) && IsDir(citron_path)) { if (Exists(citron_path) && IsDir(citron_path)) {
citron_path_cache = citron_path / CACHE_DIR; citron_path_cache = citron_path / CACHE_DIR;
citron_path_config = citron_path / CONFIG_DIR; citron_path_config = citron_path / CONFIG_DIR;
} else { } else {
citron_path = GetDataDirectory("XDG_DATA_HOME") / YUZU_DIR; citron_path = GetDataDirectory("XDG_DATA_HOME") / CITRON_DIR;
citron_path_cache = GetDataDirectory("XDG_CACHE_HOME") / YUZU_DIR; citron_path_cache = GetDataDirectory("XDG_CACHE_HOME") / CITRON_DIR;
citron_path_config = GetDataDirectory("XDG_CONFIG_HOME") / YUZU_DIR; citron_path_config = GetDataDirectory("XDG_CONFIG_HOME") / CITRON_DIR;
} }
#endif #endif

View File

@@ -16,7 +16,7 @@ class IntrusiveListImpl;
} }
class IntrusiveListNode { class IntrusiveListNode {
YUZU_NON_COPYABLE(IntrusiveListNode); CITRON_NON_COPYABLE(IntrusiveListNode);
private: private:
friend class impl::IntrusiveListImpl; friend class impl::IntrusiveListImpl;
@@ -96,7 +96,7 @@ private:
namespace impl { namespace impl {
class IntrusiveListImpl { class IntrusiveListImpl {
YUZU_NON_COPYABLE(IntrusiveListImpl); CITRON_NON_COPYABLE(IntrusiveListImpl);
private: private:
IntrusiveListNode m_root_node; IntrusiveListNode m_root_node;
@@ -302,7 +302,7 @@ private:
template <class T, class Traits> template <class T, class Traits>
class IntrusiveList { class IntrusiveList {
YUZU_NON_COPYABLE(IntrusiveList); CITRON_NON_COPYABLE(IntrusiveList);
private: private:
impl::IntrusiveListImpl m_impl; impl::IntrusiveListImpl m_impl;

View File

@@ -17,7 +17,7 @@ class IntrusiveRedBlackTreeImpl;
#pragma pack(push, 4) #pragma pack(push, 4)
struct IntrusiveRedBlackTreeNode { struct IntrusiveRedBlackTreeNode {
YUZU_NON_COPYABLE(IntrusiveRedBlackTreeNode); CITRON_NON_COPYABLE(IntrusiveRedBlackTreeNode);
public: public:
using RBEntry = freebsd::RBEntry<IntrusiveRedBlackTreeNode>; using RBEntry = freebsd::RBEntry<IntrusiveRedBlackTreeNode>;
@@ -49,7 +49,7 @@ class IntrusiveRedBlackTree;
namespace impl { namespace impl {
class IntrusiveRedBlackTreeImpl { class IntrusiveRedBlackTreeImpl {
YUZU_NON_COPYABLE(IntrusiveRedBlackTreeImpl); CITRON_NON_COPYABLE(IntrusiveRedBlackTreeImpl);
private: private:
template <class, class, class> template <class, class, class>
@@ -261,7 +261,7 @@ using RedBlackKeyType = std::remove_pointer_t<decltype(impl::GetRedBlackKeyType<
template <class T, class Traits, class Comparator> template <class T, class Traits, class Comparator>
class IntrusiveRedBlackTree { class IntrusiveRedBlackTree {
YUZU_NON_COPYABLE(IntrusiveRedBlackTree); CITRON_NON_COPYABLE(IntrusiveRedBlackTree);
public: public:
using ImplType = impl::IntrusiveRedBlackTreeImpl; using ImplType = impl::IntrusiveRedBlackTreeImpl;

View File

@@ -9,7 +9,7 @@
namespace detail { namespace detail {
template <class F> template <class F>
class ScopeGuard { class ScopeGuard {
YUZU_NON_COPYABLE(ScopeGuard); CITRON_NON_COPYABLE(ScopeGuard);
private: private:
F f; F f;

View File

@@ -52,7 +52,7 @@ public:
template <typename T> template <typename T>
class Field : public FieldInterface { class Field : public FieldInterface {
public: public:
YUZU_NON_COPYABLE(Field); CITRON_NON_COPYABLE(Field);
Field(FieldType type_, std::string_view name_, T value_) Field(FieldType type_, std::string_view name_, T value_)
: name(name_), type(type_), value(std::move(value_)) {} : name(name_), type(type_), value(std::move(value_)) {}
@@ -101,7 +101,7 @@ private:
*/ */
class FieldCollection final { class FieldCollection final {
public: public:
YUZU_NON_COPYABLE(FieldCollection); CITRON_NON_COPYABLE(FieldCollection);
FieldCollection() = default; FieldCollection() = default;
~FieldCollection() = default; ~FieldCollection() = default;
@@ -168,7 +168,7 @@ struct VisitorInterface {
* backend implementation is not available. * backend implementation is not available.
*/ */
struct NullVisitor final : public VisitorInterface { struct NullVisitor final : public VisitorInterface {
YUZU_NON_COPYABLE(NullVisitor); CITRON_NON_COPYABLE(NullVisitor);
NullVisitor() = default; NullVisitor() = default;
~NullVisitor() override = default; ~NullVisitor() override = default;

View File

@@ -1233,11 +1233,11 @@ else()
hle/service/ssl/ssl_backend_none.cpp) hle/service/ssl/ssl_backend_none.cpp)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(core PRIVATE precompiled_headers.h) target_precompile_headers(core PRIVATE precompiled_headers.h)
endif() endif()
if (YUZU_ENABLE_LTO) if (CITRON_ENABLE_LTO)
set_property(TARGET core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) set_property(TARGET core PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif() endif()

View File

@@ -47,8 +47,8 @@ enum class Architecture {
/// Generic ARMv8 CPU interface /// Generic ARMv8 CPU interface
class ArmInterface { class ArmInterface {
public: public:
YUZU_NON_COPYABLE(ArmInterface); CITRON_NON_COPYABLE(ArmInterface);
YUZU_NON_MOVEABLE(ArmInterface); CITRON_NON_MOVEABLE(ArmInterface);
explicit ArmInterface(bool uses_wall_clock) : m_uses_wall_clock{uses_wall_clock} {} explicit ArmInterface(bool uses_wall_clock) : m_uses_wall_clock{uses_wall_clock} {}
virtual ~ArmInterface() = default; virtual ~ArmInterface() = default;

View File

@@ -160,8 +160,8 @@ bool ArmNce::HandleGuestAccessFault(GuestContext* guest_ctx, void* raw_info, voi
// Try to handle an invalid access. // Try to handle an invalid access.
// TODO: handle accesses which split a page? // TODO: handle accesses which split a page?
const Common::ProcessAddress addr = const Common::ProcessAddress addr =
(reinterpret_cast<u64>(info->si_addr) & ~Memory::YUZU_PAGEMASK); (reinterpret_cast<u64>(info->si_addr) & ~Memory::CITRON_PAGEMASK);
if (guest_ctx->system->ApplicationMemory().InvalidateNCE(addr, Memory::YUZU_PAGESIZE)) { if (guest_ctx->system->ApplicationMemory().InvalidateNCE(addr, Memory::CITRON_PAGESIZE)) {
// We handled the access successfully and are returning to guest code. // We handled the access successfully and are returning to guest code.
return true; return true;
} }

View File

@@ -213,7 +213,7 @@ bool Patcher::RelocateAndCopy(Common::ProcessAddress load_base,
} }
size_t Patcher::GetSectionSize() const noexcept { size_t Patcher::GetSectionSize() const noexcept {
return Common::AlignUp(m_patch_instructions.size() * sizeof(u32), Core::Memory::YUZU_PAGESIZE); return Common::AlignUp(m_patch_instructions.size() * sizeof(u32), Core::Memory::CITRON_PAGESIZE);
} }
void Patcher::WriteLoadContext() { void Patcher::WriteLoadContext() {

View File

@@ -132,7 +132,7 @@ struct EmptyAllocator {
template <typename DTraits> template <typename DTraits>
struct DeviceMemoryManagerAllocator { struct DeviceMemoryManagerAllocator {
static constexpr size_t device_virtual_bits = DTraits::device_virtual_bits; static constexpr size_t device_virtual_bits = DTraits::device_virtual_bits;
static constexpr DAddr first_address = 1ULL << Memory::YUZU_PAGEBITS; static constexpr DAddr first_address = 1ULL << Memory::CITRON_PAGEBITS;
static constexpr DAddr max_device_area = 1ULL << device_virtual_bits; static constexpr DAddr max_device_area = 1ULL << device_virtual_bits;
DeviceMemoryManagerAllocator() : main_allocator(first_address) {} DeviceMemoryManagerAllocator() : main_allocator(first_address) {}
@@ -162,18 +162,18 @@ struct DeviceMemoryManagerAllocator {
template <typename Traits> template <typename Traits>
DeviceMemoryManager<Traits>::DeviceMemoryManager(const DeviceMemory& device_memory_) DeviceMemoryManager<Traits>::DeviceMemoryManager(const DeviceMemory& device_memory_)
: physical_base{reinterpret_cast<const uintptr_t>(device_memory_.buffer.BackingBasePointer())}, : physical_base{reinterpret_cast<const uintptr_t>(device_memory_.buffer.BackingBasePointer())},
device_inter{nullptr}, compressed_physical_ptr(device_as_size >> Memory::YUZU_PAGEBITS), device_inter{nullptr}, compressed_physical_ptr(device_as_size >> Memory::CITRON_PAGEBITS),
compressed_device_addr(1ULL << ((Settings::values.memory_layout_mode.GetValue() == compressed_device_addr(1ULL << ((Settings::values.memory_layout_mode.GetValue() ==
Settings::MemoryLayout::Memory_4Gb Settings::MemoryLayout::Memory_4Gb
? physical_min_bits ? physical_min_bits
: physical_max_bits) - : physical_max_bits) -
Memory::YUZU_PAGEBITS)), Memory::CITRON_PAGEBITS)),
continuity_tracker(device_as_size >> Memory::YUZU_PAGEBITS), continuity_tracker(device_as_size >> Memory::CITRON_PAGEBITS),
cpu_backing_address(device_as_size >> Memory::YUZU_PAGEBITS) { cpu_backing_address(device_as_size >> Memory::CITRON_PAGEBITS) {
impl = std::make_unique<DeviceMemoryManagerAllocator<Traits>>(); impl = std::make_unique<DeviceMemoryManagerAllocator<Traits>>();
cached_pages = std::make_unique<CachedPages>(); cached_pages = std::make_unique<CachedPages>();
const size_t total_virtual = device_as_size >> Memory::YUZU_PAGEBITS; const size_t total_virtual = device_as_size >> Memory::CITRON_PAGEBITS;
for (size_t i = 0; i < total_virtual; i++) { for (size_t i = 0; i < total_virtual; i++) {
compressed_physical_ptr[i] = 0; compressed_physical_ptr[i] = 0;
continuity_tracker[i] = 1; continuity_tracker[i] = 1;
@@ -183,7 +183,7 @@ DeviceMemoryManager<Traits>::DeviceMemoryManager(const DeviceMemory& device_memo
Settings::MemoryLayout::Memory_4Gb Settings::MemoryLayout::Memory_4Gb
? physical_min_bits ? physical_min_bits
: physical_max_bits) - : physical_max_bits) -
Memory::YUZU_PAGEBITS); Memory::CITRON_PAGEBITS);
for (size_t i = 0; i < total_phys; i++) { for (size_t i = 0; i < total_phys; i++) {
compressed_device_addr[i] = 0; compressed_device_addr[i] = 0;
} }
@@ -216,17 +216,17 @@ template <typename Traits>
void DeviceMemoryManager<Traits>::Map(DAddr address, VAddr virtual_address, size_t size, Asid asid, void DeviceMemoryManager<Traits>::Map(DAddr address, VAddr virtual_address, size_t size, Asid asid,
bool track) { bool track) {
Core::Memory::Memory* process_memory = registered_processes[asid.id]; Core::Memory::Memory* process_memory = registered_processes[asid.id];
size_t start_page_d = address >> Memory::YUZU_PAGEBITS; size_t start_page_d = address >> Memory::CITRON_PAGEBITS;
size_t num_pages = Common::AlignUp(size, Memory::YUZU_PAGESIZE) >> Memory::YUZU_PAGEBITS; size_t num_pages = Common::AlignUp(size, Memory::CITRON_PAGESIZE) >> Memory::CITRON_PAGEBITS;
std::scoped_lock lk(mapping_guard); std::scoped_lock lk(mapping_guard);
for (size_t i = 0; i < num_pages; i++) { for (size_t i = 0; i < num_pages; i++) {
const VAddr new_vaddress = virtual_address + i * Memory::YUZU_PAGESIZE; const VAddr new_vaddress = virtual_address + i * Memory::CITRON_PAGESIZE;
auto* ptr = process_memory->GetPointerSilent(Common::ProcessAddress(new_vaddress)); auto* ptr = process_memory->GetPointerSilent(Common::ProcessAddress(new_vaddress));
if (ptr == nullptr) [[unlikely]] { if (ptr == nullptr) [[unlikely]] {
compressed_physical_ptr[start_page_d + i] = 0; compressed_physical_ptr[start_page_d + i] = 0;
continue; continue;
} }
auto phys_addr = static_cast<u32>(GetRawPhysicalAddr(ptr) >> Memory::YUZU_PAGEBITS) + 1U; auto phys_addr = static_cast<u32>(GetRawPhysicalAddr(ptr) >> Memory::CITRON_PAGEBITS) + 1U;
compressed_physical_ptr[start_page_d + i] = phys_addr; compressed_physical_ptr[start_page_d + i] = phys_addr;
InsertCPUBacking(start_page_d + i, new_vaddress, asid); InsertCPUBacking(start_page_d + i, new_vaddress, asid);
const u32 base_dev = compressed_device_addr[phys_addr - 1U]; const u32 base_dev = compressed_device_addr[phys_addr - 1U];
@@ -249,8 +249,8 @@ void DeviceMemoryManager<Traits>::Map(DAddr address, VAddr virtual_address, size
template <typename Traits> template <typename Traits>
void DeviceMemoryManager<Traits>::Unmap(DAddr address, size_t size) { void DeviceMemoryManager<Traits>::Unmap(DAddr address, size_t size) {
size_t start_page_d = address >> Memory::YUZU_PAGEBITS; size_t start_page_d = address >> Memory::CITRON_PAGEBITS;
size_t num_pages = Common::AlignUp(size, Memory::YUZU_PAGESIZE) >> Memory::YUZU_PAGEBITS; size_t num_pages = Common::AlignUp(size, Memory::CITRON_PAGESIZE) >> Memory::CITRON_PAGEBITS;
device_inter->InvalidateRegion(address, size); device_inter->InvalidateRegion(address, size);
std::scoped_lock lk(mapping_guard); std::scoped_lock lk(mapping_guard);
for (size_t i = 0; i < num_pages; i++) { for (size_t i = 0; i < num_pages; i++) {
@@ -278,13 +278,13 @@ template <typename Traits>
void DeviceMemoryManager<Traits>::TrackContinuityImpl(DAddr address, VAddr virtual_address, void DeviceMemoryManager<Traits>::TrackContinuityImpl(DAddr address, VAddr virtual_address,
size_t size, Asid asid) { size_t size, Asid asid) {
Core::Memory::Memory* process_memory = registered_processes[asid.id]; Core::Memory::Memory* process_memory = registered_processes[asid.id];
size_t start_page_d = address >> Memory::YUZU_PAGEBITS; size_t start_page_d = address >> Memory::CITRON_PAGEBITS;
size_t num_pages = Common::AlignUp(size, Memory::YUZU_PAGESIZE) >> Memory::YUZU_PAGEBITS; size_t num_pages = Common::AlignUp(size, Memory::CITRON_PAGESIZE) >> Memory::CITRON_PAGEBITS;
uintptr_t last_ptr = 0; uintptr_t last_ptr = 0;
size_t page_count = 1; size_t page_count = 1;
for (size_t i = num_pages; i > 0; i--) { for (size_t i = num_pages; i > 0; i--) {
size_t index = i - 1; size_t index = i - 1;
const VAddr new_vaddress = virtual_address + index * Memory::YUZU_PAGESIZE; const VAddr new_vaddress = virtual_address + index * Memory::CITRON_PAGESIZE;
const uintptr_t new_ptr = reinterpret_cast<uintptr_t>( const uintptr_t new_ptr = reinterpret_cast<uintptr_t>(
process_memory->GetPointerSilent(Common::ProcessAddress(new_vaddress))); process_memory->GetPointerSilent(Common::ProcessAddress(new_vaddress)));
if (new_ptr + page_size == last_ptr) { if (new_ptr + page_size == last_ptr) {
@@ -333,26 +333,26 @@ void DeviceMemoryManager<Traits>::InnerGatherDeviceAddresses(Common::ScratchBuff
template <typename Traits> template <typename Traits>
template <typename T> template <typename T>
T* DeviceMemoryManager<Traits>::GetPointer(DAddr address) { T* DeviceMemoryManager<Traits>::GetPointer(DAddr address) {
const size_t index = address >> Memory::YUZU_PAGEBITS; const size_t index = address >> Memory::CITRON_PAGEBITS;
const size_t offset = address & Memory::YUZU_PAGEMASK; const size_t offset = address & Memory::CITRON_PAGEMASK;
auto phys_addr = compressed_physical_ptr[index]; auto phys_addr = compressed_physical_ptr[index];
if (phys_addr == 0) [[unlikely]] { if (phys_addr == 0) [[unlikely]] {
return nullptr; return nullptr;
} }
return GetPointerFromRaw<T>((static_cast<PAddr>(phys_addr - 1) << Memory::YUZU_PAGEBITS) + return GetPointerFromRaw<T>((static_cast<PAddr>(phys_addr - 1) << Memory::CITRON_PAGEBITS) +
offset); offset);
} }
template <typename Traits> template <typename Traits>
template <typename T> template <typename T>
const T* DeviceMemoryManager<Traits>::GetPointer(DAddr address) const { const T* DeviceMemoryManager<Traits>::GetPointer(DAddr address) const {
const size_t index = address >> Memory::YUZU_PAGEBITS; const size_t index = address >> Memory::CITRON_PAGEBITS;
const size_t offset = address & Memory::YUZU_PAGEMASK; const size_t offset = address & Memory::CITRON_PAGEMASK;
auto phys_addr = compressed_physical_ptr[index]; auto phys_addr = compressed_physical_ptr[index];
if (phys_addr == 0) [[unlikely]] { if (phys_addr == 0) [[unlikely]] {
return nullptr; return nullptr;
} }
return GetPointerFromRaw<T>((static_cast<PAddr>(phys_addr - 1) << Memory::YUZU_PAGEBITS) + return GetPointerFromRaw<T>((static_cast<PAddr>(phys_addr - 1) << Memory::CITRON_PAGEBITS) +
offset); offset);
} }
@@ -382,15 +382,15 @@ template <typename Traits>
void DeviceMemoryManager<Traits>::WalkBlock(DAddr addr, std::size_t size, auto on_unmapped, void DeviceMemoryManager<Traits>::WalkBlock(DAddr addr, std::size_t size, auto on_unmapped,
auto on_memory, auto increment) { auto on_memory, auto increment) {
std::size_t remaining_size = size; std::size_t remaining_size = size;
std::size_t page_index = addr >> Memory::YUZU_PAGEBITS; std::size_t page_index = addr >> Memory::CITRON_PAGEBITS;
std::size_t page_offset = addr & Memory::YUZU_PAGEMASK; std::size_t page_offset = addr & Memory::CITRON_PAGEMASK;
while (remaining_size) { while (remaining_size) {
const size_t next_pages = static_cast<std::size_t>(continuity_tracker[page_index]); const size_t next_pages = static_cast<std::size_t>(continuity_tracker[page_index]);
const std::size_t copy_amount = const std::size_t copy_amount =
std::min((next_pages << Memory::YUZU_PAGEBITS) - page_offset, remaining_size); std::min((next_pages << Memory::CITRON_PAGEBITS) - page_offset, remaining_size);
const auto current_vaddr = const auto current_vaddr =
static_cast<u64>((page_index << Memory::YUZU_PAGEBITS) + page_offset); static_cast<u64>((page_index << Memory::CITRON_PAGEBITS) + page_offset);
SCOPE_EXIT{ SCOPE_EXIT{
page_index += next_pages; page_index += next_pages;
page_offset = 0; page_offset = 0;
@@ -404,7 +404,7 @@ void DeviceMemoryManager<Traits>::WalkBlock(DAddr addr, std::size_t size, auto o
continue; continue;
} }
auto* mem_ptr = GetPointerFromRaw<u8>( auto* mem_ptr = GetPointerFromRaw<u8>(
(static_cast<PAddr>(phys_addr - 1) << Memory::YUZU_PAGEBITS) + page_offset); (static_cast<PAddr>(phys_addr - 1) << Memory::CITRON_PAGEBITS) + page_offset);
on_memory(copy_amount, mem_ptr); on_memory(copy_amount, mem_ptr);
} }
} }
@@ -516,31 +516,31 @@ void DeviceMemoryManager<Traits>::UpdatePagesCachedCount(DAddr addr, size_t size
const auto MarkRegionCaching = &DeviceMemoryManager<Traits>::DeviceMethods::MarkRegionCaching; const auto MarkRegionCaching = &DeviceMemoryManager<Traits>::DeviceMethods::MarkRegionCaching;
std::atomic_thread_fence(std::memory_order_acquire); std::atomic_thread_fence(std::memory_order_acquire);
const size_t page_end = Common::DivCeil(addr + size, Memory::YUZU_PAGESIZE); const size_t page_end = Common::DivCeil(addr + size, Memory::CITRON_PAGESIZE);
size_t page = addr >> Memory::YUZU_PAGEBITS; size_t page = addr >> Memory::CITRON_PAGEBITS;
auto [asid, base_vaddress] = ExtractCPUBacking(page); auto [asid, base_vaddress] = ExtractCPUBacking(page);
auto* memory_device_inter = registered_processes[asid.id]; auto* memory_device_inter = registered_processes[asid.id];
const auto release_pending = [&] { const auto release_pending = [&] {
if (uncache_bytes > 0) { if (uncache_bytes > 0) {
if (memory_device_inter != nullptr) { if (memory_device_inter != nullptr) {
MarkRegionCaching(memory_device_inter, uncache_begin << Memory::YUZU_PAGEBITS, MarkRegionCaching(memory_device_inter, uncache_begin << Memory::CITRON_PAGEBITS,
uncache_bytes, false); uncache_bytes, false);
} }
uncache_bytes = 0; uncache_bytes = 0;
} }
if (cache_bytes > 0) { if (cache_bytes > 0) {
if (memory_device_inter != nullptr) { if (memory_device_inter != nullptr) {
MarkRegionCaching(memory_device_inter, cache_begin << Memory::YUZU_PAGEBITS, MarkRegionCaching(memory_device_inter, cache_begin << Memory::CITRON_PAGEBITS,
cache_bytes, true); cache_bytes, true);
} }
cache_bytes = 0; cache_bytes = 0;
} }
}; };
size_t old_vpage = (base_vaddress >> Memory::YUZU_PAGEBITS) - 1; size_t old_vpage = (base_vaddress >> Memory::CITRON_PAGEBITS) - 1;
for (; page != page_end; ++page) { for (; page != page_end; ++page) {
CounterAtomicType& count = cached_pages->at(page >> subentries_shift).Count(page); CounterAtomicType& count = cached_pages->at(page >> subentries_shift).Count(page);
auto [asid_2, vpage] = ExtractCPUBacking(page); auto [asid_2, vpage] = ExtractCPUBacking(page);
vpage >>= Memory::YUZU_PAGEBITS; vpage >>= Memory::CITRON_PAGEBITS;
if (vpage == 0) [[unlikely]] { if (vpage == 0) [[unlikely]] {
release_pending(); release_pending();
@@ -566,9 +566,9 @@ void DeviceMemoryManager<Traits>::UpdatePagesCachedCount(DAddr addr, size_t size
if (uncache_bytes == 0) { if (uncache_bytes == 0) {
uncache_begin = vpage; uncache_begin = vpage;
} }
uncache_bytes += Memory::YUZU_PAGESIZE; uncache_bytes += Memory::CITRON_PAGESIZE;
} else if (uncache_bytes > 0) { } else if (uncache_bytes > 0) {
MarkRegionCaching(memory_device_inter, uncache_begin << Memory::YUZU_PAGEBITS, MarkRegionCaching(memory_device_inter, uncache_begin << Memory::CITRON_PAGEBITS,
uncache_bytes, false); uncache_bytes, false);
uncache_bytes = 0; uncache_bytes = 0;
} }
@@ -576,9 +576,9 @@ void DeviceMemoryManager<Traits>::UpdatePagesCachedCount(DAddr addr, size_t size
if (cache_bytes == 0) { if (cache_bytes == 0) {
cache_begin = vpage; cache_begin = vpage;
} }
cache_bytes += Memory::YUZU_PAGESIZE; cache_bytes += Memory::CITRON_PAGESIZE;
} else if (cache_bytes > 0) { } else if (cache_bytes > 0) {
MarkRegionCaching(memory_device_inter, cache_begin << Memory::YUZU_PAGEBITS, MarkRegionCaching(memory_device_inter, cache_begin << Memory::CITRON_PAGEBITS,
cache_bytes, true); cache_bytes, true);
cache_bytes = 0; cache_bytes = 0;
} }

View File

@@ -15,8 +15,8 @@ namespace FileSys {
class DirectoryPathParser; class DirectoryPathParser;
class Path { class Path {
YUZU_NON_COPYABLE(Path); CITRON_NON_COPYABLE(Path);
YUZU_NON_MOVEABLE(Path); CITRON_NON_MOVEABLE(Path);
private: private:
static constexpr const char* EmptyPath = ""; static constexpr const char* EmptyPath = "";
@@ -27,7 +27,7 @@ private:
public: public:
class WriteBuffer { class WriteBuffer {
YUZU_NON_COPYABLE(WriteBuffer); CITRON_NON_COPYABLE(WriteBuffer);
private: private:
char* m_buffer; char* m_buffer;

View File

@@ -14,8 +14,8 @@ namespace FileSys {
using namespace Common::Literals; using namespace Common::Literals;
class AesCtrCounterExtendedStorage : public IReadOnlyStorage { class AesCtrCounterExtendedStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(AesCtrCounterExtendedStorage); CITRON_NON_COPYABLE(AesCtrCounterExtendedStorage);
YUZU_NON_MOVEABLE(AesCtrCounterExtendedStorage); CITRON_NON_MOVEABLE(AesCtrCounterExtendedStorage);
public: public:
static constexpr size_t BlockSize = 0x10; static constexpr size_t BlockSize = 0x10;

View File

@@ -14,8 +14,8 @@
namespace FileSys { namespace FileSys {
class AesCtrStorage : public IStorage { class AesCtrStorage : public IStorage {
YUZU_NON_COPYABLE(AesCtrStorage); CITRON_NON_COPYABLE(AesCtrStorage);
YUZU_NON_MOVEABLE(AesCtrStorage); CITRON_NON_MOVEABLE(AesCtrStorage);
public: public:
static constexpr size_t BlockSize = 0x10; static constexpr size_t BlockSize = 0x10;

View File

@@ -13,8 +13,8 @@
namespace FileSys { namespace FileSys {
class AesXtsStorage : public IReadOnlyStorage { class AesXtsStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(AesXtsStorage); CITRON_NON_COPYABLE(AesXtsStorage);
YUZU_NON_MOVEABLE(AesXtsStorage); CITRON_NON_MOVEABLE(AesXtsStorage);
public: public:
static constexpr size_t AesBlockSize = 0x10; static constexpr size_t AesBlockSize = 0x10;

View File

@@ -13,8 +13,8 @@ namespace FileSys {
template <size_t DataAlign_, size_t BufferAlign_> template <size_t DataAlign_, size_t BufferAlign_>
class AlignmentMatchingStorage : public IStorage { class AlignmentMatchingStorage : public IStorage {
YUZU_NON_COPYABLE(AlignmentMatchingStorage); CITRON_NON_COPYABLE(AlignmentMatchingStorage);
YUZU_NON_MOVEABLE(AlignmentMatchingStorage); CITRON_NON_MOVEABLE(AlignmentMatchingStorage);
public: public:
static constexpr size_t DataAlign = DataAlign_; static constexpr size_t DataAlign = DataAlign_;
@@ -77,8 +77,8 @@ public:
template <size_t BufferAlign_> template <size_t BufferAlign_>
class AlignmentMatchingStoragePooledBuffer : public IStorage { class AlignmentMatchingStoragePooledBuffer : public IStorage {
YUZU_NON_COPYABLE(AlignmentMatchingStoragePooledBuffer); CITRON_NON_COPYABLE(AlignmentMatchingStoragePooledBuffer);
YUZU_NON_MOVEABLE(AlignmentMatchingStoragePooledBuffer); CITRON_NON_MOVEABLE(AlignmentMatchingStoragePooledBuffer);
public: public:
static constexpr size_t BufferAlign = BufferAlign_; static constexpr size_t BufferAlign = BufferAlign_;

View File

@@ -18,8 +18,8 @@ namespace FileSys {
using namespace Common::Literals; using namespace Common::Literals;
class BucketTree { class BucketTree {
YUZU_NON_COPYABLE(BucketTree); CITRON_NON_COPYABLE(BucketTree);
YUZU_NON_MOVEABLE(BucketTree); CITRON_NON_MOVEABLE(BucketTree);
public: public:
static constexpr u32 Magic = Common::MakeMagic('B', 'K', 'T', 'R'); static constexpr u32 Magic = Common::MakeMagic('B', 'K', 'T', 'R');
@@ -123,7 +123,7 @@ public:
private: private:
class NodeBuffer { class NodeBuffer {
YUZU_NON_COPYABLE(NodeBuffer); CITRON_NON_COPYABLE(NodeBuffer);
public: public:
NodeBuffer() : m_header() {} NodeBuffer() : m_header() {}
@@ -330,8 +330,8 @@ private:
}; };
class BucketTree::Visitor { class BucketTree::Visitor {
YUZU_NON_COPYABLE(Visitor); CITRON_NON_COPYABLE(Visitor);
YUZU_NON_MOVEABLE(Visitor); CITRON_NON_MOVEABLE(Visitor);
public: public:
constexpr Visitor() constexpr Visitor()

View File

@@ -17,8 +17,8 @@ namespace FileSys {
using namespace Common::Literals; using namespace Common::Literals;
class CompressedStorage : public IReadOnlyStorage { class CompressedStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(CompressedStorage); CITRON_NON_COPYABLE(CompressedStorage);
YUZU_NON_MOVEABLE(CompressedStorage); CITRON_NON_MOVEABLE(CompressedStorage);
public: public:
static constexpr size_t NodeSize = 16_KiB; static constexpr size_t NodeSize = 16_KiB;
@@ -47,8 +47,8 @@ public:
private: private:
class CompressedStorageCore { class CompressedStorageCore {
YUZU_NON_COPYABLE(CompressedStorageCore); CITRON_NON_COPYABLE(CompressedStorageCore);
YUZU_NON_MOVEABLE(CompressedStorageCore); CITRON_NON_MOVEABLE(CompressedStorageCore);
public: public:
CompressedStorageCore() : m_table(), m_data_storage() {} CompressedStorageCore() : m_table(), m_data_storage() {}
@@ -674,8 +674,8 @@ private:
}; };
class CacheManager { class CacheManager {
YUZU_NON_COPYABLE(CacheManager); CITRON_NON_COPYABLE(CacheManager);
YUZU_NON_MOVEABLE(CacheManager); CITRON_NON_MOVEABLE(CacheManager);
private: private:
struct AccessRange { struct AccessRange {

View File

@@ -57,8 +57,8 @@ struct HierarchicalIntegrityVerificationSizeSet {
static_assert(std::is_trivial_v<HierarchicalIntegrityVerificationSizeSet>); static_assert(std::is_trivial_v<HierarchicalIntegrityVerificationSizeSet>);
class HierarchicalIntegrityVerificationStorage : public IReadOnlyStorage { class HierarchicalIntegrityVerificationStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(HierarchicalIntegrityVerificationStorage); CITRON_NON_COPYABLE(HierarchicalIntegrityVerificationStorage);
YUZU_NON_MOVEABLE(HierarchicalIntegrityVerificationStorage); CITRON_NON_MOVEABLE(HierarchicalIntegrityVerificationStorage);
public: public:
using GenerateRandomFunction = void (*)(void* dst, size_t size); using GenerateRandomFunction = void (*)(void* dst, size_t size);

View File

@@ -12,8 +12,8 @@
namespace FileSys { namespace FileSys {
class HierarchicalSha256Storage : public IReadOnlyStorage { class HierarchicalSha256Storage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(HierarchicalSha256Storage); CITRON_NON_COPYABLE(HierarchicalSha256Storage);
YUZU_NON_MOVEABLE(HierarchicalSha256Storage); CITRON_NON_MOVEABLE(HierarchicalSha256Storage);
public: public:
static constexpr s32 LayerCount = 3; static constexpr s32 LayerCount = 3;

View File

@@ -13,8 +13,8 @@
namespace FileSys { namespace FileSys {
class IndirectStorage : public IReadOnlyStorage { class IndirectStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(IndirectStorage); CITRON_NON_COPYABLE(IndirectStorage);
YUZU_NON_MOVEABLE(IndirectStorage); CITRON_NON_MOVEABLE(IndirectStorage);
public: public:
static constexpr s32 StorageCount = 2; static constexpr s32 StorageCount = 2;

View File

@@ -11,8 +11,8 @@
namespace FileSys { namespace FileSys {
class IntegrityVerificationStorage : public IReadOnlyStorage { class IntegrityVerificationStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(IntegrityVerificationStorage); CITRON_NON_COPYABLE(IntegrityVerificationStorage);
YUZU_NON_MOVEABLE(IntegrityVerificationStorage); CITRON_NON_MOVEABLE(IntegrityVerificationStorage);
public: public:
static constexpr s64 HashSize = 256 / 8; static constexpr s64 HashSize = 256 / 8;

View File

@@ -8,8 +8,8 @@
namespace FileSys { namespace FileSys {
class MemoryResourceBufferHoldStorage : public IStorage { class MemoryResourceBufferHoldStorage : public IStorage {
YUZU_NON_COPYABLE(MemoryResourceBufferHoldStorage); CITRON_NON_COPYABLE(MemoryResourceBufferHoldStorage);
YUZU_NON_MOVEABLE(MemoryResourceBufferHoldStorage); CITRON_NON_MOVEABLE(MemoryResourceBufferHoldStorage);
public: public:
MemoryResourceBufferHoldStorage(VirtualFile storage, size_t buffer_size) MemoryResourceBufferHoldStorage(VirtualFile storage, size_t buffer_size)

View File

@@ -28,8 +28,8 @@ constexpr inline s32 IntegrityDataCacheCountForMeta = 16;
constexpr inline s32 IntegrityHashCacheCountForMeta = 2; constexpr inline s32 IntegrityHashCacheCountForMeta = 2;
class SharedNcaBodyStorage : public IReadOnlyStorage { class SharedNcaBodyStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(SharedNcaBodyStorage); CITRON_NON_COPYABLE(SharedNcaBodyStorage);
YUZU_NON_MOVEABLE(SharedNcaBodyStorage); CITRON_NON_MOVEABLE(SharedNcaBodyStorage);
private: private:
VirtualFile m_storage; VirtualFile m_storage;

View File

@@ -88,8 +88,8 @@ constexpr inline s32 GetKeyTypeValue(u8 key_index, u8 key_generation) {
} }
class NcaReader { class NcaReader {
YUZU_NON_COPYABLE(NcaReader); CITRON_NON_COPYABLE(NcaReader);
YUZU_NON_MOVEABLE(NcaReader); CITRON_NON_MOVEABLE(NcaReader);
public: public:
NcaReader(); NcaReader();
@@ -154,8 +154,8 @@ private:
}; };
class NcaFsHeaderReader { class NcaFsHeaderReader {
YUZU_NON_COPYABLE(NcaFsHeaderReader); CITRON_NON_COPYABLE(NcaFsHeaderReader);
YUZU_NON_MOVEABLE(NcaFsHeaderReader); CITRON_NON_MOVEABLE(NcaFsHeaderReader);
public: public:
NcaFsHeaderReader() : m_fs_index(-1) { NcaFsHeaderReader() : m_fs_index(-1) {
@@ -207,8 +207,8 @@ private:
}; };
class NcaFileSystemDriver { class NcaFileSystemDriver {
YUZU_NON_COPYABLE(NcaFileSystemDriver); CITRON_NON_COPYABLE(NcaFileSystemDriver);
YUZU_NON_MOVEABLE(NcaFileSystemDriver); CITRON_NON_MOVEABLE(NcaFileSystemDriver);
public: public:
struct StorageContext { struct StorageContext {

View File

@@ -16,7 +16,7 @@ constexpr inline size_t BufferPoolAlignment = 4_KiB;
constexpr inline size_t BufferPoolWorkSize = 320; constexpr inline size_t BufferPoolWorkSize = 320;
class PooledBuffer { class PooledBuffer {
YUZU_NON_COPYABLE(PooledBuffer); CITRON_NON_COPYABLE(PooledBuffer);
public: public:
// Constructor/Destructor. // Constructor/Destructor.

View File

@@ -8,8 +8,8 @@
namespace FileSys { namespace FileSys {
class SparseStorage : public IndirectStorage { class SparseStorage : public IndirectStorage {
YUZU_NON_COPYABLE(SparseStorage); CITRON_NON_COPYABLE(SparseStorage);
YUZU_NON_MOVEABLE(SparseStorage); CITRON_NON_MOVEABLE(SparseStorage);
private: private:
class ZeroStorage : public IReadOnlyStorage { class ZeroStorage : public IReadOnlyStorage {

View File

@@ -8,8 +8,8 @@
namespace FileSys { namespace FileSys {
class RegionSwitchStorage : public IReadOnlyStorage { class RegionSwitchStorage : public IReadOnlyStorage {
YUZU_NON_COPYABLE(RegionSwitchStorage); CITRON_NON_COPYABLE(RegionSwitchStorage);
YUZU_NON_MOVEABLE(RegionSwitchStorage); CITRON_NON_MOVEABLE(RegionSwitchStorage);
public: public:
struct Region { struct Region {

View File

@@ -30,8 +30,8 @@ enum class VfsEntryType {
// functionality, they will need to override. // functionality, they will need to override.
class VfsFilesystem { class VfsFilesystem {
public: public:
YUZU_NON_COPYABLE(VfsFilesystem); CITRON_NON_COPYABLE(VfsFilesystem);
YUZU_NON_MOVEABLE(VfsFilesystem); CITRON_NON_MOVEABLE(VfsFilesystem);
explicit VfsFilesystem(VirtualDir root); explicit VfsFilesystem(VirtualDir root);
virtual ~VfsFilesystem(); virtual ~VfsFilesystem();
@@ -81,8 +81,8 @@ protected:
// A class representing a file in an abstract filesystem. // A class representing a file in an abstract filesystem.
class VfsFile { class VfsFile {
public: public:
YUZU_NON_COPYABLE(VfsFile); CITRON_NON_COPYABLE(VfsFile);
YUZU_NON_MOVEABLE(VfsFile); CITRON_NON_MOVEABLE(VfsFile);
VfsFile() = default; VfsFile() = default;
virtual ~VfsFile(); virtual ~VfsFile();
@@ -184,8 +184,8 @@ public:
// A class representing a directory in an abstract filesystem. // A class representing a directory in an abstract filesystem.
class VfsDirectory { class VfsDirectory {
public: public:
YUZU_NON_COPYABLE(VfsDirectory); CITRON_NON_COPYABLE(VfsDirectory);
YUZU_NON_MOVEABLE(VfsDirectory); CITRON_NON_MOVEABLE(VfsDirectory);
VfsDirectory() = default; VfsDirectory() = default;
virtual ~VfsDirectory(); virtual ~VfsDirectory();

View File

@@ -27,8 +27,8 @@ private:
static constexpr inline ClassTokenType ClassToken() { return ::Kernel::ClassToken<CLASS>; } \ static constexpr inline ClassTokenType ClassToken() { return ::Kernel::ClassToken<CLASS>; } \
\ \
public: \ public: \
YUZU_NON_COPYABLE(CLASS); \ CITRON_NON_COPYABLE(CLASS); \
YUZU_NON_MOVEABLE(CLASS); \ CITRON_NON_MOVEABLE(CLASS); \
\ \
using BaseClass = BASE_CLASS; \ using BaseClass = BASE_CLASS; \
static constexpr TypeObj GetStaticTypeObj() { \ static constexpr TypeObj GetStaticTypeObj() { \
@@ -211,7 +211,7 @@ private:
template <typename T> template <typename T>
class KScopedAutoObject { class KScopedAutoObject {
public: public:
YUZU_NON_COPYABLE(KScopedAutoObject); CITRON_NON_COPYABLE(KScopedAutoObject);
constexpr KScopedAutoObject() = default; constexpr KScopedAutoObject() = default;

View File

@@ -16,8 +16,8 @@ class KProcess;
class KAutoObjectWithListContainer { class KAutoObjectWithListContainer {
public: public:
YUZU_NON_COPYABLE(KAutoObjectWithListContainer); CITRON_NON_COPYABLE(KAutoObjectWithListContainer);
YUZU_NON_MOVEABLE(KAutoObjectWithListContainer); CITRON_NON_MOVEABLE(KAutoObjectWithListContainer);
using ListType = boost::intrusive::rbtree<KAutoObjectWithList>; using ListType = boost::intrusive::rbtree<KAutoObjectWithList>;

View File

@@ -12,8 +12,8 @@ namespace Kernel {
template <typename T, bool ClearNode = false> template <typename T, bool ClearNode = false>
class KDynamicResourceManager { class KDynamicResourceManager {
YUZU_NON_COPYABLE(KDynamicResourceManager); CITRON_NON_COPYABLE(KDynamicResourceManager);
YUZU_NON_MOVEABLE(KDynamicResourceManager); CITRON_NON_MOVEABLE(KDynamicResourceManager);
public: public:
using DynamicSlabType = KDynamicSlabHeap<T, ClearNode>; using DynamicSlabType = KDynamicSlabHeap<T, ClearNode>;

View File

@@ -13,8 +13,8 @@ namespace Kernel {
template <typename T, bool ClearNode = false> template <typename T, bool ClearNode = false>
class KDynamicSlabHeap : protected impl::KSlabHeapImpl { class KDynamicSlabHeap : protected impl::KSlabHeapImpl {
YUZU_NON_COPYABLE(KDynamicSlabHeap); CITRON_NON_COPYABLE(KDynamicSlabHeap);
YUZU_NON_MOVEABLE(KDynamicSlabHeap); CITRON_NON_MOVEABLE(KDynamicSlabHeap);
public: public:
constexpr KDynamicSlabHeap() = default; constexpr KDynamicSlabHeap() = default;

View File

@@ -21,8 +21,8 @@ namespace Kernel {
class KernelCore; class KernelCore;
class KHandleTable { class KHandleTable {
YUZU_NON_COPYABLE(KHandleTable); CITRON_NON_COPYABLE(KHandleTable);
YUZU_NON_MOVEABLE(KHandleTable); CITRON_NON_MOVEABLE(KHandleTable);
public: public:
static constexpr size_t MaxTableSize = 1024; static constexpr size_t MaxTableSize = 1024;

View File

@@ -17,8 +17,8 @@ class KMemoryRegion final : public Common::IntrusiveRedBlackTreeBaseNode<KMemory
friend class KMemoryRegionTree; friend class KMemoryRegionTree;
public: public:
YUZU_NON_COPYABLE(KMemoryRegion); CITRON_NON_COPYABLE(KMemoryRegion);
YUZU_NON_MOVEABLE(KMemoryRegion); CITRON_NON_MOVEABLE(KMemoryRegion);
constexpr KMemoryRegion() = default; constexpr KMemoryRegion() = default;
constexpr KMemoryRegion(u64 address, u64 last_address) constexpr KMemoryRegion(u64 address, u64 last_address)
@@ -123,8 +123,8 @@ private:
Common::IntrusiveRedBlackTreeBaseTraits<KMemoryRegion>::TreeType<KMemoryRegion>; Common::IntrusiveRedBlackTreeBaseTraits<KMemoryRegion>::TreeType<KMemoryRegion>;
public: public:
YUZU_NON_COPYABLE(KMemoryRegionTree); CITRON_NON_COPYABLE(KMemoryRegionTree);
YUZU_NON_MOVEABLE(KMemoryRegionTree); CITRON_NON_MOVEABLE(KMemoryRegionTree);
using value_type = TreeType::value_type; using value_type = TreeType::value_type;
using size_type = TreeType::size_type; using size_type = TreeType::size_type;
@@ -327,8 +327,8 @@ private:
class KMemoryRegionAllocator final { class KMemoryRegionAllocator final {
public: public:
YUZU_NON_COPYABLE(KMemoryRegionAllocator); CITRON_NON_COPYABLE(KMemoryRegionAllocator);
YUZU_NON_MOVEABLE(KMemoryRegionAllocator); CITRON_NON_MOVEABLE(KMemoryRegionAllocator);
static constexpr size_t MaxMemoryRegions = 200; static constexpr size_t MaxMemoryRegions = 200;

View File

@@ -14,8 +14,8 @@ namespace Kernel {
namespace { namespace {
class KScopedLightLockPair { class KScopedLightLockPair {
YUZU_NON_COPYABLE(KScopedLightLockPair); CITRON_NON_COPYABLE(KScopedLightLockPair);
YUZU_NON_MOVEABLE(KScopedLightLockPair); CITRON_NON_MOVEABLE(KScopedLightLockPair);
private: private:
KLightLock* m_lower; KLightLock* m_lower;

View File

@@ -49,8 +49,8 @@ class KResourceLimit;
class KSystemResource; class KSystemResource;
class KPageTableBase { class KPageTableBase {
YUZU_NON_COPYABLE(KPageTableBase); CITRON_NON_COPYABLE(KPageTableBase);
YUZU_NON_MOVEABLE(KPageTableBase); CITRON_NON_MOVEABLE(KPageTableBase);
public: public:
using TraversalEntry = Common::PageTable::TraversalEntry; using TraversalEntry = Common::PageTable::TraversalEntry;

View File

@@ -33,8 +33,8 @@ class KScopedSchedulerLockAndSleep;
class KScheduler final { class KScheduler final {
public: public:
YUZU_NON_COPYABLE(KScheduler); CITRON_NON_COPYABLE(KScheduler);
YUZU_NON_MOVEABLE(KScheduler); CITRON_NON_MOVEABLE(KScheduler);
using LockType = KAbstractSchedulerLock<KScheduler>; using LockType = KAbstractSchedulerLock<KScheduler>;

View File

@@ -18,8 +18,8 @@ class KernelCore;
namespace impl { namespace impl {
class KSlabHeapImpl { class KSlabHeapImpl {
YUZU_NON_COPYABLE(KSlabHeapImpl); CITRON_NON_COPYABLE(KSlabHeapImpl);
YUZU_NON_MOVEABLE(KSlabHeapImpl); CITRON_NON_MOVEABLE(KSlabHeapImpl);
public: public:
struct Node { struct Node {
@@ -72,8 +72,8 @@ private:
template <bool SupportDynamicExpansion> template <bool SupportDynamicExpansion>
class KSlabHeapBase : protected impl::KSlabHeapImpl { class KSlabHeapBase : protected impl::KSlabHeapImpl {
YUZU_NON_COPYABLE(KSlabHeapBase); CITRON_NON_COPYABLE(KSlabHeapBase);
YUZU_NON_MOVEABLE(KSlabHeapBase); CITRON_NON_MOVEABLE(KSlabHeapBase);
private: private:
size_t m_obj_size{}; size_t m_obj_size{};

View File

@@ -14,8 +14,8 @@ class KSpinLock {
public: public:
explicit KSpinLock() = default; explicit KSpinLock() = default;
YUZU_NON_COPYABLE(KSpinLock); CITRON_NON_COPYABLE(KSpinLock);
YUZU_NON_MOVEABLE(KSpinLock); CITRON_NON_MOVEABLE(KSpinLock);
void Lock(); void Lock();
void Unlock(); void Unlock();

View File

@@ -26,8 +26,8 @@ public:
PhysicalCore(KernelCore& kernel, std::size_t core_index); PhysicalCore(KernelCore& kernel, std::size_t core_index);
~PhysicalCore(); ~PhysicalCore();
YUZU_NON_COPYABLE(PhysicalCore); CITRON_NON_COPYABLE(PhysicalCore);
YUZU_NON_MOVEABLE(PhysicalCore); CITRON_NON_MOVEABLE(PhysicalCore);
// Execute guest code running on the given thread. // Execute guest code running on the given thread.
void RunThread(KThread* thread); void RunThread(KThread* thread);

View File

@@ -298,8 +298,8 @@ private:
namespace ResultImpl { namespace ResultImpl {
template <auto EvaluateResult, class F> template <auto EvaluateResult, class F>
class ScopedResultGuard { class ScopedResultGuard {
YUZU_NON_COPYABLE(ScopedResultGuard); CITRON_NON_COPYABLE(ScopedResultGuard);
YUZU_NON_MOVEABLE(ScopedResultGuard); CITRON_NON_MOVEABLE(ScopedResultGuard);
private: private:
Result& m_ref; Result& m_ref;

View File

@@ -11,7 +11,7 @@ namespace Service::JIT {
class CodeMemory { class CodeMemory {
public: public:
YUZU_NON_COPYABLE(CodeMemory); CITRON_NON_COPYABLE(CodeMemory);
explicit CodeMemory() = default; explicit CodeMemory() = default;

View File

@@ -13,8 +13,8 @@
#include "core/memory.h" #include "core/memory.h"
#include "video_core/host1x/host1x.h" #include "video_core/host1x/host1x.h"
using Core::Memory::YUZU_PAGESIZE; using Core::Memory::CITRON_PAGESIZE;
constexpr size_t BIG_PAGE_SIZE = YUZU_PAGESIZE * 16; constexpr size_t BIG_PAGE_SIZE = CITRON_PAGESIZE * 16;
namespace Service::Nvidia::NvCore { namespace Service::Nvidia::NvCore {
NvMap::Handle::Handle(u64 size_, Id id_) NvMap::Handle::Handle(u64 size_, Id id_)
@@ -32,7 +32,7 @@ NvResult NvMap::Handle::Alloc(Flags pFlags, u32 pAlign, u8 pKind, u64 pAddress,
flags = pFlags; flags = pFlags;
kind = pKind; kind = pKind;
align = pAlign < YUZU_PAGESIZE ? YUZU_PAGESIZE : pAlign; align = pAlign < CITRON_PAGESIZE ? CITRON_PAGESIZE : pAlign;
session_id = pSessionId; session_id = pSessionId;
// This flag is only applicable for handles with an address passed // This flag is only applicable for handles with an address passed
@@ -43,7 +43,7 @@ NvResult NvMap::Handle::Alloc(Flags pFlags, u32 pAlign, u8 pKind, u64 pAddress,
"Mapping nvmap handles without a CPU side address is unimplemented!"); "Mapping nvmap handles without a CPU side address is unimplemented!");
} }
size = Common::AlignUp(size, YUZU_PAGESIZE); size = Common::AlignUp(size, CITRON_PAGESIZE);
aligned_size = Common::AlignUp(size, align); aligned_size = Common::AlignUp(size, align);
address = pAddress; address = pAddress;
allocated = true; allocated = true;

View File

@@ -152,7 +152,7 @@ NvResult nvhost_as_gpu::AllocateSpace(IoctlAllocSpace& params) {
return NvResult::BadValue; return NvResult::BadValue;
} }
if (params.page_size != VM::YUZU_PAGESIZE && params.page_size != vm.big_page_size) { if (params.page_size != VM::CITRON_PAGESIZE && params.page_size != vm.big_page_size) {
return NvResult::BadValue; return NvResult::BadValue;
} }
@@ -162,10 +162,10 @@ NvResult nvhost_as_gpu::AllocateSpace(IoctlAllocSpace& params) {
return NvResult::NotImplemented; return NvResult::NotImplemented;
} }
const u32 page_size_bits{params.page_size == VM::YUZU_PAGESIZE ? VM::PAGE_SIZE_BITS const u32 page_size_bits{params.page_size == VM::CITRON_PAGESIZE ? VM::PAGE_SIZE_BITS
: vm.big_page_size_bits}; : vm.big_page_size_bits};
auto& allocator{params.page_size == VM::YUZU_PAGESIZE ? *vm.small_page_allocator auto& allocator{params.page_size == VM::CITRON_PAGESIZE ? *vm.small_page_allocator
: *vm.big_page_allocator}; : *vm.big_page_allocator};
if ((params.flags & MappingFlags::Fixed) != MappingFlags::None) { if ((params.flags & MappingFlags::Fixed) != MappingFlags::None) {
@@ -189,7 +189,7 @@ NvResult nvhost_as_gpu::AllocateSpace(IoctlAllocSpace& params) {
.mappings{}, .mappings{},
.page_size = params.page_size, .page_size = params.page_size,
.sparse = (params.flags & MappingFlags::Sparse) != MappingFlags::None, .sparse = (params.flags & MappingFlags::Sparse) != MappingFlags::None,
.big_pages = params.page_size != VM::YUZU_PAGESIZE, .big_pages = params.page_size != VM::CITRON_PAGESIZE,
}; };
return NvResult::Success; return NvResult::Success;
@@ -201,7 +201,7 @@ void nvhost_as_gpu::FreeMappingLocked(u64 offset) {
if (!mapping->fixed) { if (!mapping->fixed) {
auto& allocator{mapping->big_page ? *vm.big_page_allocator : *vm.small_page_allocator}; auto& allocator{mapping->big_page ? *vm.big_page_allocator : *vm.small_page_allocator};
u32 page_size_bits{mapping->big_page ? vm.big_page_size_bits : VM::PAGE_SIZE_BITS}; u32 page_size_bits{mapping->big_page ? vm.big_page_size_bits : VM::PAGE_SIZE_BITS};
u32 page_size{mapping->big_page ? vm.big_page_size : VM::YUZU_PAGESIZE}; u32 page_size{mapping->big_page ? vm.big_page_size : VM::CITRON_PAGESIZE};
u64 aligned_size{Common::AlignUp(mapping->size, page_size)}; u64 aligned_size{Common::AlignUp(mapping->size, page_size)};
allocator.Free(static_cast<u32>(mapping->offset >> page_size_bits), allocator.Free(static_cast<u32>(mapping->offset >> page_size_bits),
@@ -248,9 +248,9 @@ NvResult nvhost_as_gpu::FreeSpace(IoctlFreeSpace& params) {
gmmu->Unmap(params.offset, allocation.size); gmmu->Unmap(params.offset, allocation.size);
} }
auto& allocator{params.page_size == VM::YUZU_PAGESIZE ? *vm.small_page_allocator auto& allocator{params.page_size == VM::CITRON_PAGESIZE ? *vm.small_page_allocator
: *vm.big_page_allocator}; : *vm.big_page_allocator};
u32 page_size_bits{params.page_size == VM::YUZU_PAGESIZE ? VM::PAGE_SIZE_BITS u32 page_size_bits{params.page_size == VM::CITRON_PAGESIZE ? VM::PAGE_SIZE_BITS
: vm.big_page_size_bits}; : vm.big_page_size_bits};
allocator.Free(static_cast<u32>(params.offset >> page_size_bits), allocator.Free(static_cast<u32>(params.offset >> page_size_bits),
@@ -360,7 +360,7 @@ NvResult nvhost_as_gpu::MapBufferEx(IoctlMapBufferEx& params) {
bool big_page{[&]() { bool big_page{[&]() {
if (Common::IsAligned(handle->align, vm.big_page_size)) { if (Common::IsAligned(handle->align, vm.big_page_size)) {
return true; return true;
} else if (Common::IsAligned(handle->align, VM::YUZU_PAGESIZE)) { } else if (Common::IsAligned(handle->align, VM::CITRON_PAGESIZE)) {
return false; return false;
} else { } else {
ASSERT(false); ASSERT(false);
@@ -387,7 +387,7 @@ NvResult nvhost_as_gpu::MapBufferEx(IoctlMapBufferEx& params) {
mapping_map[params.offset] = mapping; mapping_map[params.offset] = mapping;
} else { } else {
auto& allocator{big_page ? *vm.big_page_allocator : *vm.small_page_allocator}; auto& allocator{big_page ? *vm.big_page_allocator : *vm.small_page_allocator};
u32 page_size{big_page ? vm.big_page_size : VM::YUZU_PAGESIZE}; u32 page_size{big_page ? vm.big_page_size : VM::CITRON_PAGESIZE};
u32 page_size_bits{big_page ? vm.big_page_size_bits : VM::PAGE_SIZE_BITS}; u32 page_size_bits{big_page ? vm.big_page_size_bits : VM::PAGE_SIZE_BITS};
params.offset = static_cast<u64>(allocator.Allocate( params.offset = static_cast<u64>(allocator.Allocate(
@@ -461,7 +461,7 @@ void nvhost_as_gpu::GetVARegionsImpl(IoctlGetVaRegions& params) {
params.regions = std::array<VaRegion, 2>{ params.regions = std::array<VaRegion, 2>{
VaRegion{ VaRegion{
.offset = vm.small_page_allocator->GetVAStart() << VM::PAGE_SIZE_BITS, .offset = vm.small_page_allocator->GetVAStart() << VM::PAGE_SIZE_BITS,
.page_size = VM::YUZU_PAGESIZE, .page_size = VM::CITRON_PAGESIZE,
._pad0_{}, ._pad0_{},
.pages = vm.small_page_allocator->GetVALimit() - vm.small_page_allocator->GetVAStart(), .pages = vm.small_page_allocator->GetVALimit() - vm.small_page_allocator->GetVAStart(),
}, },

View File

@@ -190,8 +190,8 @@ private:
std::mutex mutex; //!< Locks all AS operations std::mutex mutex; //!< Locks all AS operations
struct VM { struct VM {
static constexpr u32 YUZU_PAGESIZE{0x1000}; static constexpr u32 CITRON_PAGESIZE{0x1000};
static constexpr u32 PAGE_SIZE_BITS{std::countr_zero(YUZU_PAGESIZE)}; static constexpr u32 PAGE_SIZE_BITS{std::countr_zero(CITRON_PAGESIZE)};
static constexpr u32 SUPPORTED_BIG_PAGE_SIZES{0x30000}; static constexpr u32 SUPPORTED_BIG_PAGE_SIZES{0x30000};
static constexpr u32 DEFAULT_BIG_PAGE_SIZE{0x20000}; static constexpr u32 DEFAULT_BIG_PAGE_SIZE{0x20000};

View File

@@ -17,7 +17,7 @@
#include "core/hle/service/nvdrv/devices/nvmap.h" #include "core/hle/service/nvdrv/devices/nvmap.h"
#include "core/memory.h" #include "core/memory.h"
using Core::Memory::YUZU_PAGESIZE; using Core::Memory::CITRON_PAGESIZE;
namespace Service::Nvidia::Devices { namespace Service::Nvidia::Devices {
@@ -82,7 +82,7 @@ NvResult nvmap::IocCreate(IocCreateParams& params) {
std::shared_ptr<NvCore::NvMap::Handle> handle_description{}; std::shared_ptr<NvCore::NvMap::Handle> handle_description{};
auto result = auto result =
file.CreateHandle(Common::AlignUp(params.size, YUZU_PAGESIZE), handle_description); file.CreateHandle(Common::AlignUp(params.size, CITRON_PAGESIZE), handle_description);
if (result != NvResult::Success) { if (result != NvResult::Success) {
LOG_CRITICAL(Service_NVDRV, "Failed to create Object"); LOG_CRITICAL(Service_NVDRV, "Failed to create Object");
return result; return result;
@@ -108,8 +108,8 @@ NvResult nvmap::IocAlloc(IocAllocParams& params, DeviceFD fd) {
} }
// Force page size alignment at a minimum // Force page size alignment at a minimum
if (params.align < YUZU_PAGESIZE) { if (params.align < CITRON_PAGESIZE) {
params.align = YUZU_PAGESIZE; params.align = CITRON_PAGESIZE;
} }
auto handle_description{file.GetHandle(params.handle)}; auto handle_description{file.GetHandle(params.handle)};

View File

@@ -228,10 +228,10 @@ struct ProcessContext {
R_UNLESS(bss_size == expected_bss_size, RO::ResultInvalidNro); R_UNLESS(bss_size == expected_bss_size, RO::ResultInvalidNro);
// Validate all sizes are aligned. // Validate all sizes are aligned.
R_UNLESS(Common::IsAligned(text_size, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidNro); R_UNLESS(Common::IsAligned(text_size, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidNro);
R_UNLESS(Common::IsAligned(ro_size, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidNro); R_UNLESS(Common::IsAligned(ro_size, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidNro);
R_UNLESS(Common::IsAligned(rw_size, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidNro); R_UNLESS(Common::IsAligned(rw_size, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidNro);
R_UNLESS(Common::IsAligned(bss_size, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidNro); R_UNLESS(Common::IsAligned(bss_size, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidNro);
// Validate sections are in order. // Validate sections are in order.
R_UNLESS(text_ofs <= ro_ofs, RO::ResultInvalidNro); R_UNLESS(text_ofs <= ro_ofs, RO::ResultInvalidNro);
@@ -286,16 +286,16 @@ private:
}; };
Result ValidateAddressAndNonZeroSize(u64 address, u64 size) { Result ValidateAddressAndNonZeroSize(u64 address, u64 size) {
R_UNLESS(Common::IsAligned(address, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidAddress); R_UNLESS(Common::IsAligned(address, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidAddress);
R_UNLESS(size != 0, RO::ResultInvalidSize); R_UNLESS(size != 0, RO::ResultInvalidSize);
R_UNLESS(Common::IsAligned(size, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidSize); R_UNLESS(Common::IsAligned(size, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidSize);
R_UNLESS(address < address + size, RO::ResultInvalidSize); R_UNLESS(address < address + size, RO::ResultInvalidSize);
R_SUCCEED(); R_SUCCEED();
} }
Result ValidateAddressAndSize(u64 address, u64 size) { Result ValidateAddressAndSize(u64 address, u64 size) {
R_UNLESS(Common::IsAligned(address, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidAddress); R_UNLESS(Common::IsAligned(address, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidAddress);
R_UNLESS(Common::IsAligned(size, Core::Memory::YUZU_PAGESIZE), RO::ResultInvalidSize); R_UNLESS(Common::IsAligned(size, Core::Memory::CITRON_PAGESIZE), RO::ResultInvalidSize);
R_UNLESS(size == 0 || address < address + size, RO::ResultInvalidSize); R_UNLESS(size == 0 || address < address + size, RO::ResultInvalidSize);
R_SUCCEED(); R_SUCCEED();
} }
@@ -369,7 +369,7 @@ public:
ASSERT(context != nullptr); ASSERT(context != nullptr);
// Validate address. // Validate address.
R_UNLESS(Common::IsAligned(nrr_address, Core::Memory::YUZU_PAGESIZE), R_UNLESS(Common::IsAligned(nrr_address, Core::Memory::CITRON_PAGESIZE),
RO::ResultInvalidAddress); RO::ResultInvalidAddress);
// Check the NRR is loaded. // Check the NRR is loaded.
@@ -436,7 +436,7 @@ public:
ASSERT(context != nullptr); ASSERT(context != nullptr);
// Validate address. // Validate address.
R_UNLESS(Common::IsAligned(nro_address, Core::Memory::YUZU_PAGESIZE), R_UNLESS(Common::IsAligned(nro_address, Core::Memory::CITRON_PAGESIZE),
RO::ResultInvalidAddress); RO::ResultInvalidAddress);
// Check the NRO is loaded. // Check the NRO is loaded.

View File

@@ -932,7 +932,7 @@ Result ISystemSettingsServer::SetPrimaryAlbumStorage(PrimaryAlbumStorage primary
Result ISystemSettingsServer::GetBatteryLot(Out<BatteryLot> out_battery_lot) { Result ISystemSettingsServer::GetBatteryLot(Out<BatteryLot> out_battery_lot) {
LOG_INFO(Service_SET, "called"); LOG_INFO(Service_SET, "called");
*out_battery_lot = {"YUZU0EMULATOR14022024"}; *out_battery_lot = {"CITRON0EMULATOR14022024"};
R_SUCCEED(); R_SUCCEED();
} }

View File

@@ -23,7 +23,7 @@ template <typename T>
struct CFReleaser { struct CFReleaser {
T ptr; T ptr;
YUZU_NON_COPYABLE(CFReleaser); CITRON_NON_COPYABLE(CFReleaser);
constexpr CFReleaser() : ptr(nullptr) {} constexpr CFReleaser() : ptr(nullptr) {}
constexpr CFReleaser(T ptr) : ptr(ptr) {} constexpr CFReleaser(T ptr) : ptr(ptr) {}
constexpr operator T() { constexpr operator T() {

View File

@@ -23,7 +23,7 @@ namespace {
Result AllocateSharedBufferMemory(std::unique_ptr<Kernel::KPageGroup>* out_page_group, Result AllocateSharedBufferMemory(std::unique_ptr<Kernel::KPageGroup>* out_page_group,
Core::System& system, u32 size) { Core::System& system, u32 size) {
using Core::Memory::YUZU_PAGESIZE; using Core::Memory::CITRON_PAGESIZE;
// Allocate memory for the system shared buffer. // Allocate memory for the system shared buffer.
auto& kernel = system.Kernel(); auto& kernel = system.Kernel();
@@ -34,7 +34,7 @@ Result AllocateSharedBufferMemory(std::unique_ptr<Kernel::KPageGroup>* out_page_
// Allocate memory from secure pool. // Allocate memory from secure pool.
R_TRY(kernel.MemoryManager().AllocateAndOpen( R_TRY(kernel.MemoryManager().AllocateAndOpen(
pg.get(), size / YUZU_PAGESIZE, pg.get(), size / CITRON_PAGESIZE,
Kernel::KMemoryManager::EncodeOption(Kernel::KMemoryManager::Pool::Secure, Kernel::KMemoryManager::EncodeOption(Kernel::KMemoryManager::Pool::Secure,
Kernel::KMemoryManager::Direction::FromBack))); Kernel::KMemoryManager::Direction::FromBack)));
@@ -58,13 +58,13 @@ Result AllocateSharedBufferMemory(std::unique_ptr<Kernel::KPageGroup>* out_page_
Result MapSharedBufferIntoProcessAddressSpace(Common::ProcessAddress* out_map_address, Result MapSharedBufferIntoProcessAddressSpace(Common::ProcessAddress* out_map_address,
std::unique_ptr<Kernel::KPageGroup>& pg, std::unique_ptr<Kernel::KPageGroup>& pg,
Kernel::KProcess* process, Core::System& system) { Kernel::KProcess* process, Core::System& system) {
using Core::Memory::YUZU_PAGESIZE; using Core::Memory::CITRON_PAGESIZE;
auto& page_table = process->GetPageTable(); auto& page_table = process->GetPageTable();
// Get bounds of where mapping is possible. // Get bounds of where mapping is possible.
const VAddr alias_code_begin = GetInteger(page_table.GetAliasCodeRegionStart()); const VAddr alias_code_begin = GetInteger(page_table.GetAliasCodeRegionStart());
const VAddr alias_code_size = page_table.GetAliasCodeRegionSize() / YUZU_PAGESIZE; const VAddr alias_code_size = page_table.GetAliasCodeRegionSize() / CITRON_PAGESIZE;
const auto state = Kernel::KMemoryState::IoMemory; const auto state = Kernel::KMemoryState::IoMemory;
const auto perm = Kernel::KMemoryPermission::UserReadWrite; const auto perm = Kernel::KMemoryPermission::UserReadWrite;
std::mt19937_64 rng{process->GetRandomEntropy(0)}; std::mt19937_64 rng{process->GetRandomEntropy(0)};
@@ -73,7 +73,7 @@ Result MapSharedBufferIntoProcessAddressSpace(Common::ProcessAddress* out_map_ad
Result res = ResultSuccess; Result res = ResultSuccess;
int i; int i;
for (i = 0; i < 64; i++) { for (i = 0; i < 64; i++) {
*out_map_address = alias_code_begin + ((rng() % alias_code_size) * YUZU_PAGESIZE); *out_map_address = alias_code_begin + ((rng() % alias_code_size) * CITRON_PAGESIZE);
res = page_table.MapPageGroup(*out_map_address, *pg, state, perm); res = page_table.MapPageGroup(*out_map_address, *pg, state, perm);
if (R_SUCCEEDED(res)) { if (R_SUCCEEDED(res)) {
break; break;

View File

@@ -12,7 +12,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#elif YUZU_UNIX #elif CITRON_UNIX
#include <arpa/inet.h> #include <arpa/inet.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
@@ -77,7 +77,7 @@ SOCKET GetInterruptSocket() {
sockaddr TranslateFromSockAddrIn(SockAddrIn input) { sockaddr TranslateFromSockAddrIn(SockAddrIn input) {
sockaddr_in result; sockaddr_in result;
#if YUZU_UNIX #if CITRON_UNIX
result.sin_len = sizeof(result); result.sin_len = sizeof(result);
#endif #endif
@@ -162,7 +162,7 @@ Errno TranslateNativeError(int e, CallType call_type = CallType::Other) {
} }
} }
#elif YUZU_UNIX // ^ _WIN32 v YUZU_UNIX #elif CITRON_UNIX // ^ _WIN32 v CITRON_UNIX
using SOCKET = int; using SOCKET = int;
using WSAPOLLFD = pollfd; using WSAPOLLFD = pollfd;
@@ -835,7 +835,7 @@ std::pair<s32, Errno> Socket::Send(std::span<const u8> message, int flags) {
ASSERT(flags == 0); ASSERT(flags == 0);
int native_flags = 0; int native_flags = 0;
#if YUZU_UNIX #if CITRON_UNIX
native_flags |= MSG_NOSIGNAL; // do not send us SIGPIPE native_flags |= MSG_NOSIGNAL; // do not send us SIGPIPE
#endif #endif
const auto result = send(fd, reinterpret_cast<const char*>(message.data()), const auto result = send(fd, reinterpret_cast<const char*>(message.data()),

View File

@@ -13,7 +13,7 @@
#ifdef _WIN32 #ifdef _WIN32
#include <winsock2.h> #include <winsock2.h>
#elif YUZU_UNIX #elif CITRON_UNIX
#include <netinet/in.h> #include <netinet/in.h>
#endif #endif
@@ -104,7 +104,7 @@ constexpr IPv4Address TranslateIPv4(in_addr addr) {
auto& bytes = addr.S_un.S_un_b; auto& bytes = addr.S_un.S_un_b;
return IPv4Address{bytes.s_b1, bytes.s_b2, bytes.s_b3, bytes.s_b4}; return IPv4Address{bytes.s_b1, bytes.s_b2, bytes.s_b3, bytes.s_b4};
} }
#elif YUZU_UNIX #elif CITRON_UNIX
constexpr IPv4Address TranslateIPv4(in_addr addr) { constexpr IPv4Address TranslateIPv4(in_addr addr) {
const u32 bytes = addr.s_addr; const u32 bytes = addr.s_addr;
return IPv4Address{static_cast<u8>(bytes), static_cast<u8>(bytes >> 8), return IPv4Address{static_cast<u8>(bytes), static_cast<u8>(bytes >> 8),

View File

@@ -12,7 +12,7 @@
#include "core/internal_network/socket_proxy.h" #include "core/internal_network/socket_proxy.h"
#include "network/network.h" #include "network/network.h"
#if YUZU_UNIX #if CITRON_UNIX
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif

View File

@@ -9,7 +9,7 @@
#include <utility> #include <utility>
#if defined(_WIN32) #if defined(_WIN32)
#elif !YUZU_UNIX #elif !CITRON_UNIX
#error "Platform not implemented" #error "Platform not implemented"
#endif #endif
@@ -24,7 +24,7 @@ struct ProxyPacket;
class SocketBase { class SocketBase {
public: public:
#ifdef YUZU_UNIX #ifdef CITRON_UNIX
using SOCKET = int; using SOCKET = int;
static constexpr SOCKET INVALID_SOCKET = -1; static constexpr SOCKET INVALID_SOCKET = -1;
static constexpr SOCKET SOCKET_ERROR = -1; static constexpr SOCKET SOCKET_ERROR = -1;
@@ -39,8 +39,8 @@ public:
explicit SocketBase(SOCKET fd_) : fd{fd_} {} explicit SocketBase(SOCKET fd_) : fd{fd_} {}
virtual ~SocketBase() = default; virtual ~SocketBase() = default;
YUZU_NON_COPYABLE(SocketBase); CITRON_NON_COPYABLE(SocketBase);
YUZU_NON_MOVEABLE(SocketBase); CITRON_NON_MOVEABLE(SocketBase);
virtual Errno Initialize(Domain domain, Type type, Protocol protocol) = 0; virtual Errno Initialize(Domain domain, Type type, Protocol protocol) = 0;

View File

@@ -14,7 +14,7 @@ namespace Loader {
namespace { namespace {
constexpr u32 PageAlignSize(u32 size) { constexpr u32 PageAlignSize(u32 size) {
return static_cast<u32>((size + Core::Memory::YUZU_PAGEMASK) & ~Core::Memory::YUZU_PAGEMASK); return static_cast<u32>((size + Core::Memory::CITRON_PAGEMASK) & ~Core::Memory::CITRON_PAGEMASK);
} }
} // Anonymous namespace } // Anonymous namespace

View File

@@ -143,8 +143,8 @@ std::ostream& operator<<(std::ostream& os, ResultStatus status);
/// Interface for loading an application /// Interface for loading an application
class AppLoader { class AppLoader {
public: public:
YUZU_NON_COPYABLE(AppLoader); CITRON_NON_COPYABLE(AppLoader);
YUZU_NON_MOVEABLE(AppLoader); CITRON_NON_MOVEABLE(AppLoader);
struct LoadParameters { struct LoadParameters {
s32 main_thread_priority; s32 main_thread_priority;

View File

@@ -140,7 +140,7 @@ bool AppLoader_NRO::IsHomebrew() {
} }
static constexpr u32 PageAlignSize(u32 size) { static constexpr u32 PageAlignSize(u32 size) {
return static_cast<u32>((size + Core::Memory::YUZU_PAGEMASK) & ~Core::Memory::YUZU_PAGEMASK); return static_cast<u32>((size + Core::Memory::CITRON_PAGEMASK) & ~Core::Memory::CITRON_PAGEMASK);
} }
static bool LoadNroImpl(Core::System& system, Kernel::KProcess& process, static bool LoadNroImpl(Core::System& system, Kernel::KProcess& process,

View File

@@ -49,7 +49,7 @@ std::vector<u8> DecompressSegment(const std::vector<u8>& compressed_data,
} }
constexpr u32 PageAlignSize(u32 size) { constexpr u32 PageAlignSize(u32 size) {
return static_cast<u32>((size + Core::Memory::YUZU_PAGEMASK) & ~Core::Memory::YUZU_PAGEMASK); return static_cast<u32>((size + Core::Memory::CITRON_PAGEMASK) & ~Core::Memory::CITRON_PAGEMASK);
} }
} // Anonymous namespace } // Anonymous namespace

View File

@@ -66,11 +66,11 @@ struct Memory::Impl {
void MapMemoryRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size, void MapMemoryRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size,
Common::PhysicalAddress target, Common::MemoryPermission perms, Common::PhysicalAddress target, Common::MemoryPermission perms,
bool separate_heap) { bool separate_heap) {
ASSERT_MSG((size & YUZU_PAGEMASK) == 0, "non-page aligned size: {:016X}", size); ASSERT_MSG((size & CITRON_PAGEMASK) == 0, "non-page aligned size: {:016X}", size);
ASSERT_MSG((base & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", GetInteger(base)); ASSERT_MSG((base & CITRON_PAGEMASK) == 0, "non-page aligned base: {:016X}", GetInteger(base));
ASSERT_MSG(target >= DramMemoryMap::Base, "Out of bounds target: {:016X}", ASSERT_MSG(target >= DramMemoryMap::Base, "Out of bounds target: {:016X}",
GetInteger(target)); GetInteger(target));
MapPages(page_table, base / YUZU_PAGESIZE, size / YUZU_PAGESIZE, target, MapPages(page_table, base / CITRON_PAGESIZE, size / CITRON_PAGESIZE, target,
Common::PageType::Memory); Common::PageType::Memory);
if (current_page_table->fastmem_arena) { if (current_page_table->fastmem_arena) {
@@ -81,9 +81,9 @@ struct Memory::Impl {
void UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size, void UnmapRegion(Common::PageTable& page_table, Common::ProcessAddress base, u64 size,
bool separate_heap) { bool separate_heap) {
ASSERT_MSG((size & YUZU_PAGEMASK) == 0, "non-page aligned size: {:016X}", size); ASSERT_MSG((size & CITRON_PAGEMASK) == 0, "non-page aligned size: {:016X}", size);
ASSERT_MSG((base & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", GetInteger(base)); ASSERT_MSG((base & CITRON_PAGEMASK) == 0, "non-page aligned base: {:016X}", GetInteger(base));
MapPages(page_table, base / YUZU_PAGESIZE, size / YUZU_PAGESIZE, 0, MapPages(page_table, base / CITRON_PAGESIZE, size / CITRON_PAGESIZE, 0,
Common::PageType::Unmapped); Common::PageType::Unmapped);
if (current_page_table->fastmem_arena) { if (current_page_table->fastmem_arena) {
@@ -93,8 +93,8 @@ struct Memory::Impl {
void ProtectRegion(Common::PageTable& page_table, VAddr vaddr, u64 size, void ProtectRegion(Common::PageTable& page_table, VAddr vaddr, u64 size,
Common::MemoryPermission perms) { Common::MemoryPermission perms) {
ASSERT_MSG((size & YUZU_PAGEMASK) == 0, "non-page aligned size: {:016X}", size); ASSERT_MSG((size & CITRON_PAGEMASK) == 0, "non-page aligned size: {:016X}", size);
ASSERT_MSG((vaddr & YUZU_PAGEMASK) == 0, "non-page aligned base: {:016X}", vaddr); ASSERT_MSG((vaddr & CITRON_PAGEMASK) == 0, "non-page aligned base: {:016X}", vaddr);
if (!current_page_table->fastmem_arena) { if (!current_page_table->fastmem_arena) {
return; return;
@@ -102,9 +102,9 @@ struct Memory::Impl {
u64 protect_bytes{}; u64 protect_bytes{};
u64 protect_begin{}; u64 protect_begin{};
for (u64 addr = vaddr; addr < vaddr + size; addr += YUZU_PAGESIZE) { for (u64 addr = vaddr; addr < vaddr + size; addr += CITRON_PAGESIZE) {
const Common::PageType page_type{ const Common::PageType page_type{
current_page_table->pointers[addr >> YUZU_PAGEBITS].Type()}; current_page_table->pointers[addr >> CITRON_PAGEBITS].Type()};
switch (page_type) { switch (page_type) {
case Common::PageType::RasterizerCachedMemory: case Common::PageType::RasterizerCachedMemory:
if (protect_bytes > 0) { if (protect_bytes > 0) {
@@ -116,7 +116,7 @@ struct Memory::Impl {
if (protect_bytes == 0) { if (protect_bytes == 0) {
protect_begin = addr; protect_begin = addr;
} }
protect_bytes += YUZU_PAGESIZE; protect_bytes += CITRON_PAGESIZE;
} }
} }
@@ -127,7 +127,7 @@ struct Memory::Impl {
[[nodiscard]] u8* GetPointerFromRasterizerCachedMemory(u64 vaddr) const { [[nodiscard]] u8* GetPointerFromRasterizerCachedMemory(u64 vaddr) const {
const Common::PhysicalAddress paddr{ const Common::PhysicalAddress paddr{
current_page_table->backing_addr[vaddr >> YUZU_PAGEBITS]}; current_page_table->backing_addr[vaddr >> CITRON_PAGEBITS]};
if (!paddr) { if (!paddr) {
return {}; return {};
@@ -138,7 +138,7 @@ struct Memory::Impl {
[[nodiscard]] u8* GetPointerFromDebugMemory(u64 vaddr) const { [[nodiscard]] u8* GetPointerFromDebugMemory(u64 vaddr) const {
const Common::PhysicalAddress paddr{ const Common::PhysicalAddress paddr{
current_page_table->backing_addr[vaddr >> YUZU_PAGEBITS]}; current_page_table->backing_addr[vaddr >> CITRON_PAGEBITS]};
if (paddr == 0) { if (paddr == 0) {
return {}; return {};
@@ -247,8 +247,8 @@ struct Memory::Impl {
auto on_memory, auto on_rasterizer, auto increment) { auto on_memory, auto on_rasterizer, auto increment) {
const auto& page_table = *current_page_table; const auto& page_table = *current_page_table;
std::size_t remaining_size = size; std::size_t remaining_size = size;
std::size_t page_index = addr >> YUZU_PAGEBITS; std::size_t page_index = addr >> CITRON_PAGEBITS;
std::size_t page_offset = addr & YUZU_PAGEMASK; std::size_t page_offset = addr & CITRON_PAGEMASK;
bool user_accessible = true; bool user_accessible = true;
if (!AddressSpaceContains(page_table, addr, size)) [[unlikely]] { if (!AddressSpaceContains(page_table, addr, size)) [[unlikely]] {
@@ -258,9 +258,9 @@ struct Memory::Impl {
while (remaining_size) { while (remaining_size) {
const std::size_t copy_amount = const std::size_t copy_amount =
std::min(static_cast<std::size_t>(YUZU_PAGESIZE) - page_offset, remaining_size); std::min(static_cast<std::size_t>(CITRON_PAGESIZE) - page_offset, remaining_size);
const auto current_vaddr = const auto current_vaddr =
static_cast<u64>((page_index << YUZU_PAGEBITS) + page_offset); static_cast<u64>((page_index << CITRON_PAGEBITS) + page_offset);
const auto [pointer, type] = page_table.pointers[page_index].PointerType(); const auto [pointer, type] = page_table.pointers[page_index].PointerType();
switch (type) { switch (type) {
@@ -271,7 +271,7 @@ struct Memory::Impl {
} }
case Common::PageType::Memory: { case Common::PageType::Memory: {
u8* mem_ptr = u8* mem_ptr =
reinterpret_cast<u8*>(pointer + page_offset + (page_index << YUZU_PAGEBITS)); reinterpret_cast<u8*>(pointer + page_offset + (page_index << CITRON_PAGEBITS));
on_memory(copy_amount, mem_ptr); on_memory(copy_amount, mem_ptr);
break; break;
} }
@@ -336,16 +336,16 @@ struct Memory::Impl {
} }
const u8* GetSpan(const VAddr src_addr, const std::size_t size) const { const u8* GetSpan(const VAddr src_addr, const std::size_t size) const {
if (current_page_table->blocks[src_addr >> YUZU_PAGEBITS] == if (current_page_table->blocks[src_addr >> CITRON_PAGEBITS] ==
current_page_table->blocks[(src_addr + size) >> YUZU_PAGEBITS]) { current_page_table->blocks[(src_addr + size) >> CITRON_PAGEBITS]) {
return GetPointerSilent(src_addr); return GetPointerSilent(src_addr);
} }
return nullptr; return nullptr;
} }
u8* GetSpan(const VAddr src_addr, const std::size_t size) { u8* GetSpan(const VAddr src_addr, const std::size_t size) {
if (current_page_table->blocks[src_addr >> YUZU_PAGEBITS] == if (current_page_table->blocks[src_addr >> CITRON_PAGEBITS] ==
current_page_table->blocks[(src_addr + size) >> YUZU_PAGEBITS]) { current_page_table->blocks[(src_addr + size) >> CITRON_PAGEBITS]) {
return GetPointerSilent(src_addr); return GetPointerSilent(src_addr);
} }
return nullptr; return nullptr;
@@ -499,10 +499,10 @@ struct Memory::Impl {
// Iterate over a contiguous CPU address space, marking/unmarking the region. // Iterate over a contiguous CPU address space, marking/unmarking the region.
// The region is at a granularity of CPU pages. // The region is at a granularity of CPU pages.
const u64 num_pages = ((vaddr + size - 1) >> YUZU_PAGEBITS) - (vaddr >> YUZU_PAGEBITS) + 1; const u64 num_pages = ((vaddr + size - 1) >> CITRON_PAGEBITS) - (vaddr >> CITRON_PAGEBITS) + 1;
for (u64 i = 0; i < num_pages; ++i, vaddr += YUZU_PAGESIZE) { for (u64 i = 0; i < num_pages; ++i, vaddr += CITRON_PAGESIZE) {
const Common::PageType page_type{ const Common::PageType page_type{
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Type()}; current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Type()};
if (debug) { if (debug) {
// Switch page type to debug if now debug // Switch page type to debug if now debug
switch (page_type) { switch (page_type) {
@@ -514,7 +514,7 @@ struct Memory::Impl {
// Page is already marked. // Page is already marked.
break; break;
case Common::PageType::Memory: case Common::PageType::Memory:
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Store( current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Store(
0, Common::PageType::DebugMemory); 0, Common::PageType::DebugMemory);
break; break;
default: default:
@@ -531,9 +531,9 @@ struct Memory::Impl {
// Don't mess with already non-debug or rasterizer memory. // Don't mess with already non-debug or rasterizer memory.
break; break;
case Common::PageType::DebugMemory: { case Common::PageType::DebugMemory: {
u8* const pointer{GetPointerFromDebugMemory(vaddr & ~YUZU_PAGEMASK)}; u8* const pointer{GetPointerFromDebugMemory(vaddr & ~CITRON_PAGEMASK)};
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Store( current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Store(
reinterpret_cast<uintptr_t>(pointer) - (vaddr & ~YUZU_PAGEMASK), reinterpret_cast<uintptr_t>(pointer) - (vaddr & ~CITRON_PAGEMASK),
Common::PageType::Memory); Common::PageType::Memory);
break; break;
} }
@@ -565,10 +565,10 @@ struct Memory::Impl {
// granularity of CPU pages, hence why we iterate on a CPU page basis (note: GPU page size // granularity of CPU pages, hence why we iterate on a CPU page basis (note: GPU page size
// is different). This assumes the specified GPU address region is contiguous as well. // is different). This assumes the specified GPU address region is contiguous as well.
const u64 num_pages = ((vaddr + size - 1) >> YUZU_PAGEBITS) - (vaddr >> YUZU_PAGEBITS) + 1; const u64 num_pages = ((vaddr + size - 1) >> CITRON_PAGEBITS) - (vaddr >> CITRON_PAGEBITS) + 1;
for (u64 i = 0; i < num_pages; ++i, vaddr += YUZU_PAGESIZE) { for (u64 i = 0; i < num_pages; ++i, vaddr += CITRON_PAGESIZE) {
const Common::PageType page_type{ const Common::PageType page_type{
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Type()}; current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Type()};
if (cached) { if (cached) {
// Switch page type to cached if now cached // Switch page type to cached if now cached
switch (page_type) { switch (page_type) {
@@ -578,7 +578,7 @@ struct Memory::Impl {
break; break;
case Common::PageType::DebugMemory: case Common::PageType::DebugMemory:
case Common::PageType::Memory: case Common::PageType::Memory:
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Store( current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Store(
0, Common::PageType::RasterizerCachedMemory); 0, Common::PageType::RasterizerCachedMemory);
break; break;
case Common::PageType::RasterizerCachedMemory: case Common::PageType::RasterizerCachedMemory:
@@ -601,16 +601,16 @@ struct Memory::Impl {
// that this area is already unmarked as cached. // that this area is already unmarked as cached.
break; break;
case Common::PageType::RasterizerCachedMemory: { case Common::PageType::RasterizerCachedMemory: {
u8* const pointer{GetPointerFromRasterizerCachedMemory(vaddr & ~YUZU_PAGEMASK)}; u8* const pointer{GetPointerFromRasterizerCachedMemory(vaddr & ~CITRON_PAGEMASK)};
if (pointer == nullptr) { if (pointer == nullptr) {
// It's possible that this function has been called while updating the // It's possible that this function has been called while updating the
// pagetable after unmapping a VMA. In that case the underlying VMA will no // pagetable after unmapping a VMA. In that case the underlying VMA will no
// longer exist, and we should just leave the pagetable entry blank. // longer exist, and we should just leave the pagetable entry blank.
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Store( current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Store(
0, Common::PageType::Unmapped); 0, Common::PageType::Unmapped);
} else { } else {
current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Store( current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Store(
reinterpret_cast<uintptr_t>(pointer) - (vaddr & ~YUZU_PAGEMASK), reinterpret_cast<uintptr_t>(pointer) - (vaddr & ~CITRON_PAGEMASK),
Common::PageType::Memory); Common::PageType::Memory);
} }
break; break;
@@ -636,7 +636,7 @@ struct Memory::Impl {
auto base = GetInteger(base_address); auto base = GetInteger(base_address);
LOG_DEBUG(HW_Memory, "Mapping {:016X} onto {:016X}-{:016X}", GetInteger(target), LOG_DEBUG(HW_Memory, "Mapping {:016X} onto {:016X}-{:016X}", GetInteger(target),
base * YUZU_PAGESIZE, (base + size) * YUZU_PAGESIZE); base * CITRON_PAGESIZE, (base + size) * CITRON_PAGESIZE);
const auto end = base + size; const auto end = base + size;
ASSERT_MSG(end <= page_table.pointers.size(), "out of range mapping at {:016X}", ASSERT_MSG(end <= page_table.pointers.size(), "out of range mapping at {:016X}",
@@ -644,7 +644,7 @@ struct Memory::Impl {
if (!target) { if (!target) {
ASSERT_MSG(type != Common::PageType::Memory, ASSERT_MSG(type != Common::PageType::Memory,
"Mapping memory page without a pointer @ {:016x}", base * YUZU_PAGESIZE); "Mapping memory page without a pointer @ {:016x}", base * CITRON_PAGESIZE);
while (base != end) { while (base != end) {
page_table.pointers[base].Store(0, type); page_table.pointers[base].Store(0, type);
@@ -657,17 +657,17 @@ struct Memory::Impl {
while (base != end) { while (base != end) {
auto host_ptr = auto host_ptr =
reinterpret_cast<uintptr_t>(system.DeviceMemory().GetPointer<u8>(target)) - reinterpret_cast<uintptr_t>(system.DeviceMemory().GetPointer<u8>(target)) -
(base << YUZU_PAGEBITS); (base << CITRON_PAGEBITS);
auto backing = GetInteger(target) - (base << YUZU_PAGEBITS); auto backing = GetInteger(target) - (base << CITRON_PAGEBITS);
page_table.pointers[base].Store(host_ptr, type); page_table.pointers[base].Store(host_ptr, type);
page_table.backing_addr[base] = backing; page_table.backing_addr[base] = backing;
page_table.blocks[base] = orig_base << YUZU_PAGEBITS; page_table.blocks[base] = orig_base << CITRON_PAGEBITS;
ASSERT_MSG(page_table.pointers[base].Pointer(), ASSERT_MSG(page_table.pointers[base].Pointer(),
"memory mapping base yield a nullptr within the table"); "memory mapping base yield a nullptr within the table");
base += 1; base += 1;
target += YUZU_PAGESIZE; target += CITRON_PAGESIZE;
} }
} }
} }
@@ -682,7 +682,7 @@ struct Memory::Impl {
} }
// Avoid adding any extra logic to this fast-path block // Avoid adding any extra logic to this fast-path block
const uintptr_t raw_pointer = current_page_table->pointers[vaddr >> YUZU_PAGEBITS].Raw(); const uintptr_t raw_pointer = current_page_table->pointers[vaddr >> CITRON_PAGEBITS].Raw();
if (const uintptr_t pointer = Common::PageTable::PageInfo::ExtractPointer(raw_pointer)) { if (const uintptr_t pointer = Common::PageTable::PageInfo::ExtractPointer(raw_pointer)) {
return reinterpret_cast<u8*>(pointer + vaddr); return reinterpret_cast<u8*>(pointer + vaddr);
} }
@@ -837,7 +837,7 @@ struct Memory::Impl {
}; };
gpu_device_memory->ApplyOpOnPointer(p, scratch_buffers[core], [&](DAddr address) { gpu_device_memory->ApplyOpOnPointer(p, scratch_buffers[core], [&](DAddr address) {
auto& current_area = rasterizer_write_areas[core]; auto& current_area = rasterizer_write_areas[core];
PAddr subaddress = address >> YUZU_PAGEBITS; PAddr subaddress = address >> CITRON_PAGEBITS;
bool do_collection = current_area.last_address == subaddress; bool do_collection = current_area.last_address == subaddress;
if (!do_collection) [[unlikely]] { if (!do_collection) [[unlikely]] {
do_collection = system.GPU().OnCPUWrite(address, size); do_collection = system.GPU().OnCPUWrite(address, size);
@@ -925,7 +925,7 @@ void Memory::ProtectRegion(Common::PageTable& page_table, Common::ProcessAddress
bool Memory::IsValidVirtualAddress(const Common::ProcessAddress vaddr) const { bool Memory::IsValidVirtualAddress(const Common::ProcessAddress vaddr) const {
const auto& page_table = *impl->current_page_table; const auto& page_table = *impl->current_page_table;
const size_t page = vaddr >> YUZU_PAGEBITS; const size_t page = vaddr >> CITRON_PAGEBITS;
if (page >= page_table.pointers.size()) { if (page >= page_table.pointers.size()) {
return false; return false;
} }
@@ -936,9 +936,9 @@ bool Memory::IsValidVirtualAddress(const Common::ProcessAddress vaddr) const {
bool Memory::IsValidVirtualAddressRange(Common::ProcessAddress base, u64 size) const { bool Memory::IsValidVirtualAddressRange(Common::ProcessAddress base, u64 size) const {
Common::ProcessAddress end = base + size; Common::ProcessAddress end = base + size;
Common::ProcessAddress page = Common::AlignDown(GetInteger(base), YUZU_PAGESIZE); Common::ProcessAddress page = Common::AlignDown(GetInteger(base), CITRON_PAGESIZE);
for (; page < end; page += YUZU_PAGESIZE) { for (; page < end; page += CITRON_PAGESIZE) {
if (!IsValidVirtualAddress(page)) { if (!IsValidVirtualAddress(page)) {
return false; return false;
} }

View File

@@ -39,9 +39,9 @@ namespace Core::Memory {
* Page size used by the ARM architecture. This is the smallest granularity with which memory can * Page size used by the ARM architecture. This is the smallest granularity with which memory can
* be mapped. * be mapped.
*/ */
constexpr std::size_t YUZU_PAGEBITS = 12; constexpr std::size_t CITRON_PAGEBITS = 12;
constexpr u64 YUZU_PAGESIZE = 1ULL << YUZU_PAGEBITS; constexpr u64 CITRON_PAGESIZE = 1ULL << CITRON_PAGEBITS;
constexpr u64 YUZU_PAGEMASK = YUZU_PAGESIZE - 1; constexpr u64 CITRON_PAGEMASK = CITRON_PAGESIZE - 1;
/// Virtual user-space memory regions /// Virtual user-space memory regions
enum : u64 { enum : u64 {

View File

@@ -23,7 +23,7 @@ if(UNIX AND NOT APPLE)
install(TARGETS citron-room) install(TARGETS citron-room)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(citron-room PRIVATE precompiled_headers.h) target_precompile_headers(citron-room PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -9,7 +9,7 @@
// Icon with lowest ID value placed first to ensure application icon // Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems. // remains consistent on all systems.
YUZU_ICON ICON "../../dist/citron.ico" CITRON_ICON ICON "../../dist/citron.ico"
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

View File

@@ -161,6 +161,6 @@ endif()
create_target_directory_groups(hid_core) create_target_directory_groups(hid_core)
target_link_libraries(hid_core PUBLIC core) target_link_libraries(hid_core PUBLIC core)
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(hid_core PRIVATE precompiled_headers.h) target_precompile_headers(hid_core PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -80,8 +80,8 @@ public:
explicit EmulatedConsole(); explicit EmulatedConsole();
~EmulatedConsole(); ~EmulatedConsole();
YUZU_NON_COPYABLE(EmulatedConsole); CITRON_NON_COPYABLE(EmulatedConsole);
YUZU_NON_MOVEABLE(EmulatedConsole); CITRON_NON_MOVEABLE(EmulatedConsole);
/// Removes all callbacks created from input devices /// Removes all callbacks created from input devices
void UnloadInput(); void UnloadInput();

View File

@@ -178,8 +178,8 @@ public:
explicit EmulatedController(NpadIdType npad_id_type_); explicit EmulatedController(NpadIdType npad_id_type_);
~EmulatedController(); ~EmulatedController();
YUZU_NON_COPYABLE(EmulatedController); CITRON_NON_COPYABLE(EmulatedController);
YUZU_NON_MOVEABLE(EmulatedController); CITRON_NON_MOVEABLE(EmulatedController);
/// Converts the controller type from settings to npad type /// Converts the controller type from settings to npad type
static NpadStyleIndex MapSettingsTypeToNPad(Settings::ControllerType type); static NpadStyleIndex MapSettingsTypeToNPad(Settings::ControllerType type);

View File

@@ -81,8 +81,8 @@ public:
explicit EmulatedDevices(); explicit EmulatedDevices();
~EmulatedDevices(); ~EmulatedDevices();
YUZU_NON_COPYABLE(EmulatedDevices); CITRON_NON_COPYABLE(EmulatedDevices);
YUZU_NON_MOVEABLE(EmulatedDevices); CITRON_NON_MOVEABLE(EmulatedDevices);
/// Removes all callbacks created from input devices /// Removes all callbacks created from input devices
void UnloadInput(); void UnloadInput();

View File

@@ -21,8 +21,8 @@ public:
explicit HIDCore(); explicit HIDCore();
~HIDCore(); ~HIDCore();
YUZU_NON_COPYABLE(HIDCore); CITRON_NON_COPYABLE(HIDCore);
YUZU_NON_MOVEABLE(HIDCore); CITRON_NON_MOVEABLE(HIDCore);
EmulatedController* GetEmulatedController(NpadIdType npad_id_type); EmulatedController* GetEmulatedController(NpadIdType npad_id_type);
const EmulatedController* GetEmulatedController(NpadIdType npad_id_type) const; const EmulatedController* GetEmulatedController(NpadIdType npad_id_type) const;

View File

@@ -89,7 +89,7 @@ endif()
create_target_directory_groups(input_common) create_target_directory_groups(input_common)
target_link_libraries(input_common PUBLIC hid_core PRIVATE common Boost::headers) target_link_libraries(input_common PUBLIC hid_core PRIVATE common Boost::headers)
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(input_common PRIVATE precompiled_headers.h) target_precompile_headers(input_common PRIVATE precompiled_headers.h)
endif() endif()

View File

@@ -25,6 +25,6 @@ if (ENABLE_WEB_SERVICE)
target_link_libraries(network PRIVATE web_service) target_link_libraries(network PRIVATE web_service)
endif() endif()
if (YUZU_USE_PRECOMPILED_HEADERS) if (CITRON_USE_PRECOMPILED_HEADERS)
target_precompile_headers(network PRIVATE precompiled_headers.h) target_precompile_headers(network PRIVATE precompiled_headers.h)
endif() endif()

Some files were not shown because too many files have changed in this diff Show More