Initial Commit
485
CMakeLists.txt
Normal file
@ -0,0 +1,485 @@
|
|||||||
|
# CMake 3.12 required for 20 to be a valid value for CXX_STANDARD
|
||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
|
# Don't override the warning flags in MSVC:
|
||||||
|
cmake_policy(SET CMP0092 NEW)
|
||||||
|
# Enforce new LTO setting
|
||||||
|
cmake_policy(SET CMP0069 NEW)
|
||||||
|
# Honor visibility properties for all targets
|
||||||
|
# Set the default so subdirectory cmake_minimum_required calls won't unset the policy.
|
||||||
|
cmake_policy(SET CMP0063 NEW)
|
||||||
|
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
|
||||||
|
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
|
||||||
|
include(DownloadExternals)
|
||||||
|
include(CMakeDependentOption)
|
||||||
|
|
||||||
|
project(citra LANGUAGES C CXX ASM)
|
||||||
|
|
||||||
|
# Some submodules like to pick their own default build type if not specified.
|
||||||
|
# Make sure we default to Release build type always, unless the generator has custom types.
|
||||||
|
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
# Silence warnings on empty objects, for example when platform-specific code is #ifdef'd out.
|
||||||
|
set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||||
|
set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> Scr <TARGET> <LINK_FLAGS> <OBJECTS>")
|
||||||
|
set(CMAKE_C_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
|
||||||
|
set(CMAKE_CXX_ARCHIVE_FINISH "<CMAKE_RANLIB> -no_warning_for_no_symbols -c <TARGET>")
|
||||||
|
|
||||||
|
if (IOS)
|
||||||
|
# Minimum iOS 14
|
||||||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "14.0")
|
||||||
|
|
||||||
|
# Enable searching CMAKE_PREFIX_PATH for bundled dependencies.
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
|
||||||
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE BOTH)
|
||||||
|
else()
|
||||||
|
# Minimum macOS 11
|
||||||
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "11.0")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
|
set(IS_DEBUG_BUILD ON)
|
||||||
|
set(IS_RELEASE_BUILD OFF)
|
||||||
|
else()
|
||||||
|
set(IS_DEBUG_BUILD OFF)
|
||||||
|
set(IS_RELEASE_BUILD ON)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# LTO takes too much memory and time using MSVC.
|
||||||
|
if (NOT MSVC AND IS_RELEASE_BUILD)
|
||||||
|
set(DEFAULT_ENABLE_LTO ON)
|
||||||
|
else()
|
||||||
|
set(DEFAULT_ENABLE_LTO OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_SDL2 "Enable using SDL2" ON)
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_SDL2_FRONTEND "Enable the SDL2 frontend" ON "ENABLE_SDL2;NOT ANDROID AND NOT IOS" OFF)
|
||||||
|
option(USE_SYSTEM_SDL2 "Use the system SDL2 lib (instead of the bundled one)" OFF)
|
||||||
|
|
||||||
|
# Set bundled qt as dependent options.
|
||||||
|
option(ENABLE_QT "Enable the Qt frontend" ON)
|
||||||
|
option(ENABLE_QT_TRANSLATION "Enable translations for the Qt frontend" OFF)
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_QT_UPDATER "Enable built-in updater for the Qt frontend" ON "NOT IOS" OFF)
|
||||||
|
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_TESTS "Enable generating tests executable" ON "NOT IOS" OFF)
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_DEDICATED_ROOM "Enable generating dedicated room executable" ON "NOT ANDROID AND NOT IOS" OFF)
|
||||||
|
|
||||||
|
option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON)
|
||||||
|
option(ENABLE_SCRIPTING "Enable RPC server for scripting" ON)
|
||||||
|
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_CUBEB "Enables the cubeb audio backend" ON "NOT IOS" OFF)
|
||||||
|
option(ENABLE_OPENAL "Enables the OpenAL audio backend" ON)
|
||||||
|
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_LIBUSB "Enable libusb for GameCube Adapter support" ON "NOT IOS" OFF)
|
||||||
|
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_SOFTWARE_RENDERER "Enables the software renderer" ON "NOT ANDROID" OFF)
|
||||||
|
CMAKE_DEPENDENT_OPTION(ENABLE_OPENGL "Enables the OpenGL renderer" ON "NOT APPLE" OFF)
|
||||||
|
option(ENABLE_VULKAN "Enables the Vulkan renderer" ON)
|
||||||
|
|
||||||
|
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
|
||||||
|
|
||||||
|
# Compile options
|
||||||
|
CMAKE_DEPENDENT_OPTION(COMPILE_WITH_DWARF "Add DWARF debugging information" ${IS_DEBUG_BUILD} "MINGW" OFF)
|
||||||
|
option(ENABLE_LTO "Enable link time optimization" ${DEFAULT_ENABLE_LTO})
|
||||||
|
option(CITRA_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON)
|
||||||
|
option(CITRA_WARNINGS_AS_ERRORS "Enable warnings as errors" ON)
|
||||||
|
|
||||||
|
include(CitraHandleSystemLibs)
|
||||||
|
|
||||||
|
if (CITRA_USE_PRECOMPILED_HEADERS)
|
||||||
|
message(STATUS "Using Precompiled Headers.")
|
||||||
|
set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON)
|
||||||
|
|
||||||
|
# This ensures that pre-compiled headers won't invalidate build caches for every fresh checkout.
|
||||||
|
if(NOT MSVC AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
|
list(APPEND CMAKE_CXX_COMPILE_OPTIONS_CREATE_PCH -Xclang -fno-pch-timestamp)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/.git/hooks/pre-commit)
|
||||||
|
message(STATUS "Copying pre-commit hook")
|
||||||
|
file(COPY hooks/pre-commit
|
||||||
|
DESTINATION ${PROJECT_SOURCE_DIR}/.git/hooks)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Use ccache for android if available
|
||||||
|
# =======================================================================
|
||||||
|
if (NOT $ENV{NDK_CCACHE} EQUAL "")
|
||||||
|
set(CCACHE_EXE $ENV{NDK_CCACHE})
|
||||||
|
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_EXE})
|
||||||
|
set(CMAKE_CXX_COMPILER_LAUNCHER ${CCACHE_EXE})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Check for LTO support
|
||||||
|
# =======================================================================
|
||||||
|
if (ENABLE_LTO)
|
||||||
|
include(CheckIPOSupported)
|
||||||
|
check_ipo_supported(RESULT supported OUTPUT error_msg)
|
||||||
|
|
||||||
|
if (supported)
|
||||||
|
message(STATUS "LTO enabled")
|
||||||
|
else()
|
||||||
|
message(STATUS "LTO enabled but is unavailable, disabling: ${error_msg}")
|
||||||
|
set(ENABLE_LTO OFF)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(STATUS "LTO disabled")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Sanity check : Check that all submodules are present
|
||||||
|
# =======================================================================
|
||||||
|
|
||||||
|
function(check_submodules_present)
|
||||||
|
file(READ "${PROJECT_SOURCE_DIR}/.gitmodules" gitmodules)
|
||||||
|
string(REGEX MATCHALL "path *= *[^ \t\r\n]*" gitmodules ${gitmodules})
|
||||||
|
foreach(module ${gitmodules})
|
||||||
|
string(REGEX REPLACE "path *= *" "" module ${module})
|
||||||
|
if (NOT EXISTS "${PROJECT_SOURCE_DIR}/${module}/.git")
|
||||||
|
message(SEND_ERROR "Git submodule ${module} not found."
|
||||||
|
"Please run: git submodule update --init --recursive")
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
|
endfunction()
|
||||||
|
if (EXISTS "${PROJECT_SOURCE_DIR}/.git/objects")
|
||||||
|
# only check submodules when source is obtained via Git
|
||||||
|
check_submodules_present()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
configure_file(${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.qrc
|
||||||
|
${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc
|
||||||
|
COPYONLY)
|
||||||
|
if (ENABLE_COMPATIBILITY_LIST_DOWNLOAD AND NOT EXISTS ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json)
|
||||||
|
message(STATUS "Downloading compatibility list for citra...")
|
||||||
|
file(DOWNLOAD
|
||||||
|
https://api.citra-emu.org/gamedb/
|
||||||
|
"${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json" SHOW_PROGRESS)
|
||||||
|
endif()
|
||||||
|
if (EXISTS ${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.json)
|
||||||
|
file(COPY "${PROJECT_SOURCE_DIR}/dist/compatibility_list/compatibility_list.json"
|
||||||
|
DESTINATION "${PROJECT_BINARY_DIR}/dist/compatibility_list/")
|
||||||
|
endif()
|
||||||
|
if (NOT EXISTS ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json)
|
||||||
|
file(WRITE ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json "")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Detect current compilation architecture and create standard definitions
|
||||||
|
# =======================================================================
|
||||||
|
|
||||||
|
include(CheckSymbolExists)
|
||||||
|
function(detect_architecture symbol arch)
|
||||||
|
if (NOT DEFINED ARCHITECTURE)
|
||||||
|
set(CMAKE_REQUIRED_QUIET 1)
|
||||||
|
check_symbol_exists("${symbol}" "" ARCHITECTURE_${arch})
|
||||||
|
unset(CMAKE_REQUIRED_QUIET)
|
||||||
|
|
||||||
|
# The output variable needs to be unique across invocations otherwise
|
||||||
|
# CMake's crazy scope rules will keep it defined
|
||||||
|
if (ARCHITECTURE_${arch})
|
||||||
|
set(ARCHITECTURE "${arch}" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
if (NOT ENABLE_GENERIC)
|
||||||
|
if (CMAKE_OSX_ARCHITECTURES)
|
||||||
|
set(ARCHITECTURE "${CMAKE_OSX_ARCHITECTURES}")
|
||||||
|
elseif (MSVC)
|
||||||
|
detect_architecture("_M_AMD64" x86_64)
|
||||||
|
detect_architecture("_M_IX86" x86)
|
||||||
|
detect_architecture("_M_ARM" arm)
|
||||||
|
detect_architecture("_M_ARM64" arm64)
|
||||||
|
else()
|
||||||
|
detect_architecture("__x86_64__" x86_64)
|
||||||
|
detect_architecture("__i386__" x86)
|
||||||
|
detect_architecture("__arm__" arm)
|
||||||
|
detect_architecture("__aarch64__" arm64)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
if (NOT DEFINED ARCHITECTURE)
|
||||||
|
set(ARCHITECTURE "GENERIC")
|
||||||
|
endif()
|
||||||
|
message(STATUS "Target architecture: ${ARCHITECTURE}")
|
||||||
|
|
||||||
|
|
||||||
|
# Configure C++ standard
|
||||||
|
# ===========================
|
||||||
|
|
||||||
|
# boost asio's concept usage doesn't play nicely with some compilers yet.
|
||||||
|
add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS)
|
||||||
|
# boost can have issues compiling with C++17 and up on newer versions of Clang.
|
||||||
|
add_definitions(-DBOOST_NO_CXX98_FUNCTION_BASE)
|
||||||
|
set(CMAKE_CXX_STANDARD 20)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
|
# Apply consistent visibility settings.
|
||||||
|
set(CMAKE_CXX_VISIBILITY_PRESET default)
|
||||||
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN NO)
|
||||||
|
|
||||||
|
# set up output paths for executable binaries
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/$<CONFIG>)
|
||||||
|
|
||||||
|
|
||||||
|
# System imported libraries
|
||||||
|
# ======================
|
||||||
|
|
||||||
|
# Prefer the -pthread flag on Linux.
|
||||||
|
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||||
|
find_package(Threads REQUIRED)
|
||||||
|
|
||||||
|
if (ENABLE_QT)
|
||||||
|
if (NOT USE_SYSTEM_QT)
|
||||||
|
download_qt(6.6.0)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
find_package(Qt6 REQUIRED COMPONENTS Widgets Multimedia Concurrent)
|
||||||
|
|
||||||
|
if (UNIX AND NOT APPLE)
|
||||||
|
find_package(Qt6 REQUIRED COMPONENTS DBus)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_QT_TRANSLATION)
|
||||||
|
find_package(Qt6 REQUIRED COMPONENTS LinguistTools)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED QT_TARGET_PATH)
|
||||||
|
# Determine the location of the compile target's Qt.
|
||||||
|
get_target_property(qtcore_path Qt6::Core LOCATION_Release)
|
||||||
|
string(FIND "${qtcore_path}" "/bin/" qtcore_path_bin_pos REVERSE)
|
||||||
|
string(FIND "${qtcore_path}" "/lib/" qtcore_path_lib_pos REVERSE)
|
||||||
|
if (qtcore_path_bin_pos GREATER qtcore_path_lib_pos)
|
||||||
|
string(SUBSTRING "${qtcore_path}" 0 ${qtcore_path_bin_pos} QT_TARGET_PATH)
|
||||||
|
else()
|
||||||
|
string(SUBSTRING "${qtcore_path}" 0 ${qtcore_path_lib_pos} QT_TARGET_PATH)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT DEFINED QT_HOST_PATH)
|
||||||
|
# Use the same for host Qt if none is defined.
|
||||||
|
set(QT_HOST_PATH "${QT_TARGET_PATH}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Using target Qt at ${QT_TARGET_PATH}")
|
||||||
|
message(STATUS "Using host Qt at ${QT_HOST_PATH}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Use system tsl::robin_map if available (otherwise we fallback to version bundled with dynarmic)
|
||||||
|
find_package(tsl-robin-map QUIET)
|
||||||
|
|
||||||
|
# Platform-specific library requirements
|
||||||
|
# ======================================
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
if (NOT IOS)
|
||||||
|
# Umbrella framework for everything GUI-related
|
||||||
|
find_library(COCOA_LIBRARY Cocoa REQUIRED)
|
||||||
|
endif()
|
||||||
|
find_library(AVFOUNDATION_LIBRARY AVFoundation REQUIRED)
|
||||||
|
find_library(IOSURFACE_LIBRARY IOSurface REQUIRED)
|
||||||
|
set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${AVFOUNDATION_LIBRARY} ${IOSURFACE_LIBRARY} ${MOLTENVK_LIBRARY})
|
||||||
|
|
||||||
|
if (ENABLE_VULKAN)
|
||||||
|
if (NOT USE_SYSTEM_MOLTENVK)
|
||||||
|
download_moltenvk()
|
||||||
|
endif()
|
||||||
|
find_library(MOLTENVK_LIBRARY MoltenVK REQUIRED)
|
||||||
|
message(STATUS "Using MoltenVK at ${MOLTENVK_LIBRARY}.")
|
||||||
|
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} ${MOLTENVK_LIBRARY})
|
||||||
|
endif()
|
||||||
|
elseif (WIN32)
|
||||||
|
set(PLATFORM_LIBRARIES winmm ws2_32)
|
||||||
|
if (MINGW)
|
||||||
|
# PSAPI is the Process Status API
|
||||||
|
set(PLATFORM_LIBRARIES ${PLATFORM_LIBRARIES} psapi imm32 version)
|
||||||
|
endif()
|
||||||
|
elseif (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU|SunOS)$")
|
||||||
|
set(PLATFORM_LIBRARIES rt)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Setup a custom clang-format target (if clang-format can be found) that will run
|
||||||
|
# against all the src files. This should be used before making a pull request.
|
||||||
|
# =======================================================================
|
||||||
|
|
||||||
|
set(CLANG_FORMAT_POSTFIX "-15")
|
||||||
|
find_program(CLANG_FORMAT
|
||||||
|
NAMES clang-format${CLANG_FORMAT_POSTFIX}
|
||||||
|
clang-format
|
||||||
|
PATHS ${PROJECT_BINARY_DIR}/externals)
|
||||||
|
# if find_program doesn't find it, try to download from externals
|
||||||
|
if (NOT CLANG_FORMAT)
|
||||||
|
if (WIN32)
|
||||||
|
message(STATUS "Clang format not found! Downloading...")
|
||||||
|
set(CLANG_FORMAT "${PROJECT_BINARY_DIR}/externals/clang-format${CLANG_FORMAT_POSTFIX}.exe")
|
||||||
|
file(DOWNLOAD
|
||||||
|
https://github.com/citra-emu/ext-windows-bin/raw/master/clang-format${CLANG_FORMAT_POSTFIX}.exe
|
||||||
|
"${CLANG_FORMAT}" SHOW_PROGRESS
|
||||||
|
STATUS DOWNLOAD_SUCCESS)
|
||||||
|
if (NOT DOWNLOAD_SUCCESS EQUAL 0)
|
||||||
|
message(WARNING "Could not download clang format! Disabling the clang format target")
|
||||||
|
file(REMOVE ${CLANG_FORMAT})
|
||||||
|
unset(CLANG_FORMAT)
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "Clang format not found! Disabling the clang format target")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (CLANG_FORMAT)
|
||||||
|
set(SRCS ${PROJECT_SOURCE_DIR}/src)
|
||||||
|
set(CCOMMENT "Running clang format against all the .h and .cpp files in src/")
|
||||||
|
if (WIN32)
|
||||||
|
if(MINGW)
|
||||||
|
add_custom_target(clang-format
|
||||||
|
COMMAND find `cygpath -u ${SRCS}` -iname *.h -o -iname *.cpp -o -iname *.mm | xargs `cygpath -u ${CLANG_FORMAT}` -i
|
||||||
|
COMMENT ${CCOMMENT})
|
||||||
|
else()
|
||||||
|
add_custom_target(clang-format
|
||||||
|
COMMAND powershell.exe -Command "Get-ChildItem '${SRCS}/*' -Include *.cpp,*.h,*.mm -Recurse | Foreach {&'${CLANG_FORMAT}' -i $_.fullname}"
|
||||||
|
COMMENT ${CCOMMENT})
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
add_custom_target(clang-format
|
||||||
|
COMMAND find ${SRCS} -iname *.h -o -iname *.cpp -o -iname *.mm | xargs ${CLANG_FORMAT} -i
|
||||||
|
COMMENT ${CCOMMENT})
|
||||||
|
endif()
|
||||||
|
unset(SRCS)
|
||||||
|
unset(CCOMMENT)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Include source code
|
||||||
|
# ===================
|
||||||
|
|
||||||
|
# This function should be passed a list of all files in a target. It will automatically generate
|
||||||
|
# file groups following the directory hierarchy, so that the layout of the files in IDEs matches the
|
||||||
|
# one in the filesystem.
|
||||||
|
function(create_target_directory_groups target_name)
|
||||||
|
# Place any files that aren't in the source list in a separate group so that they don't get in
|
||||||
|
# the way.
|
||||||
|
source_group("Other Files" REGULAR_EXPRESSION ".")
|
||||||
|
|
||||||
|
get_target_property(target_sources "${target_name}" SOURCES)
|
||||||
|
|
||||||
|
foreach(file_name IN LISTS target_sources)
|
||||||
|
get_filename_component(dir_name "${file_name}" PATH)
|
||||||
|
# Group names use '\' as a separator even though the entire rest of CMake uses '/'...
|
||||||
|
string(REPLACE "/" "\\" group_name "${dir_name}")
|
||||||
|
source_group("${group_name}" FILES "${file_name}")
|
||||||
|
endforeach()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Gets a UTC timstamp and sets the provided variable to it
|
||||||
|
function(get_timestamp _var)
|
||||||
|
string(TIMESTAMP timestamp UTC)
|
||||||
|
set(${_var} "${timestamp}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# generate git/build information
|
||||||
|
include(GetGitRevisionDescription)
|
||||||
|
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
||||||
|
git_describe(GIT_DESC --always --long --dirty)
|
||||||
|
git_branch_name(GIT_BRANCH)
|
||||||
|
get_timestamp(BUILD_DATE)
|
||||||
|
|
||||||
|
# Boost
|
||||||
|
# Prevent boost from linking against libs when building
|
||||||
|
add_definitions(-DBOOST_ERROR_CODE_HEADER_ONLY
|
||||||
|
-DBOOST_SYSTEM_NO_LIB
|
||||||
|
-DBOOST_DATE_TIME_NO_LIB
|
||||||
|
-DBOOST_REGEX_NO_LIB
|
||||||
|
)
|
||||||
|
if (USE_SYSTEM_BOOST)
|
||||||
|
find_package(Boost 1.70.0 COMPONENTS container locale serialization iostreams REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
enable_testing()
|
||||||
|
add_subdirectory(externals)
|
||||||
|
|
||||||
|
# Boost (bundled)
|
||||||
|
if (NOT USE_SYSTEM_BOOST)
|
||||||
|
add_definitions( -DBOOST_ALL_NO_LIB )
|
||||||
|
add_library(Boost::boost ALIAS boost)
|
||||||
|
add_library(Boost::serialization ALIAS boost_serialization)
|
||||||
|
add_library(Boost::iostreams ALIAS boost_iostreams)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# SDL2
|
||||||
|
if (ENABLE_SDL2 AND USE_SYSTEM_SDL2)
|
||||||
|
find_package(SDL2 REQUIRED)
|
||||||
|
add_library(SDL2 INTERFACE)
|
||||||
|
target_link_libraries(SDL2 INTERFACE "${SDL2_LIBRARY}")
|
||||||
|
target_include_directories(SDL2 INTERFACE "${SDL2_INCLUDE_DIR}")
|
||||||
|
add_library(SDL2::SDL2 ALIAS SDL2)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_LIBUSB AND USE_SYSTEM_LIBUSB)
|
||||||
|
include(FindPkgConfig)
|
||||||
|
find_package(LibUSB)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (USE_SYSTEM_SOUNDTOUCH)
|
||||||
|
include(FindPkgConfig)
|
||||||
|
find_package(SoundTouch REQUIRED)
|
||||||
|
add_library(SoundTouch INTERFACE)
|
||||||
|
target_link_libraries(SoundTouch INTERFACE "${SOUNDTOUCH_LIBRARIES}")
|
||||||
|
target_include_directories(SoundTouch INTERFACE "${SOUNDTOUCH_INCLUDE_DIRS}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_subdirectory(src)
|
||||||
|
add_subdirectory(dist/installer)
|
||||||
|
|
||||||
|
|
||||||
|
# Set citra-qt project or citra project as default StartUp Project in Visual Studio depending on whether QT is enabled or not
|
||||||
|
if(ENABLE_QT)
|
||||||
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citra-qt)
|
||||||
|
else()
|
||||||
|
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT citra)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Create target for outputting distributable bundles.
|
||||||
|
# Not supported for mobile platforms as distributables are built differently.
|
||||||
|
if (NOT ANDROID AND NOT IOS)
|
||||||
|
include(BundleTarget)
|
||||||
|
if (ENABLE_SDL2_FRONTEND)
|
||||||
|
bundle_target(citra)
|
||||||
|
endif()
|
||||||
|
if (ENABLE_QT)
|
||||||
|
bundle_target(citra-qt)
|
||||||
|
endif()
|
||||||
|
if (ENABLE_DEDICATED_ROOM)
|
||||||
|
bundle_target(citra-room)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Installation instructions
|
||||||
|
# =========================
|
||||||
|
|
||||||
|
# Install freedesktop.org metadata files, following those specifications:
|
||||||
|
# http://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html
|
||||||
|
# http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
|
||||||
|
# http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
|
||||||
|
if(ENABLE_QT AND UNIX AND NOT APPLE)
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/citra-qt.desktop"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/applications")
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/citra.svg"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/scalable/apps")
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/citra.xml"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/mime/packages")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(UNIX)
|
||||||
|
if(ENABLE_SDL2)
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/citra.6"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man6")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_QT)
|
||||||
|
install(FILES "${PROJECT_SOURCE_DIR}/dist/citra-qt.6"
|
||||||
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/man/man6")
|
||||||
|
endif()
|
||||||
|
endif()
|
58
CMakeModules/AndroidNdkModules.cmake
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Copyright (c) 2014, Pavel Rojtberg
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer.
|
||||||
|
#
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
# this list of conditions and the following disclaimer in the documentation
|
||||||
|
# and/or other materials provided with the distribution.
|
||||||
|
#
|
||||||
|
# 3. Neither the name of the copyright holder nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived from this
|
||||||
|
# software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||||
|
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
|
||||||
|
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||||
|
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||||
|
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||||
|
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||||
|
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||||
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
macro(android_ndk_import_module_cpufeatures)
|
||||||
|
if(ANDROID)
|
||||||
|
include_directories(${ANDROID_NDK}/sources/android/cpufeatures)
|
||||||
|
add_library(cpufeatures ${ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c)
|
||||||
|
target_link_libraries(cpufeatures dl)
|
||||||
|
endif()
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
macro(android_ndk_import_module_native_app_glue)
|
||||||
|
if(ANDROID)
|
||||||
|
include_directories(${ANDROID_NDK}/sources/android/native_app_glue)
|
||||||
|
add_library(native_app_glue ${ANDROID_NDK}/sources/android/native_app_glue/android_native_app_glue.c)
|
||||||
|
target_link_libraries(native_app_glue log)
|
||||||
|
endif()
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
macro(android_ndk_import_module_ndk_helper)
|
||||||
|
if(ANDROID)
|
||||||
|
android_ndk_import_module_cpufeatures()
|
||||||
|
android_ndk_import_module_native_app_glue()
|
||||||
|
|
||||||
|
include_directories(${ANDROID_NDK}/sources/android/ndk_helper)
|
||||||
|
file(GLOB _NDK_HELPER_SRCS ${ANDROID_NDK}/sources/android/ndk_helper/*.cpp ${ANDROID_NDK}/sources/android/ndk_helper/gl3stub.c)
|
||||||
|
add_library(ndk_helper ${_NDK_HELPER_SRCS})
|
||||||
|
target_link_libraries(ndk_helper log android EGL GLESv2 cpufeatures native_app_glue)
|
||||||
|
|
||||||
|
unset(_NDK_HELPER_SRCS)
|
||||||
|
endif()
|
||||||
|
endmacro()
|
26
CMakeModules/BuildInstaller.cmake
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# To use this as a script, make sure you pass in the variables BASE_DIR, SRC_DIR, BUILD_DIR, and TARGET_FILE
|
||||||
|
cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
set(PLATFORM "windows")
|
||||||
|
elseif(APPLE)
|
||||||
|
set(PLATFORM "mac")
|
||||||
|
elseif(UNIX)
|
||||||
|
set(PLATFORM "linux")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Cannot build installer for this unsupported platform")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${BASE_DIR}/CMakeModules")
|
||||||
|
include(DownloadExternals)
|
||||||
|
download_qt(tools_ifw)
|
||||||
|
get_external_prefix(qt QT_PREFIX)
|
||||||
|
|
||||||
|
file(GLOB_RECURSE INSTALLER_BASE "${QT_PREFIX}/**/installerbase*")
|
||||||
|
file(GLOB_RECURSE BINARY_CREATOR "${QT_PREFIX}/**/binarycreator*")
|
||||||
|
|
||||||
|
set(CONFIG_FILE "${SRC_DIR}/config/config_${PLATFORM}.xml")
|
||||||
|
set(PACKAGES_DIR "${BUILD_DIR}/packages")
|
||||||
|
file(MAKE_DIRECTORY ${PACKAGES_DIR})
|
||||||
|
|
||||||
|
execute_process(COMMAND ${BINARY_CREATOR} -t ${INSTALLER_BASE} -n -c ${CONFIG_FILE} -p ${PACKAGES_DIR} ${TARGET_FILE})
|
374
CMakeModules/BundleTarget.cmake
Normal file
@ -0,0 +1,374 @@
|
|||||||
|
|
||||||
|
if (BUNDLE_TARGET_EXECUTE)
|
||||||
|
# --- Bundling method logic ---
|
||||||
|
|
||||||
|
function(symlink_safe_copy from to)
|
||||||
|
if (WIN32)
|
||||||
|
# Use cmake copy for maximum compatibility.
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${from}" "${to}"
|
||||||
|
RESULT_VARIABLE cp_result)
|
||||||
|
else()
|
||||||
|
# Use native copy to turn symlinks into normal files.
|
||||||
|
execute_process(COMMAND cp -L "${from}" "${to}"
|
||||||
|
RESULT_VARIABLE cp_result)
|
||||||
|
endif()
|
||||||
|
if (NOT cp_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "cp \"${from}\" \"${to}\" failed: ${cp_result}")
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
function(bundle_qt executable_path)
|
||||||
|
if (WIN32)
|
||||||
|
# Perform standalone bundling first to copy over all used libraries, as windeployqt does not do this.
|
||||||
|
bundle_standalone("${executable_path}" "${EXECUTABLE_PATH}" "${BUNDLE_LIBRARY_PATHS}")
|
||||||
|
|
||||||
|
get_filename_component(executable_parent_dir "${executable_path}" DIRECTORY)
|
||||||
|
|
||||||
|
# Create a qt.conf file pointing to the app directory.
|
||||||
|
# This ensures Qt can find its plugins.
|
||||||
|
file(WRITE "${executable_parent_dir}/qt.conf" "[Paths]\nPrefix = .")
|
||||||
|
|
||||||
|
find_program(windeployqt_executable windeployqt6 PATHS "${QT_HOST_PATH}/bin")
|
||||||
|
find_program(qtpaths_executable qtpaths6 PATHS "${QT_HOST_PATH}/bin")
|
||||||
|
|
||||||
|
# TODO: Hack around windeployqt's poor cross-compilation support by
|
||||||
|
# TODO: making a local copy with a prefix pointing to the target Qt.
|
||||||
|
if (NOT "${QT_HOST_PATH}" STREQUAL "${QT_TARGET_PATH}")
|
||||||
|
set(windeployqt_dir "${BINARY_PATH}/windeployqt_copy")
|
||||||
|
file(MAKE_DIRECTORY "${windeployqt_dir}")
|
||||||
|
symlink_safe_copy("${windeployqt_executable}" "${windeployqt_dir}/windeployqt.exe")
|
||||||
|
symlink_safe_copy("${qtpaths_executable}" "${windeployqt_dir}/qtpaths.exe")
|
||||||
|
symlink_safe_copy("${QT_HOST_PATH}/bin/Qt6Core.dll" "${windeployqt_dir}")
|
||||||
|
|
||||||
|
if (EXISTS "${QT_TARGET_PATH}/share")
|
||||||
|
# Unix-style Qt; we need to wire up the paths manually.
|
||||||
|
file(WRITE "${windeployqt_dir}/qt.conf" "\
|
||||||
|
[Paths]\n
|
||||||
|
Prefix = ${QT_TARGET_PATH}\n \
|
||||||
|
ArchData = ${QT_TARGET_PATH}/share/qt6\n \
|
||||||
|
Binaries = ${QT_TARGET_PATH}/bin\n \
|
||||||
|
Data = ${QT_TARGET_PATH}/share/qt6\n \
|
||||||
|
Documentation = ${QT_TARGET_PATH}/share/qt6/doc\n \
|
||||||
|
Headers = ${QT_TARGET_PATH}/include/qt6\n \
|
||||||
|
Libraries = ${QT_TARGET_PATH}/lib\n \
|
||||||
|
LibraryExecutables = ${QT_TARGET_PATH}/share/qt6/bin\n \
|
||||||
|
Plugins = ${QT_TARGET_PATH}/share/qt6/plugins\n \
|
||||||
|
QmlImports = ${QT_TARGET_PATH}/share/qt6/qml\n \
|
||||||
|
Translations = ${QT_TARGET_PATH}/share/qt6/translations\n \
|
||||||
|
")
|
||||||
|
else()
|
||||||
|
# Windows-style Qt; the defaults should suffice.
|
||||||
|
file(WRITE "${windeployqt_dir}/qt.conf" "[Paths]\nPrefix = ${QT_TARGET_PATH}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(windeployqt_executable "${windeployqt_dir}/windeployqt.exe")
|
||||||
|
set(qtpaths_executable "${windeployqt_dir}/qtpaths.exe")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Executing windeployqt for executable ${executable_path}")
|
||||||
|
execute_process(COMMAND "${windeployqt_executable}" "${executable_path}"
|
||||||
|
--qtpaths "${qtpaths_executable}"
|
||||||
|
--no-compiler-runtime --no-system-d3d-compiler --no-opengl-sw --no-translations
|
||||||
|
--plugindir "${executable_parent_dir}/plugins"
|
||||||
|
RESULT_VARIABLE windeployqt_result)
|
||||||
|
if (NOT windeployqt_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "windeployqt failed: ${windeployqt_result}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Remove the FFmpeg multimedia plugin as we don't include FFmpeg.
|
||||||
|
# We want to use the Windows media plugin instead, which is also included.
|
||||||
|
file(REMOVE "${executable_parent_dir}/plugins/multimedia/ffmpegmediaplugin.dll")
|
||||||
|
elseif (APPLE)
|
||||||
|
get_filename_component(executable_name "${executable_path}" NAME_WE)
|
||||||
|
find_program(macdeployqt_executable macdeployqt6 PATHS "${QT_HOST_PATH}/bin")
|
||||||
|
|
||||||
|
message(STATUS "Executing macdeployqt at \"${macdeployqt_executable}\" for executable \"${executable_path}\"")
|
||||||
|
execute_process(
|
||||||
|
COMMAND "${macdeployqt_executable}"
|
||||||
|
"${executable_path}"
|
||||||
|
"-executable=${executable_path}/Contents/MacOS/${executable_name}"
|
||||||
|
-always-overwrite
|
||||||
|
RESULT_VARIABLE macdeployqt_result)
|
||||||
|
if (NOT macdeployqt_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "macdeployqt failed: ${macdeployqt_result}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Bundling libraries can rewrite path information and break code signatures of system libraries.
|
||||||
|
# Perform an ad-hoc re-signing on the whole app bundle to fix this.
|
||||||
|
execute_process(COMMAND codesign --deep -fs - "${executable_path}"
|
||||||
|
RESULT_VARIABLE codesign_result)
|
||||||
|
if (NOT codesign_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "codesign failed: ${codesign_result}")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Unsupported OS for Qt bundling.")
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
function(bundle_appimage bundle_dir executable_path source_path binary_path linuxdeploy_executable enable_qt)
|
||||||
|
get_filename_component(executable_name "${executable_path}" NAME_WE)
|
||||||
|
set(appdir_path "${binary_path}/AppDir-${executable_name}")
|
||||||
|
|
||||||
|
if (enable_qt)
|
||||||
|
# Find qmake to make sure the plugin uses the right version of Qt.
|
||||||
|
find_program(qmake_executable qmake6 PATHS "${QT_HOST_PATH}/bin")
|
||||||
|
|
||||||
|
set(extra_linuxdeploy_env "QMAKE=${qmake_executable}")
|
||||||
|
set(extra_linuxdeploy_args --plugin qt)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Creating AppDir for executable ${executable_path}")
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E env
|
||||||
|
${extra_linuxdeploy_env}
|
||||||
|
"${linuxdeploy_executable}"
|
||||||
|
${extra_linuxdeploy_args}
|
||||||
|
--plugin checkrt
|
||||||
|
--executable "${executable_path}"
|
||||||
|
--icon-file "${source_path}/dist/citra.svg"
|
||||||
|
--desktop-file "${source_path}/dist/${executable_name}.desktop"
|
||||||
|
--appdir "${appdir_path}"
|
||||||
|
RESULT_VARIABLE linuxdeploy_appdir_result)
|
||||||
|
if (NOT linuxdeploy_appdir_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "linuxdeploy failed to create AppDir: ${linuxdeploy_appdir_result}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (enable_qt)
|
||||||
|
set(qt_hook_file "${appdir_path}/apprun-hooks/linuxdeploy-plugin-qt-hook.sh")
|
||||||
|
file(READ "${qt_hook_file}" qt_hook_contents)
|
||||||
|
# Add Cinnamon to list of DEs for GTK3 theming.
|
||||||
|
string(REPLACE
|
||||||
|
"*XFCE*"
|
||||||
|
"*X-Cinnamon*|*XFCE*"
|
||||||
|
qt_hook_contents "${qt_hook_contents}")
|
||||||
|
# Wayland backend crashes due to changed schemas in Gnome 40.
|
||||||
|
string(REPLACE
|
||||||
|
"export QT_QPA_PLATFORMTHEME=gtk3"
|
||||||
|
"export QT_QPA_PLATFORMTHEME=gtk3; export GDK_BACKEND=x11"
|
||||||
|
qt_hook_contents "${qt_hook_contents}")
|
||||||
|
file(WRITE "${qt_hook_file}" "${qt_hook_contents}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Creating AppImage for executable ${executable_path}")
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E env
|
||||||
|
"OUTPUT=${bundle_dir}/${executable_name}.AppImage"
|
||||||
|
"${linuxdeploy_executable}"
|
||||||
|
--output appimage
|
||||||
|
--appdir "${appdir_path}"
|
||||||
|
RESULT_VARIABLE linuxdeploy_appimage_result)
|
||||||
|
if (NOT linuxdeploy_appimage_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "linuxdeploy failed to create AppImage: ${linuxdeploy_appimage_result}")
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
function(bundle_standalone executable_path original_executable_path bundle_library_paths)
|
||||||
|
get_filename_component(executable_parent_dir "${executable_path}" DIRECTORY)
|
||||||
|
|
||||||
|
# Resolve dependent library files if they were not passed in.
|
||||||
|
message(STATUS "Determining runtime dependencies of ${executable_path} using library paths ${bundle_library_paths}")
|
||||||
|
file(GET_RUNTIME_DEPENDENCIES
|
||||||
|
EXECUTABLES ${original_executable_path}
|
||||||
|
RESOLVED_DEPENDENCIES_VAR resolved_deps
|
||||||
|
UNRESOLVED_DEPENDENCIES_VAR unresolved_deps
|
||||||
|
DIRECTORIES ${bundle_library_paths}
|
||||||
|
POST_EXCLUDE_REGEXES ".*system32.*")
|
||||||
|
|
||||||
|
if (WIN32)
|
||||||
|
# Same directory since we don't have rpath.
|
||||||
|
set(lib_dir "${executable_parent_dir}")
|
||||||
|
else()
|
||||||
|
set(lib_dir "${executable_parent_dir}/libs")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Copy files to bundled output.
|
||||||
|
if (resolved_deps)
|
||||||
|
file(MAKE_DIRECTORY ${lib_dir})
|
||||||
|
foreach (lib_file IN LISTS resolved_deps)
|
||||||
|
message(STATUS "Bundling library ${lib_file}")
|
||||||
|
symlink_safe_copy("${lib_file}" "${lib_dir}")
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Add libs directory to executable rpath where applicable.
|
||||||
|
if (APPLE)
|
||||||
|
execute_process(COMMAND install_name_tool -add_rpath "@loader_path/libs" "${executable_path}"
|
||||||
|
RESULT_VARIABLE install_name_tool_result)
|
||||||
|
if (NOT install_name_tool_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "install_name_tool failed: ${install_name_tool_result}")
|
||||||
|
endif()
|
||||||
|
elseif (UNIX)
|
||||||
|
execute_process(COMMAND patchelf --set-rpath '$ORIGIN/../libs' "${executable_path}"
|
||||||
|
RESULT_VARIABLE patchelf_result)
|
||||||
|
if (NOT patchelf_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "patchelf failed: ${patchelf_result}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# --- Root bundling logic ---
|
||||||
|
|
||||||
|
set(bundle_dir ${BINARY_PATH}/bundle)
|
||||||
|
|
||||||
|
# On Linux, always bundle an AppImage.
|
||||||
|
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
if (IN_PLACE)
|
||||||
|
message(FATAL_ERROR "Cannot bundle for Linux in-place.")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
bundle_appimage("${bundle_dir}" "${EXECUTABLE_PATH}" "${SOURCE_PATH}" "${BINARY_PATH}" "${LINUXDEPLOY}" ${BUNDLE_QT})
|
||||||
|
else()
|
||||||
|
if (IN_PLACE)
|
||||||
|
message(STATUS "Bundling dependencies in-place")
|
||||||
|
set(bundled_executable_path "${EXECUTABLE_PATH}")
|
||||||
|
else()
|
||||||
|
message(STATUS "Copying base executable ${EXECUTABLE_PATH} to output directory ${bundle_dir}")
|
||||||
|
file(COPY ${EXECUTABLE_PATH} DESTINATION ${bundle_dir})
|
||||||
|
get_filename_component(bundled_executable_name "${EXECUTABLE_PATH}" NAME)
|
||||||
|
set(bundled_executable_path "${bundle_dir}/${bundled_executable_name}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (BUNDLE_QT)
|
||||||
|
bundle_qt("${bundled_executable_path}")
|
||||||
|
else()
|
||||||
|
bundle_standalone("${bundled_executable_path}" "${EXECUTABLE_PATH}" "${BUNDLE_LIBRARY_PATHS}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
elseif (BUNDLE_TARGET_DOWNLOAD_LINUXDEPLOY)
|
||||||
|
# --- linuxdeploy download logic ---
|
||||||
|
|
||||||
|
# Downloads and extracts a linuxdeploy component.
|
||||||
|
function(download_linuxdeploy_component base_dir name executable_name)
|
||||||
|
set(executable_file "${base_dir}/${executable_name}")
|
||||||
|
if (NOT EXISTS "${executable_file}")
|
||||||
|
message(STATUS "Downloading ${executable_name}")
|
||||||
|
file(DOWNLOAD
|
||||||
|
"https://github.com/${name}/releases/download/continuous/${executable_name}"
|
||||||
|
"${executable_file}" SHOW_PROGRESS)
|
||||||
|
file(CHMOD "${executable_file}" PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE)
|
||||||
|
|
||||||
|
get_filename_component(executable_ext "${executable_file}" LAST_EXT)
|
||||||
|
if (executable_ext STREQUAL ".AppImage")
|
||||||
|
message(STATUS "Extracting ${executable_name}")
|
||||||
|
execute_process(
|
||||||
|
COMMAND "${executable_file}" --appimage-extract
|
||||||
|
WORKING_DIRECTORY "${base_dir}"
|
||||||
|
RESULT_VARIABLE extract_result)
|
||||||
|
if (NOT extract_result EQUAL "0")
|
||||||
|
message(FATAL_ERROR "AppImage extract failed: ${extract_result}")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(STATUS "Copying ${executable_name}")
|
||||||
|
file(COPY "${executable_file}" DESTINATION "${base_dir}/squashfs-root/usr/bin/")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Download plugins first so they don't overwrite linuxdeploy's AppRun file.
|
||||||
|
download_linuxdeploy_component("${LINUXDEPLOY_PATH}" "linuxdeploy/linuxdeploy-plugin-qt" "linuxdeploy-plugin-qt-${LINUXDEPLOY_ARCH}.AppImage")
|
||||||
|
download_linuxdeploy_component("${LINUXDEPLOY_PATH}" "darealshinji/linuxdeploy-plugin-checkrt" "linuxdeploy-plugin-checkrt.sh")
|
||||||
|
download_linuxdeploy_component("${LINUXDEPLOY_PATH}" "linuxdeploy/linuxdeploy" "linuxdeploy-${LINUXDEPLOY_ARCH}.AppImage")
|
||||||
|
else()
|
||||||
|
# --- Bundling target creation logic ---
|
||||||
|
|
||||||
|
# Creates the base bundle target with common files and pre-bundle steps.
|
||||||
|
function(create_base_bundle_target)
|
||||||
|
message(STATUS "Creating base bundle target")
|
||||||
|
|
||||||
|
add_custom_target(bundle)
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/bundle/")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/bundle/dist/")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/dist/icon.png" "${CMAKE_BINARY_DIR}/bundle/dist/citra.png")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/license.txt" "${CMAKE_BINARY_DIR}/bundle/")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_SOURCE_DIR}/README.md" "${CMAKE_BINARY_DIR}/bundle/")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/dist/scripting" "${CMAKE_BINARY_DIR}/bundle/scripting")
|
||||||
|
|
||||||
|
# On Linux, add a command to prepare linuxdeploy and any required plugins before any bundling occurs.
|
||||||
|
if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
add_custom_command(
|
||||||
|
TARGET bundle
|
||||||
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
"-DBUNDLE_TARGET_DOWNLOAD_LINUXDEPLOY=1"
|
||||||
|
"-DLINUXDEPLOY_PATH=${CMAKE_BINARY_DIR}/externals/linuxdeploy"
|
||||||
|
"-DLINUXDEPLOY_ARCH=${CMAKE_HOST_SYSTEM_PROCESSOR}"
|
||||||
|
-P "${CMAKE_SOURCE_DIR}/CMakeModules/BundleTarget.cmake"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Adds a target to the bundle target, packing in required libraries.
|
||||||
|
# If in_place is true, the bundling will be done in-place as part of the specified target.
|
||||||
|
function(bundle_target_internal target_name in_place)
|
||||||
|
# Create base bundle target if it does not exist.
|
||||||
|
if (NOT in_place AND NOT TARGET bundle)
|
||||||
|
create_base_bundle_target()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(bundle_executable_path "$<TARGET_FILE:${target_name}>")
|
||||||
|
if (target_name MATCHES ".*qt")
|
||||||
|
set(bundle_qt ON)
|
||||||
|
if (APPLE)
|
||||||
|
# For Qt targets on Apple, expect an app bundle.
|
||||||
|
set(bundle_executable_path "$<TARGET_BUNDLE_DIR:${target_name}>")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
set(bundle_qt OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Build a list of library search paths from prefix paths.
|
||||||
|
foreach(prefix_path IN LISTS CMAKE_FIND_ROOT_PATH CMAKE_PREFIX_PATH CMAKE_SYSTEM_PREFIX_PATH)
|
||||||
|
if (WIN32)
|
||||||
|
list(APPEND bundle_library_paths "${prefix_path}/bin")
|
||||||
|
endif()
|
||||||
|
list(APPEND bundle_library_paths "${prefix_path}/lib")
|
||||||
|
endforeach()
|
||||||
|
foreach(library_path IN LISTS CMAKE_SYSTEM_LIBRARY_PATH)
|
||||||
|
list(APPEND bundle_library_paths "${library_path}")
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
if (in_place)
|
||||||
|
message(STATUS "Adding in-place bundling to ${target_name}")
|
||||||
|
set(dest_target ${target_name})
|
||||||
|
else()
|
||||||
|
message(STATUS "Adding ${target_name} to bundle target")
|
||||||
|
set(dest_target bundle)
|
||||||
|
add_dependencies(bundle ${target_name})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
add_custom_command(TARGET ${dest_target} POST_BUILD
|
||||||
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
"-DQT_HOST_PATH=\"${QT_HOST_PATH}\""
|
||||||
|
"-DQT_TARGET_PATH=\"${QT_TARGET_PATH}\""
|
||||||
|
"-DBUNDLE_TARGET_EXECUTE=1"
|
||||||
|
"-DTARGET=${target_name}"
|
||||||
|
"-DSOURCE_PATH=${CMAKE_SOURCE_DIR}"
|
||||||
|
"-DBINARY_PATH=${CMAKE_BINARY_DIR}"
|
||||||
|
"-DEXECUTABLE_PATH=${bundle_executable_path}"
|
||||||
|
"-DBUNDLE_LIBRARY_PATHS=\"${bundle_library_paths}\""
|
||||||
|
"-DBUNDLE_QT=${bundle_qt}"
|
||||||
|
"-DIN_PLACE=${in_place}"
|
||||||
|
"-DLINUXDEPLOY=${CMAKE_BINARY_DIR}/externals/linuxdeploy/squashfs-root/AppRun"
|
||||||
|
-P "${CMAKE_SOURCE_DIR}/CMakeModules/BundleTarget.cmake"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}")
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Adds a target to the bundle target, packing in required libraries.
|
||||||
|
function(bundle_target target_name)
|
||||||
|
bundle_target_internal("${target_name}" OFF)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Bundles the target in-place, packing in required libraries.
|
||||||
|
function(bundle_target_in_place target_name)
|
||||||
|
bundle_target_internal("${target_name}" ON)
|
||||||
|
endfunction()
|
||||||
|
endif()
|
198
CMakeModules/DownloadExternals.cmake
Normal file
@ -0,0 +1,198 @@
|
|||||||
|
|
||||||
|
set(CURRENT_MODULE_DIR ${CMAKE_CURRENT_LIST_DIR})
|
||||||
|
|
||||||
|
# Determines parameters based on the host and target for downloading the right Qt binaries.
|
||||||
|
function(determine_qt_parameters target host_out type_out arch_out arch_path_out host_type_out host_arch_out host_arch_path_out)
|
||||||
|
if (target MATCHES "tools_.*")
|
||||||
|
set(tool ON)
|
||||||
|
else()
|
||||||
|
set(tool OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Determine installation parameters for OS, architecture, and compiler
|
||||||
|
if (WIN32)
|
||||||
|
set(host "windows")
|
||||||
|
set(type "desktop")
|
||||||
|
|
||||||
|
if (NOT tool)
|
||||||
|
if (MINGW)
|
||||||
|
set(arch "win64_mingw")
|
||||||
|
set(arch_path "mingw_64")
|
||||||
|
elseif (MSVC)
|
||||||
|
if ("arm64" IN_LIST ARCHITECTURE)
|
||||||
|
set(arch_path "msvc2019_arm64")
|
||||||
|
elseif ("x86_64" IN_LIST ARCHITECTURE)
|
||||||
|
set(arch_path "msvc2019_64")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Unsupported bundled Qt architecture. Enable USE_SYSTEM_QT and provide your own.")
|
||||||
|
endif()
|
||||||
|
set(arch "win64_${arch_path}")
|
||||||
|
|
||||||
|
# In case we're cross-compiling, prepare to also fetch the correct host Qt tools.
|
||||||
|
if (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
||||||
|
set(host_arch_path "msvc2019_64")
|
||||||
|
elseif (CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "ARM64")
|
||||||
|
# TODO: msvc2019_arm64 doesn't include some of the required tools for some reason,
|
||||||
|
# TODO: so until it does, just use msvc2019_64 under x86_64 emulation.
|
||||||
|
# set(host_arch_path "msvc2019_arm64")
|
||||||
|
set(host_arch_path "msvc2019_64")
|
||||||
|
endif()
|
||||||
|
set(host_arch "win64_${host_arch_path}")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Unsupported bundled Qt toolchain. Enable USE_SYSTEM_QT and provide your own.")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
elseif (APPLE)
|
||||||
|
set(host "mac")
|
||||||
|
set(type "desktop")
|
||||||
|
set(arch "clang_64")
|
||||||
|
set(arch_path "macos")
|
||||||
|
|
||||||
|
if (IOS AND NOT tool)
|
||||||
|
set(host_type "${type}")
|
||||||
|
set(host_arch "${arch}")
|
||||||
|
set(host_arch_path "${arch_path}")
|
||||||
|
|
||||||
|
set(type "ios")
|
||||||
|
set(arch "ios")
|
||||||
|
set(arch_path "ios")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
set(host "linux")
|
||||||
|
set(type "desktop")
|
||||||
|
set(arch "gcc_64")
|
||||||
|
set(arch_path "linux")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(${host_out} "${host}" PARENT_SCOPE)
|
||||||
|
set(${type_out} "${type}" PARENT_SCOPE)
|
||||||
|
set(${arch_out} "${arch}" PARENT_SCOPE)
|
||||||
|
set(${arch_path_out} "${arch_path}" PARENT_SCOPE)
|
||||||
|
if (DEFINED host_type)
|
||||||
|
set(${host_type_out} "${host_type}" PARENT_SCOPE)
|
||||||
|
else()
|
||||||
|
set(${host_type_out} "${type}" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
if (DEFINED host_arch)
|
||||||
|
set(${host_arch_out} "${host_arch}" PARENT_SCOPE)
|
||||||
|
else()
|
||||||
|
set(${host_arch_out} "${arch}" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
if (DEFINED host_arch_path)
|
||||||
|
set(${host_arch_path_out} "${host_arch_path}" PARENT_SCOPE)
|
||||||
|
else()
|
||||||
|
set(${host_arch_path_out} "${arch_path}" PARENT_SCOPE)
|
||||||
|
endif()
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# Download Qt binaries for a specifc configuration.
|
||||||
|
function(download_qt_configuration prefix_out target host type arch arch_path base_path)
|
||||||
|
if (target MATCHES "tools_.*")
|
||||||
|
set(tool ON)
|
||||||
|
else()
|
||||||
|
set(tool OFF)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(install_args -c "${CURRENT_MODULE_DIR}/aqt_config.ini")
|
||||||
|
if (tool)
|
||||||
|
set(prefix "${base_path}/Tools")
|
||||||
|
set(install_args ${install_args} install-tool --outputdir ${base_path} ${host} desktop ${target})
|
||||||
|
else()
|
||||||
|
set(prefix "${base_path}/${target}/${arch_path}")
|
||||||
|
set(install_args ${install_args} install-qt --outputdir ${base_path} ${host} ${type} ${target} ${arch}
|
||||||
|
-m qtmultimedia --archives qttranslations qttools qtsvg qtbase)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (NOT EXISTS "${prefix}")
|
||||||
|
message(STATUS "Downloading Qt binaries for ${target}:${host}:${type}:${arch}:${arch_path}")
|
||||||
|
set(AQT_PREBUILD_BASE_URL "https://github.com/miurahr/aqtinstall/releases/download/v3.1.9")
|
||||||
|
if (WIN32)
|
||||||
|
set(aqt_path "${base_path}/aqt.exe")
|
||||||
|
if (NOT EXISTS "${aqt_path}")
|
||||||
|
file(DOWNLOAD
|
||||||
|
${AQT_PREBUILD_BASE_URL}/aqt.exe
|
||||||
|
${aqt_path} SHOW_PROGRESS)
|
||||||
|
endif()
|
||||||
|
execute_process(COMMAND ${aqt_path} ${install_args}
|
||||||
|
WORKING_DIRECTORY ${base_path})
|
||||||
|
elseif (APPLE)
|
||||||
|
set(aqt_path "${base_path}/aqt-macos")
|
||||||
|
if (NOT EXISTS "${aqt_path}")
|
||||||
|
file(DOWNLOAD
|
||||||
|
${AQT_PREBUILD_BASE_URL}/aqt-macos
|
||||||
|
${aqt_path} SHOW_PROGRESS)
|
||||||
|
endif()
|
||||||
|
execute_process(COMMAND chmod +x ${aqt_path})
|
||||||
|
execute_process(COMMAND ${aqt_path} ${install_args}
|
||||||
|
WORKING_DIRECTORY ${base_path})
|
||||||
|
else()
|
||||||
|
# aqt does not offer binary releases for other platforms, so download and run from pip.
|
||||||
|
set(aqt_install_path "${base_path}/aqt")
|
||||||
|
file(MAKE_DIRECTORY "${aqt_install_path}")
|
||||||
|
|
||||||
|
execute_process(COMMAND python3 -m pip install --target=${aqt_install_path} aqtinstall
|
||||||
|
WORKING_DIRECTORY ${base_path})
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E env PYTHONPATH=${aqt_install_path} python3 -m aqt ${install_args}
|
||||||
|
WORKING_DIRECTORY ${base_path})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Downloaded Qt binaries for ${target}:${host}:${type}:${arch}:${arch_path} to ${prefix}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(${prefix_out} "${prefix}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
# This function downloads Qt using aqt.
|
||||||
|
# The path of the downloaded content will be added to the CMAKE_PREFIX_PATH.
|
||||||
|
# QT_TARGET_PATH is set to the Qt for the compile target platform.
|
||||||
|
# QT_HOST_PATH is set to a host-compatible Qt, for running tools.
|
||||||
|
# Params:
|
||||||
|
# target: Qt dependency to install. Specify a version number to download Qt, or "tools_(name)" for a specific build tool.
|
||||||
|
function(download_qt target)
|
||||||
|
determine_qt_parameters("${target}" host type arch arch_path host_type host_arch host_arch_path)
|
||||||
|
|
||||||
|
get_external_prefix(qt base_path)
|
||||||
|
file(MAKE_DIRECTORY "${base_path}")
|
||||||
|
|
||||||
|
download_qt_configuration(prefix "${target}" "${host}" "${type}" "${arch}" "${arch_path}" "${base_path}")
|
||||||
|
if (DEFINED host_arch_path AND NOT "${host_arch_path}" STREQUAL "${arch_path}")
|
||||||
|
download_qt_configuration(host_prefix "${target}" "${host}" "${host_type}" "${host_arch}" "${host_arch_path}" "${base_path}")
|
||||||
|
else()
|
||||||
|
set(host_prefix "${prefix}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(QT_TARGET_PATH "${prefix}" CACHE STRING "")
|
||||||
|
set(QT_HOST_PATH "${host_prefix}" CACHE STRING "")
|
||||||
|
|
||||||
|
# Add the target Qt prefix path so CMake can locate it.
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${prefix}")
|
||||||
|
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
function(download_moltenvk)
|
||||||
|
if (IOS)
|
||||||
|
set(MOLTENVK_PLATFORM "iOS")
|
||||||
|
else()
|
||||||
|
set(MOLTENVK_PLATFORM "macOS")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(MOLTENVK_DIR "${CMAKE_BINARY_DIR}/externals/MoltenVK")
|
||||||
|
set(MOLTENVK_TAR "${CMAKE_BINARY_DIR}/externals/MoltenVK.tar")
|
||||||
|
if (NOT EXISTS ${MOLTENVK_DIR})
|
||||||
|
if (NOT EXISTS ${MOLTENVK_TAR})
|
||||||
|
file(DOWNLOAD https://github.com/KhronosGroup/MoltenVK/releases/download/v1.2.7-rc2/MoltenVK-all.tar
|
||||||
|
${MOLTENVK_TAR} SHOW_PROGRESS)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf "${MOLTENVK_TAR}"
|
||||||
|
WORKING_DIRECTORY "${CMAKE_BINARY_DIR}/externals")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Add the MoltenVK library path to the prefix so find_library can locate it.
|
||||||
|
list(APPEND CMAKE_PREFIX_PATH "${MOLTENVK_DIR}/MoltenVK/dylib/${MOLTENVK_PLATFORM}")
|
||||||
|
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
function(get_external_prefix lib_name prefix_var)
|
||||||
|
set(${prefix_var} "${CMAKE_BINARY_DIR}/externals/${lib_name}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
65
CMakeModules/GenerateBuildInfo.cmake
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
# Gets a UTC timstamp and sets the provided variable to it
|
||||||
|
function(get_timestamp _var)
|
||||||
|
string(TIMESTAMP timestamp UTC)
|
||||||
|
set(${_var} "${timestamp}" PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
get_timestamp(BUILD_DATE)
|
||||||
|
|
||||||
|
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/externals/cmake-modules")
|
||||||
|
|
||||||
|
if (EXISTS "${SRC_DIR}/.git/objects")
|
||||||
|
# Find the package here with the known path so that the GetGit commands can find it as well
|
||||||
|
find_package(Git QUIET PATHS "${GIT_EXECUTABLE}")
|
||||||
|
|
||||||
|
# only use Git to check revision info when source is obtained via Git
|
||||||
|
include(GetGitRevisionDescription)
|
||||||
|
get_git_head_revision(GIT_REF_SPEC GIT_REV)
|
||||||
|
git_describe(GIT_DESC --always --long --dirty)
|
||||||
|
git_branch_name(GIT_BRANCH)
|
||||||
|
elseif (EXISTS "${SRC_DIR}/GIT-COMMIT" AND EXISTS "${SRC_DIR}/GIT-TAG")
|
||||||
|
# unified source archive
|
||||||
|
file(READ "${SRC_DIR}/GIT-COMMIT" GIT_REV_RAW LIMIT 64)
|
||||||
|
string(STRIP "${GIT_REV_RAW}" GIT_REV)
|
||||||
|
string(SUBSTRING "${GIT_REV_RAW}" 0 9 GIT_DESC)
|
||||||
|
set(GIT_BRANCH "HEAD")
|
||||||
|
else()
|
||||||
|
# self-packed archive?
|
||||||
|
set(GIT_REV "UNKNOWN")
|
||||||
|
set(GIT_DESC "UNKNOWN")
|
||||||
|
set(GIT_BRANCH "UNKNOWN")
|
||||||
|
endif()
|
||||||
|
string(SUBSTRING "${GIT_REV}" 0 7 GIT_SHORT_REV)
|
||||||
|
|
||||||
|
# Generate cpp with Git revision from template
|
||||||
|
# Also if this is a CI build, add the build name (ie: Nightly, Canary) to the scm_rev file as well
|
||||||
|
set(REPO_NAME "")
|
||||||
|
set(BUILD_VERSION "0")
|
||||||
|
set(BUILD_FULLNAME "${GIT_SHORT_REV}")
|
||||||
|
if (DEFINED ENV{CI})
|
||||||
|
if (DEFINED ENV{GITHUB_ACTIONS})
|
||||||
|
set(BUILD_REPOSITORY $ENV{GITHUB_REPOSITORY})
|
||||||
|
set(BUILD_TAG $ENV{GITHUB_REF_NAME})
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# regex capture the string nightly or canary into CMAKE_MATCH_1
|
||||||
|
string(REGEX MATCH "citra-emu/citra-?(.*)" OUTVAR ${BUILD_REPOSITORY})
|
||||||
|
if ("${CMAKE_MATCH_COUNT}" GREATER 0)
|
||||||
|
# capitalize the first letter of each word in the repo name.
|
||||||
|
string(REPLACE "-" ";" REPO_NAME_LIST ${CMAKE_MATCH_1})
|
||||||
|
foreach(WORD ${REPO_NAME_LIST})
|
||||||
|
string(SUBSTRING ${WORD} 0 1 FIRST_LETTER)
|
||||||
|
string(SUBSTRING ${WORD} 1 -1 REMAINDER)
|
||||||
|
string(TOUPPER ${FIRST_LETTER} FIRST_LETTER)
|
||||||
|
set(REPO_NAME "${REPO_NAME}${FIRST_LETTER}${REMAINDER}")
|
||||||
|
endforeach()
|
||||||
|
string(REGEX MATCH "${CMAKE_MATCH_1}-([0-9]+)" OUTVAR ${BUILD_TAG})
|
||||||
|
if (${CMAKE_MATCH_COUNT} GREATER 0)
|
||||||
|
set(BUILD_VERSION ${CMAKE_MATCH_1})
|
||||||
|
endif()
|
||||||
|
if (BUILD_VERSION)
|
||||||
|
set(BUILD_FULLNAME "${REPO_NAME} ${BUILD_VERSION}")
|
||||||
|
else()
|
||||||
|
set(BUILD_FULLNAME "")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
44
CMakeModules/GenerateSCMRev.cmake
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
list(APPEND CMAKE_MODULE_PATH "${SRC_DIR}/CMakeModules")
|
||||||
|
include(GenerateBuildInfo)
|
||||||
|
|
||||||
|
# The variable SRC_DIR must be passed into the script (since it uses the current build directory for all values of CMAKE_*_DIR)
|
||||||
|
set(VIDEO_CORE "${SRC_DIR}/src/video_core")
|
||||||
|
set(HASH_FILES
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_disk_cache.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_disk_cache.h"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_util.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_opengl/gl_shader_util.h"
|
||||||
|
"${VIDEO_CORE}/renderer_vulkan/vk_shader_util.cpp"
|
||||||
|
"${VIDEO_CORE}/renderer_vulkan/vk_shader_util.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/glsl_fs_shader_gen.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/glsl_fs_shader_gen.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/glsl_shader_decompiler.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/glsl_shader_decompiler.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/glsl_shader_gen.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/glsl_shader_gen.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/pica_fs_config.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/pica_fs_config.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/shader_gen.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/shader_gen.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/shader_uniforms.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/shader_uniforms.h"
|
||||||
|
"${VIDEO_CORE}/shader/generator/spv_fs_shader_gen.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/generator/spv_fs_shader_gen.h"
|
||||||
|
"${VIDEO_CORE}/shader/shader.cpp"
|
||||||
|
"${VIDEO_CORE}/shader/shader.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_framebuffer.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_lighting.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_pipeline.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_rasterizer.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_shader.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_texturing.h"
|
||||||
|
"${VIDEO_CORE}/pica/regs_internal.cpp"
|
||||||
|
"${VIDEO_CORE}/pica/regs_internal.h"
|
||||||
|
)
|
||||||
|
set(COMBINED "")
|
||||||
|
foreach (F IN LISTS HASH_FILES)
|
||||||
|
file(READ ${F} TMP)
|
||||||
|
set(COMBINED "${COMBINED}${TMP}")
|
||||||
|
endforeach()
|
||||||
|
string(MD5 SHADER_CACHE_VERSION "${COMBINED}")
|
||||||
|
configure_file("${SRC_DIR}/src/common/scm_rev.cpp.in" "scm_rev.cpp" @ONLY)
|
29
CMakeModules/aqt_config.ini
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
[aqt]
|
||||||
|
concurrency: 2
|
||||||
|
|
||||||
|
[mirrors]
|
||||||
|
trusted_mirrors:
|
||||||
|
https://download.qt.io
|
||||||
|
blacklist:
|
||||||
|
https://qt.mirror.constant.com
|
||||||
|
https://mirrors.ocf.berkeley.edu
|
||||||
|
https://mirrors.ustc.edu.cn
|
||||||
|
https://mirrors.tuna.tsinghua.edu.cn
|
||||||
|
https://mirrors.geekpie.club
|
||||||
|
https://mirrors-wan.geekpie.club
|
||||||
|
https://mirrors.sjtug.sjtu.edu.cn
|
||||||
|
fallbacks:
|
||||||
|
https://qtproject.mirror.liquidtelecom.com/
|
||||||
|
https://mirrors.aliyun.com/qt/
|
||||||
|
https://ftp.jaist.ac.jp/pub/qtproject/
|
||||||
|
https://ftp.yz.yamagata-u.ac.jp/pub/qtproject/
|
||||||
|
https://qt-mirror.dannhauer.de/
|
||||||
|
https://ftp.fau.de/qtproject/
|
||||||
|
https://mirror.netcologne.de/qtproject/
|
||||||
|
https://mirrors.dotsrc.org/qtproject/
|
||||||
|
https://www.nic.funet.fi/pub/mirrors/download.qt-project.org/
|
||||||
|
https://master.qt.io/
|
||||||
|
https://mirrors.ukfast.co.uk/sites/qt.io/
|
||||||
|
https://ftp2.nluug.nl/languages/qt/
|
||||||
|
https://ftp1.nluug.nl/languages/qt/
|
||||||
|
|
1
CONTRIBUTING.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
**The Contributor's Guide has moved to [the wiki](https://github.com/citra-emu/citra/wiki/Contributing).**
|
98
README.md
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
<h1 align="center">
|
||||||
|
<br>
|
||||||
|
<a href="https://citra-emu.org/"><img src="https://raw.githubusercontent.com/citra-emu/citra-assets/master/Main/citra_logo.svg" alt="Citra" width="200"></a>
|
||||||
|
<br>
|
||||||
|
<b>Citra</b>
|
||||||
|
<br>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<h4 align="center"><b>Citra</b> is the world's most popular, open-source, Nintendo 3DS emulator.
|
||||||
|
<br>
|
||||||
|
It is written in C++ with portability in mind and builds are actively maintained for Windows, Linux, Android and macOS.
|
||||||
|
</h4>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/citra-emu/citra/actions/">
|
||||||
|
<img src="https://github.com/citra-emu/citra/workflows/citra-ci/badge.svg"
|
||||||
|
alt="GitHub Actions Build Status">
|
||||||
|
</a>
|
||||||
|
<a href="https://discord.gg/FAXfZV9">
|
||||||
|
<img src="https://img.shields.io/discord/220740965957107713?color=%237289DA&label=Citra&logo=discord&logoColor=white"
|
||||||
|
alt="Discord">
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="#compatibility">Compatibility</a> |
|
||||||
|
<a href="#releases">Releases</a> |
|
||||||
|
<a href="#development">Development</a> |
|
||||||
|
<a href="#building">Building</a> |
|
||||||
|
<a href="#support">Support</a> |
|
||||||
|
<a href="#license">License</a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
## Compatibility
|
||||||
|
|
||||||
|
The emulator is capable of running most commercial games at full speed, provided you meet the necessary hardware requirements.
|
||||||
|
|
||||||
|
For a full list of games Citra supports, please visit our [Compatibility page](https://citra-emu.org/game/)
|
||||||
|
|
||||||
|
Check out our [website](https://citra-emu.org/) for the latest news on exciting features, progress reports, and more!
|
||||||
|
Please read the [FAQ](https://citra-emu.org/wiki/faq/) before getting started with the project.
|
||||||
|
|
||||||
|
Need help? Check out our [asking for help](https://citra-emu.org/help/reference/asking/) guide.
|
||||||
|
|
||||||
|
## Releases
|
||||||
|
|
||||||
|
Citra has two main release channels: Nightly and Canary.
|
||||||
|
|
||||||
|
The [Nightly](https://github.com/citra-emu/citra-nightly) build is based on the master branch, and contains already reviewed and tested features.
|
||||||
|
|
||||||
|
The [Canary](https://github.com/citra-emu/citra-canary) build is based on the master branch, but with additional features still under review. PRs tagged `canary-merge` are merged only into the Canary builds.
|
||||||
|
|
||||||
|
Both builds can be installed with the installer provided on the [website](https://citra-emu.org/download/), but those looking for specific versions or standalone releases can find them in the release tabs of the [Nightly](https://github.com/citra-emu/citra-nightly/releases) and [Canary](https://github.com/citra-emu/citra-canary/releases) repositories.
|
||||||
|
|
||||||
|
Android builds can be downloaded from the Google Play Store.
|
||||||
|
|
||||||
|
A Flatpak for Citra is available on [Flathub](https://flathub.org/apps/details/org.citra_emu.citra). Details on the build process can be found in [our Flathub repository](https://github.com/flathub/org.citra_emu.citra).
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
Most of the development happens on GitHub. It's also where [our central repository](https://github.com/citra-emu/citra) is hosted.
|
||||||
|
For development discussion, please join us on our [Discord server](https://citra-emu.org/discord/) or at #citra-dev on libera.
|
||||||
|
|
||||||
|
If you want to contribute please take a look at the [Contributor's Guide](https://github.com/citra-emu/citra/wiki/Contributing) and [Developer Information](https://github.com/citra-emu/citra/wiki/Developer-Information). You can also contact any of the developers on Discord in order to know about the current state of the emulator.
|
||||||
|
|
||||||
|
If you want to contribute to the user interface translation, please check out the [Citra project on transifex](https://www.transifex.com/citra/citra). We centralize the translation work there, and periodically upstream translations.
|
||||||
|
|
||||||
|
## Building
|
||||||
|
|
||||||
|
* __Windows__: [Windows Build](https://github.com/citra-emu/citra/wiki/Building-For-Windows)
|
||||||
|
* __Linux__: [Linux Build](https://github.com/citra-emu/citra/wiki/Building-For-Linux)
|
||||||
|
* __macOS__: [macOS Build](https://github.com/citra-emu/citra/wiki/Building-for-macOS)
|
||||||
|
* __Android__: [Android Build](https://github.com/citra-emu/citra/wiki/Building-for-Android)
|
||||||
|
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
If you enjoy the project and want to support us financially, check out our Patreon!
|
||||||
|
|
||||||
|
<a href="https://www.patreon.com/citraemu">
|
||||||
|
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160">
|
||||||
|
</a>
|
||||||
|
|
||||||
|
We also happily accept donated games and hardware.
|
||||||
|
Please see our [donations page](https://citra-emu.org/donate/) for more information on how you can contribute to Citra.
|
||||||
|
Any donations received will go towards things like:
|
||||||
|
* 3DS consoles for developers to explore the hardware
|
||||||
|
* 3DS games for testing
|
||||||
|
* Any equipment required for homebrew
|
||||||
|
* Infrastructure setup
|
||||||
|
|
||||||
|
We also more than gladly accept used 3DS consoles! If you would like to give yours away, don't hesitate to join our [Discord server](https://citra-emu.org/discord/) and talk to bunnei.
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Citra is licensed under the GPLv2 (or any later version). Refer to the [LICENSE.txt](https://github.com/citra-emu/citra/blob/master/license.txt) file.
|
84
dist/apple/Info.plist.in
vendored
Normal file
@ -0,0 +1,84 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<!-- Templated data -->
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
|
||||||
|
<key>CFBundleLongVersionString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>${MACOSX_BUNDLE_ICON_FILE}</string>
|
||||||
|
<key>CFBundleGetInfoString</key>
|
||||||
|
<string>${MACOSX_BUNDLE_INFO_STRING}</string>
|
||||||
|
<key>NSHumanReadableCopyright</key>
|
||||||
|
<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
|
||||||
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
|
||||||
|
<!-- Fixed -->
|
||||||
|
<key>LSApplicationCategoryType</key>
|
||||||
|
<string>public.app-category.games</string>
|
||||||
|
<key>CFBundleDocumentTypes</key>
|
||||||
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>3ds</string>
|
||||||
|
<string>3dsx</string>
|
||||||
|
<string>cci</string>
|
||||||
|
<string>cxi</string>
|
||||||
|
<string>cia</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>Nintendo 3DS File</string>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
<key>LSHandlerRank</key>
|
||||||
|
<string>Default</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleTypeExtensions</key>
|
||||||
|
<array>
|
||||||
|
<string>elf</string>
|
||||||
|
<string>axf</string>
|
||||||
|
</array>
|
||||||
|
<key>CFBundleTypeName</key>
|
||||||
|
<string>Unix Executable and Linkable Format</string>
|
||||||
|
<key>CFBundleTypeRole</key>
|
||||||
|
<string>Viewer</string>
|
||||||
|
<key>LSHandlerRank</key>
|
||||||
|
<string>Alternate</string>
|
||||||
|
</dict>
|
||||||
|
</array>
|
||||||
|
<key>NSCameraUsageDescription</key>
|
||||||
|
<string>This app requires camera access to emulate the 3DS's cameras.</string>
|
||||||
|
<key>NSMicrophoneUsageDescription</key>
|
||||||
|
<string>This app requires microphone access to emulate the 3DS's microphone.</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>????</string>
|
||||||
|
<key>CSResourcesFileMapped</key>
|
||||||
|
<true/>
|
||||||
|
<key>LSSupportsOpeningDocumentsInPlace</key>
|
||||||
|
<true/>
|
||||||
|
<key>NSHighResolutionCapable</key>
|
||||||
|
<string>True</string>
|
||||||
|
<key>UIFileSharingEnabled</key>
|
||||||
|
<true/>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
42
dist/apple/LaunchScreen.storyboard
vendored
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="Y6W-OH-hqX">
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="s0d-6b-0kx">
|
||||||
|
<objects>
|
||||||
|
<viewController id="Y6W-OH-hqX" sceneMemberID="viewController">
|
||||||
|
<view key="view" contentMode="scaleToFill" id="5EZ-qb-Rvc">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="launch_logo.png" translatesAutoresizingMaskIntoConstraints="NO" id="yrZ-hu-Uge">
|
||||||
|
<rect key="frame" x="-59.666666666666657" y="306" width="512.33333333333337" height="240"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstAttribute="height" constant="240" id="VhL-hA-Bwr"/>
|
||||||
|
</constraints>
|
||||||
|
</imageView>
|
||||||
|
</subviews>
|
||||||
|
<viewLayoutGuide key="safeArea" id="vDu-zF-Fre"/>
|
||||||
|
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="yrZ-hu-Uge" firstAttribute="centerX" secondItem="5EZ-qb-Rvc" secondAttribute="centerX" id="1y3-Mx-a65"/>
|
||||||
|
<constraint firstItem="yrZ-hu-Uge" firstAttribute="centerY" secondItem="5EZ-qb-Rvc" secondAttribute="centerY" id="vNO-xV-EPD"/>
|
||||||
|
</constraints>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="Ief-a0-LHa" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="219" y="18"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
<resources>
|
||||||
|
<image name="launch_logo.png" width="512" height="512"/>
|
||||||
|
<systemColor name="systemBackgroundColor">
|
||||||
|
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
</systemColor>
|
||||||
|
</resources>
|
||||||
|
</document>
|
BIN
dist/apple/citra.icns
vendored
Normal file
BIN
dist/apple/launch_logo.png
vendored
Normal file
After Width: | Height: | Size: 88 KiB |
40
dist/citra-qt.6
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
.Dd November 22 2016
|
||||||
|
.Dt citra-qt 6
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm Citra-Qt
|
||||||
|
.Nd Nintendo 3DS Emulator/Debugger (Qt)
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm citra-qt
|
||||||
|
.Op Ar file
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
Citra is an experimental open-source Nintendo 3DS emulator/debugger.
|
||||||
|
.Pp
|
||||||
|
.Nm citra-qt
|
||||||
|
is the Qt implementation.
|
||||||
|
.Sh FILES
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Pa $XDG_DATA_HOME/citra-emu
|
||||||
|
Emulator storage.
|
||||||
|
.It Pa $XDG_CONFIG_HOME/citra-emu
|
||||||
|
Configuration files.
|
||||||
|
.El
|
||||||
|
.Sh AUTHORS
|
||||||
|
This document is made available to you under the CC-BY license.
|
||||||
|
.Pp
|
||||||
|
Citra is made by a team of volunteers. These contributors are listed
|
||||||
|
at <\fBhttps://github.com/citra-emu/citra/contributors\fR>.
|
||||||
|
.Pp
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Xr citra 6
|
||||||
|
The SDL frontend of the application
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
Resources are available for this project:
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It <\fBhttps://citra-emu.org\fR>
|
||||||
|
The main homepage of the project.
|
||||||
|
.It <\fBhttps://github.com/citra-emu/citra\fR>
|
||||||
|
The main source code repository for the Citra emulator.
|
||||||
|
.Pp
|
15
dist/citra-qt.desktop
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=Citra
|
||||||
|
GenericName=3DS Emulator
|
||||||
|
GenericName[fr]=Émulateur 3DS
|
||||||
|
Comment=Nintendo 3DS video game console emulator
|
||||||
|
Comment[fr]=Émulateur de console de jeu Nintendo 3DS
|
||||||
|
Icon=citra
|
||||||
|
TryExec=citra-qt
|
||||||
|
Exec=citra-qt %f
|
||||||
|
Categories=Game;Emulator;Qt;
|
||||||
|
MimeType=application/x-ctr-3dsx;application/x-ctr-cci;application/x-ctr-cia;application/x-ctr-cxi;
|
||||||
|
Keywords=3DS;Nintendo;
|
||||||
|
PrefersNonDefaultGPU=true
|
10
dist/citra-room.desktop
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=Citra Room
|
||||||
|
Comment=Multiplayer room host for Citra
|
||||||
|
Icon=citra
|
||||||
|
TryExec=citra-room
|
||||||
|
Exec=citra-room %f
|
||||||
|
Categories=Game;Emulator;
|
||||||
|
Keywords=3DS;Nintendo
|
49
dist/citra.6
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
.Dd November 22 2016
|
||||||
|
.Dt citra 6
|
||||||
|
.Os
|
||||||
|
.Sh NAME
|
||||||
|
.Nm Citra
|
||||||
|
.Nd Nintendo 3DS Emulator/Debugger (SDL)
|
||||||
|
.Sh SYNOPSIS
|
||||||
|
.Nm citra
|
||||||
|
.Op Ar options
|
||||||
|
.Op Ar file
|
||||||
|
.Sh OPTIONS
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Fl g Ar port , Fl Fl gdbport Ar port
|
||||||
|
Starts the GDB stub on the specified port
|
||||||
|
.It Fl h , Fl Fl help
|
||||||
|
Shows syntax help and exits
|
||||||
|
.It Fl v , Fl Fl version
|
||||||
|
Describes the installed version and exits
|
||||||
|
.Sh DESCRIPTION
|
||||||
|
Citra is an experimental open-source Nintendo 3DS emulator/debugger.
|
||||||
|
.Pp
|
||||||
|
.Nm citra
|
||||||
|
is the Simple DirectMedia Layer (SDL) implementation.
|
||||||
|
.Sh FILES
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Pa $XDG_DATA_HOME/citra-emu
|
||||||
|
Emulator storage.
|
||||||
|
.It Pa $XDG_CONFIG_HOME/citra-emu
|
||||||
|
Configuration files.
|
||||||
|
.El
|
||||||
|
.Sh AUTHORS
|
||||||
|
This document is made available to you under the CC-BY license.
|
||||||
|
.Pp
|
||||||
|
Citra is made by a team of volunteers. These contributors are listed
|
||||||
|
at <\fBhttps://github.com/citra-emu/citra/contributors\fR>.
|
||||||
|
.Pp
|
||||||
|
.Sh SEE ALSO
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It Xr citra-qt 6
|
||||||
|
The Qt frontend of the application
|
||||||
|
.El
|
||||||
|
.Pp
|
||||||
|
Resources are available for this project:
|
||||||
|
.Bl -tag -width Ds
|
||||||
|
.It <\fBhttps://citra-emu.org\fR>
|
||||||
|
The main homepage of the project.
|
||||||
|
.It <\fBhttps://github.com/citra-emu/citra\fR>
|
||||||
|
The main source code repository for the Citra emulator.
|
||||||
|
.Pp
|
15
dist/citra.desktop
vendored
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Version=1.0
|
||||||
|
Type=Application
|
||||||
|
Name=Citra
|
||||||
|
GenericName=3DS Emulator
|
||||||
|
GenericName[fr]=Émulateur 3DS
|
||||||
|
Comment=Nintendo 3DS video game console emulator
|
||||||
|
Comment[fr]=Émulateur de console de jeu Nintendo 3DS
|
||||||
|
Icon=citra
|
||||||
|
TryExec=citra
|
||||||
|
Exec=citra %f
|
||||||
|
Categories=Game;Emulator;
|
||||||
|
MimeType=application/x-ctr-3dsx;application/x-ctr-cci;application/x-ctr-cia;application/x-ctr-cxi;
|
||||||
|
Keywords=3DS;Nintendo;
|
||||||
|
PrefersNonDefaultGPU=true
|
BIN
dist/citra.ico
vendored
Normal file
After Width: | Height: | Size: 361 KiB |
58
dist/citra.manifest
vendored
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<assembly manifestVersion="1.0"
|
||||||
|
xmlns="urn:schemas-microsoft-com:asm.v1"
|
||||||
|
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<asmv3:application>
|
||||||
|
<asmv3:windowsSettings>
|
||||||
|
<!-- Windows 7/8/8.1/10 -->
|
||||||
|
<dpiAware
|
||||||
|
xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
|
||||||
|
true/pm
|
||||||
|
</dpiAware>
|
||||||
|
<!-- Windows 10, version 1607 or later -->
|
||||||
|
<dpiAwareness
|
||||||
|
xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
|
||||||
|
PerMonitorV2
|
||||||
|
</dpiAwareness>
|
||||||
|
<!-- Windows 10, version 1703 or later -->
|
||||||
|
<gdiScaling
|
||||||
|
xmlns="http://schemas.microsoft.com/SMI/2017/WindowsSettings">
|
||||||
|
true
|
||||||
|
</gdiScaling>
|
||||||
|
<ws2:longPathAware
|
||||||
|
xmlns:ws3="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
|
||||||
|
true
|
||||||
|
</ws2:longPathAware>
|
||||||
|
</asmv3:windowsSettings>
|
||||||
|
</asmv3:application>
|
||||||
|
<compatibility
|
||||||
|
xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||||
|
<application>
|
||||||
|
<!-- Windows 10 -->
|
||||||
|
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}"/>
|
||||||
|
<!-- Windows 8.1 -->
|
||||||
|
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
|
||||||
|
<!-- Windows 8 -->
|
||||||
|
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}"/>
|
||||||
|
<!-- Windows 7 -->
|
||||||
|
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}"/>
|
||||||
|
</application>
|
||||||
|
</compatibility>
|
||||||
|
<trustInfo
|
||||||
|
xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||||
|
<security>
|
||||||
|
<requestedPrivileges>
|
||||||
|
<!--
|
||||||
|
UAC settings:
|
||||||
|
- app should run at same integrity level as calling process
|
||||||
|
- app does not need to manipulate windows belonging to
|
||||||
|
higher-integrity-level processes
|
||||||
|
-->
|
||||||
|
<requestedExecutionLevel
|
||||||
|
level="asInvoker"
|
||||||
|
uiAccess="false"
|
||||||
|
/>
|
||||||
|
</requestedPrivileges>
|
||||||
|
</security>
|
||||||
|
</trustInfo>
|
||||||
|
</assembly>
|
2
dist/citra.svg
vendored
Normal file
After Width: | Height: | Size: 17 KiB |
59
dist/citra.xml
vendored
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||||
|
<mime-type type="application/x-ctr-3dsx">
|
||||||
|
<comment>Nintendo 3DS homebrew executable</comment>
|
||||||
|
<comment xml:lang="fr">Exécutable non-officiel pour Nintendo 3DS </comment>
|
||||||
|
<acronym>3DSX</acronym>
|
||||||
|
<icon name="citra"/>
|
||||||
|
<glob pattern="*.3dsx"/>
|
||||||
|
<magic><match value="3DSX" type="string" offset="0"/></magic>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/x-ctr-cci">
|
||||||
|
<comment>Nintendo 3DS cartridge image</comment>
|
||||||
|
<comment xml:lang="fr">Image de cartouche Nintendo 3DS</comment>
|
||||||
|
<acronym>CCI</acronym>
|
||||||
|
<expanded-acronym>CTR Cart Image</expanded-acronym>
|
||||||
|
<icon name="citra"/>
|
||||||
|
<glob pattern="*.cci"/>
|
||||||
|
<glob pattern="*.3ds"/>
|
||||||
|
<magic><match value="NCSD" type="string" offset="256"/></magic>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/x-ctr-cxi">
|
||||||
|
<comment>Nintendo 3DS executable</comment>
|
||||||
|
<comment xml:lang="fr">Exécutable Nintendo 3DS</comment>
|
||||||
|
<acronym>CXI</acronym>
|
||||||
|
<expanded-acronym>CTR eXecutable Image</expanded-acronym>
|
||||||
|
<icon name="citra"/>
|
||||||
|
<glob pattern="*.cxi"/>
|
||||||
|
<magic><match value="NCCH" type="string" offset="256"/></magic>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/x-ctr-cia">
|
||||||
|
<comment>Nintendo 3DS importable archive</comment>
|
||||||
|
<comment xml:lang="fr">Archive installable Nintendo 3DS</comment>
|
||||||
|
<acronym>CIA</acronym>
|
||||||
|
<expanded-acronym>CTR Importable Archive</expanded-acronym>
|
||||||
|
<icon name="citra"/>
|
||||||
|
<glob pattern="*.cia"/>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/x-ctr-smdh">
|
||||||
|
<comment>Nintendo 3DS icon and metadata</comment>
|
||||||
|
<comment xml:lang="fr">Icône et métadonnées Nintendo 3DS</comment>
|
||||||
|
<acronym>SMDH</acronym>
|
||||||
|
<expanded-acronym>System Menu Data Header</expanded-acronym>
|
||||||
|
<glob pattern="*.smdh"/>
|
||||||
|
<magic><match value="SMDH" type="string" offset="0"/></magic>
|
||||||
|
</mime-type>
|
||||||
|
|
||||||
|
<mime-type type="application/x-ctr-cbmd">
|
||||||
|
<comment>Nintendo 3DS banner</comment>
|
||||||
|
<comment xml:lang="fr">Bannière Nintendo 3DS</comment>
|
||||||
|
<acronym>CBMD</acronym>
|
||||||
|
<expanded-acronym>CTR Banner Model Data</expanded-acronym>
|
||||||
|
<glob pattern="*.cbmd"/>
|
||||||
|
<magic><match value="CBMD" type="string" offset="0"/></magic>
|
||||||
|
</mime-type>
|
||||||
|
</mime-info>
|
5
dist/compatibility_list/compatibility_list.qrc
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="compatibility_list">
|
||||||
|
<file>compatibility_list.json</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/doc-icon.png
vendored
Normal file
After Width: | Height: | Size: 7.6 KiB |
299
dist/dumpkeys/DumpKeys.gm9
vendored
Normal file
@ -0,0 +1,299 @@
|
|||||||
|
set PREVIEW_MODE "Key Dumper\n \nWorking..."
|
||||||
|
|
||||||
|
# Boot9
|
||||||
|
|
||||||
|
set BOOT9_BIN "M:/boot9.bin"
|
||||||
|
|
||||||
|
fget $[BOOT9_BIN]@D9D0:10 KEYX_2C
|
||||||
|
set KEYX_2D $[KEYX_2C]
|
||||||
|
set KEYX_2E $[KEYX_2C]
|
||||||
|
set KEYX_2F $[KEYX_2C]
|
||||||
|
fget $[BOOT9_BIN]@D9E0:10 KEYX_30
|
||||||
|
set KEYX_31 $[KEYX_30]
|
||||||
|
set KEYX_32 $[KEYX_30]
|
||||||
|
set KEYX_33 $[KEYX_30]
|
||||||
|
fget $[BOOT9_BIN]@D9F0:10 KEYX_34
|
||||||
|
set KEYX_35 $[KEYX_34]
|
||||||
|
set KEYX_36 $[KEYX_34]
|
||||||
|
set KEYX_37 $[KEYX_34]
|
||||||
|
fget $[BOOT9_BIN]@DA00:10 KEYX_38
|
||||||
|
set KEYX_39 $[KEYX_38]
|
||||||
|
set KEYX_3A $[KEYX_38]
|
||||||
|
set KEYX_3B $[KEYX_38]
|
||||||
|
fget $[BOOT9_BIN]@DA10:10 KEYX_3C
|
||||||
|
fget $[BOOT9_BIN]@DA20:10 KEYX_3D
|
||||||
|
fget $[BOOT9_BIN]@DA30:10 KEYX_3E
|
||||||
|
fget $[BOOT9_BIN]@DA40:10 KEYX_3F
|
||||||
|
|
||||||
|
fget $[BOOT9_BIN]@DA50:10 KEYY_04
|
||||||
|
fget $[BOOT9_BIN]@DA60:10 KEYY_05
|
||||||
|
fget $[BOOT9_BIN]@DA70:10 KEYY_06
|
||||||
|
fget $[BOOT9_BIN]@DA80:10 KEYY_07
|
||||||
|
fget $[BOOT9_BIN]@DA90:10 KEYY_08
|
||||||
|
fget $[BOOT9_BIN]@DAA0:10 KEYY_09
|
||||||
|
fget $[BOOT9_BIN]@DAB0:10 KEYY_0A
|
||||||
|
fget $[BOOT9_BIN]@DAC0:10 KEYY_0B
|
||||||
|
|
||||||
|
fget $[BOOT9_BIN]@DAD0:10 KEYN_0D
|
||||||
|
fget $[BOOT9_BIN]@DBA0:10 KEYN_2D
|
||||||
|
fget $[BOOT9_BIN]@DBB0:10 KEYN_32
|
||||||
|
fget $[BOOT9_BIN]@DBC0:10 KEYN_36
|
||||||
|
fget $[BOOT9_BIN]@DBD0:10 KEYN_38
|
||||||
|
|
||||||
|
# NATIVE_FIRM
|
||||||
|
|
||||||
|
if chk $[ONTYPE] "N3DS"
|
||||||
|
if not find 1:/title/00040138/20000002/content/????????.app NATIVE_FIRM_APP
|
||||||
|
echo "New 3DS NATIVE_FIRM not found."
|
||||||
|
goto Exit
|
||||||
|
end
|
||||||
|
set EXPECTED_NATIVE_FIRM_VER "1F00"
|
||||||
|
set KEYY_2E_OFFSET "66504"
|
||||||
|
set KEYY_39_NFC_OFFSET "66524"
|
||||||
|
set COMMON_0_OFFSET "6CE51"
|
||||||
|
set COMMON_1_OFFSET "6CE65"
|
||||||
|
set COMMON_2_OFFSET "6CE79"
|
||||||
|
set COMMON_3_OFFSET "6CE8D"
|
||||||
|
set COMMON_4_OFFSET "6CEA1"
|
||||||
|
set COMMON_5_OFFSET "6CEB5"
|
||||||
|
else
|
||||||
|
if not find 1:/title/00040138/00000002/content/????????.app NATIVE_FIRM_APP
|
||||||
|
echo "Old 3DS NATIVE_FIRM not found."
|
||||||
|
goto Exit
|
||||||
|
end
|
||||||
|
set EXPECTED_NATIVE_FIRM_VER "1F00"
|
||||||
|
set KEYY_2E_OFFSET "66488"
|
||||||
|
set KEYY_39_NFC_OFFSET "664A8"
|
||||||
|
set COMMON_0_OFFSET "6CDC1"
|
||||||
|
set COMMON_1_OFFSET "6CDD5"
|
||||||
|
set COMMON_2_OFFSET "6CDE9"
|
||||||
|
set COMMON_3_OFFSET "6CDFD"
|
||||||
|
set COMMON_4_OFFSET "6CE11"
|
||||||
|
set COMMON_5_OFFSET "6CE25"
|
||||||
|
end
|
||||||
|
set NATIVE_FIRM_EXTHEADER "G:/extheader.bin"
|
||||||
|
set NATIVE_FIRM_ENCRYPTED "G:/exefs/.firm"
|
||||||
|
set NATIVE_FIRM_DECRYPTED "$[GM9OUT]/native.firm"
|
||||||
|
set PROCESS9_CODE "G:/0004013000003000.Process9/exefs/.code"
|
||||||
|
|
||||||
|
imgmount $[NATIVE_FIRM_APP]
|
||||||
|
|
||||||
|
fget $[NATIVE_FIRM_EXTHEADER]@E:2 NATIVE_FIRM_VER
|
||||||
|
if not chk $[NATIVE_FIRM_VER] $[EXPECTED_NATIVE_FIRM_VER]
|
||||||
|
echo "Unsupported NATIVE_FIRM version.\nThis script requires the latest 3DS firmware.\n\nExpected $[EXPECTED_NATIVE_FIRM_VER], got $[NATIVE_FIRM_VER]"
|
||||||
|
goto Exit
|
||||||
|
end
|
||||||
|
|
||||||
|
cp -w $[NATIVE_FIRM_ENCRYPTED] $[NATIVE_FIRM_DECRYPTED]
|
||||||
|
decrypt $[NATIVE_FIRM_DECRYPTED]
|
||||||
|
|
||||||
|
imgumount
|
||||||
|
|
||||||
|
imgmount $[NATIVE_FIRM_DECRYPTED]
|
||||||
|
|
||||||
|
fget $[PROCESS9_CODE]@$[KEYY_2E_OFFSET]:10 KEYY_2E
|
||||||
|
set KEYY_31 $[KEYY_2E]
|
||||||
|
set KEYY_39_DLP $[KEYY_2E]
|
||||||
|
fget $[PROCESS9_CODE]@$[KEYY_39_NFC_OFFSET]:10 KEYY_39_NFC
|
||||||
|
fget $[PROCESS9_CODE]@$[COMMON_0_OFFSET]:10 COMMON_0
|
||||||
|
fget $[PROCESS9_CODE]@$[COMMON_1_OFFSET]:10 COMMON_1
|
||||||
|
fget $[PROCESS9_CODE]@$[COMMON_2_OFFSET]:10 COMMON_2
|
||||||
|
fget $[PROCESS9_CODE]@$[COMMON_3_OFFSET]:10 COMMON_3
|
||||||
|
fget $[PROCESS9_CODE]@$[COMMON_4_OFFSET]:10 COMMON_4
|
||||||
|
fget $[PROCESS9_CODE]@$[COMMON_5_OFFSET]:10 COMMON_5
|
||||||
|
|
||||||
|
imgumount
|
||||||
|
rm -o -s $[NATIVE_FIRM_DECRYPTED]
|
||||||
|
|
||||||
|
# NFC
|
||||||
|
|
||||||
|
if chk $[ONTYPE] "N3DS"
|
||||||
|
if not find 1:/title/00040130/20004002/content/????????.app NFC_APP
|
||||||
|
echo "New 3DS NFC not found."
|
||||||
|
goto Exit
|
||||||
|
end
|
||||||
|
set EXPECTED_NFC_VER "0700"
|
||||||
|
set NFC_PHRASE_0_OFFSET "355EE"
|
||||||
|
set NFC_SEED_0_OFFSET "355FC"
|
||||||
|
set NFC_HMAC_KEY_0_OFFSET "3560A"
|
||||||
|
set NFC_PHRASE_1_OFFSET "3561A"
|
||||||
|
set NFC_SEED_1_OFFSET "35628"
|
||||||
|
set NFC_HMAC_KEY_1_OFFSET "35638"
|
||||||
|
set NFC_IV_OFFSET "35648"
|
||||||
|
else
|
||||||
|
if not find 1:/title/00040130/00004002/content/????????.app NFC_APP
|
||||||
|
echo "Old 3DS NFC not found."
|
||||||
|
goto Exit
|
||||||
|
end
|
||||||
|
set EXPECTED_NFC_VER "0800"
|
||||||
|
set NFC_PHRASE_0_OFFSET "17382"
|
||||||
|
set NFC_SEED_0_OFFSET "17390"
|
||||||
|
set NFC_HMAC_KEY_0_OFFSET "1739E"
|
||||||
|
set NFC_PHRASE_1_OFFSET "173AE"
|
||||||
|
set NFC_SEED_1_OFFSET "173BC"
|
||||||
|
set NFC_HMAC_KEY_1_OFFSET "173CC"
|
||||||
|
set NFC_IV_OFFSET "173DC"
|
||||||
|
end
|
||||||
|
set NFC_EXTHEADER "G:/extheader.bin"
|
||||||
|
set NFC_CODE "$[GM9OUT]/nfc_code.bin"
|
||||||
|
|
||||||
|
imgmount $[NFC_APP]
|
||||||
|
|
||||||
|
fget $[NFC_EXTHEADER]@E:2 NFC_VER
|
||||||
|
if not chk $[NFC_VER] $[EXPECTED_NFC_VER]
|
||||||
|
echo "Unsupported NFC module version.\nThis script requires the latest 3DS firmware.\n\nExpected $[EXPECTED_NFC_VER], got $[NFC_VER]"
|
||||||
|
goto Exit
|
||||||
|
end
|
||||||
|
|
||||||
|
imgumount
|
||||||
|
|
||||||
|
extrcode $[NFC_APP] $[NFC_CODE]
|
||||||
|
|
||||||
|
fget $[NFC_CODE]@$[NFC_PHRASE_0_OFFSET]:E NFC_PHRASE_0
|
||||||
|
fget $[NFC_CODE]@$[NFC_SEED_0_OFFSET]:E NFC_SEED_0
|
||||||
|
fget $[NFC_CODE]@$[NFC_HMAC_KEY_0_OFFSET]:10 NFC_HMAC_KEY_0
|
||||||
|
|
||||||
|
fget $[NFC_CODE]@$[NFC_PHRASE_1_OFFSET]:E NFC_PHRASE_1
|
||||||
|
fget $[NFC_CODE]@$[NFC_SEED_1_OFFSET]:10 NFC_SEED_1
|
||||||
|
fget $[NFC_CODE]@$[NFC_HMAC_KEY_1_OFFSET]:10 NFC_HMAC_KEY_1
|
||||||
|
|
||||||
|
fget $[NFC_CODE]@$[NFC_IV_OFFSET]:10 NFC_IV
|
||||||
|
|
||||||
|
rm -o -s $[NFC_CODE]
|
||||||
|
|
||||||
|
# GodMode9 Key Database
|
||||||
|
|
||||||
|
set KEY_DB "V:/aeskeydb.bin"
|
||||||
|
set KEY_DB_18X "K:/slot0x18KeyX.ret.bin"
|
||||||
|
set KEY_DB_19X "K:/slot0x19KeyX.ret.bin"
|
||||||
|
set KEY_DB_1AX "K:/slot0x1AKeyX.ret.bin"
|
||||||
|
set KEY_DB_1BX "K:/slot0x1BKeyX.ret.bin"
|
||||||
|
set KEY_DB_1CX "K:/slot0x1CKeyX.ret.bin"
|
||||||
|
set KEY_DB_1DX "K:/slot0x1DKeyX.ret.bin"
|
||||||
|
set KEY_DB_1EX "K:/slot0x1EKeyX.ret.bin"
|
||||||
|
set KEY_DB_1FX "K:/slot0x1FKeyX.ret.bin"
|
||||||
|
set KEY_DB_25X "K:/slot0x25KeyX.ret.bin"
|
||||||
|
set KEY_DB_24Y "K:/slot0x24KeyY.bin"
|
||||||
|
set KEY_DB_2FY "K:/slot0x2FKeyY.ret.bin"
|
||||||
|
|
||||||
|
imgmount $[KEY_DB]
|
||||||
|
|
||||||
|
fget $[KEY_DB_18X]@0:10 KEYX_18
|
||||||
|
fget $[KEY_DB_19X]@0:10 KEYX_19
|
||||||
|
fget $[KEY_DB_1AX]@0:10 KEYX_1A
|
||||||
|
fget $[KEY_DB_1BX]@0:10 KEYX_1B
|
||||||
|
fget $[KEY_DB_1CX]@0:10 KEYX_1C
|
||||||
|
fget $[KEY_DB_1DX]@0:10 KEYX_1D
|
||||||
|
fget $[KEY_DB_1EX]@0:10 KEYX_1E
|
||||||
|
fget $[KEY_DB_1FX]@0:10 KEYX_1F
|
||||||
|
fget $[KEY_DB_25X]@0:10 KEYX_25
|
||||||
|
|
||||||
|
fget $[KEY_DB_24Y]@0:10 KEYY_24
|
||||||
|
fget $[KEY_DB_2FY]@0:10 KEYY_2F
|
||||||
|
|
||||||
|
imgumount
|
||||||
|
|
||||||
|
# Write Keys To File
|
||||||
|
|
||||||
|
set OUT "0:/gm9/aes_keys.txt"
|
||||||
|
|
||||||
|
dumptxt $[OUT] "# KeyX"
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] "slot0x18KeyX=$[KEYX_18]"
|
||||||
|
dumptxt -p $[OUT] "slot0x19KeyX=$[KEYX_19]"
|
||||||
|
dumptxt -p $[OUT] "slot0x1AKeyX=$[KEYX_1A]"
|
||||||
|
dumptxt -p $[OUT] "slot0x1BKeyX=$[KEYX_1B]"
|
||||||
|
dumptxt -p $[OUT] "slot0x1CKeyX=$[KEYX_1C]"
|
||||||
|
dumptxt -p $[OUT] "slot0x1DKeyX=$[KEYX_1D]"
|
||||||
|
dumptxt -p $[OUT] "slot0x1EKeyX=$[KEYX_1E]"
|
||||||
|
dumptxt -p $[OUT] "slot0x1FKeyX=$[KEYX_1F]"
|
||||||
|
dumptxt -p $[OUT] "slot0x25KeyX=$[KEYX_25]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2CKeyX=$[KEYX_2C]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2DKeyX=$[KEYX_2D]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2EKeyX=$[KEYX_2E]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2FKeyX=$[KEYX_2F]"
|
||||||
|
dumptxt -p $[OUT] "slot0x30KeyX=$[KEYX_30]"
|
||||||
|
dumptxt -p $[OUT] "slot0x31KeyX=$[KEYX_31]"
|
||||||
|
dumptxt -p $[OUT] "slot0x32KeyX=$[KEYX_32]"
|
||||||
|
dumptxt -p $[OUT] "slot0x33KeyX=$[KEYX_33]"
|
||||||
|
dumptxt -p $[OUT] "slot0x34KeyX=$[KEYX_34]"
|
||||||
|
dumptxt -p $[OUT] "slot0x35KeyX=$[KEYX_35]"
|
||||||
|
dumptxt -p $[OUT] "slot0x36KeyX=$[KEYX_36]"
|
||||||
|
dumptxt -p $[OUT] "slot0x37KeyX=$[KEYX_37]"
|
||||||
|
dumptxt -p $[OUT] "slot0x38KeyX=$[KEYX_38]"
|
||||||
|
dumptxt -p $[OUT] "slot0x39KeyX=$[KEYX_39]"
|
||||||
|
dumptxt -p $[OUT] "slot0x3AKeyX=$[KEYX_3A]"
|
||||||
|
dumptxt -p $[OUT] "slot0x3BKeyX=$[KEYX_3B]"
|
||||||
|
dumptxt -p $[OUT] "slot0x3CKeyX=$[KEYX_3C]"
|
||||||
|
dumptxt -p $[OUT] "slot0x3DKeyX=$[KEYX_3D]"
|
||||||
|
dumptxt -p $[OUT] "slot0x3EKeyX=$[KEYX_3E]"
|
||||||
|
dumptxt -p $[OUT] "slot0x3FKeyX=$[KEYX_3F]"
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
dumptxt -p $[OUT] "# KeyY"
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] "slot0x04KeyY=$[KEYY_04]"
|
||||||
|
dumptxt -p $[OUT] "slot0x05KeyY=$[KEYY_05]"
|
||||||
|
dumptxt -p $[OUT] "slot0x06KeyY=$[KEYY_06]"
|
||||||
|
dumptxt -p $[OUT] "slot0x07KeyY=$[KEYY_07]"
|
||||||
|
dumptxt -p $[OUT] "slot0x08KeyY=$[KEYY_08]"
|
||||||
|
dumptxt -p $[OUT] "slot0x09KeyY=$[KEYY_09]"
|
||||||
|
dumptxt -p $[OUT] "slot0x0AKeyY=$[KEYY_0A]"
|
||||||
|
dumptxt -p $[OUT] "slot0x0BKeyY=$[KEYY_0B]"
|
||||||
|
dumptxt -p $[OUT] "slot0x24KeyY=$[KEYY_24]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2EKeyY=$[KEYY_2E]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2FKeyY=$[KEYY_2F]"
|
||||||
|
dumptxt -p $[OUT] "slot0x31KeyY=$[KEYY_31]"
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
dumptxt -p $[OUT] "# DLP/NFC KeyY (slot 0x39)"
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] "dlpKeyY=$[KEYY_39_DLP]"
|
||||||
|
dumptxt -p $[OUT] "nfcKeyY=$[KEYY_39_NFC]"
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
dumptxt -p $[OUT] "# Ticket Common KeyY (slot 0x3D)"
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] "common0=$[COMMON_0]"
|
||||||
|
dumptxt -p $[OUT] "common1=$[COMMON_1]"
|
||||||
|
dumptxt -p $[OUT] "common2=$[COMMON_2]"
|
||||||
|
dumptxt -p $[OUT] "common3=$[COMMON_3]"
|
||||||
|
dumptxt -p $[OUT] "common4=$[COMMON_4]"
|
||||||
|
dumptxt -p $[OUT] "common5=$[COMMON_5]"
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
dumptxt -p $[OUT] "# KeyN"
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] "slot0x0DKeyN=$[KEYN_0D]"
|
||||||
|
dumptxt -p $[OUT] "slot0x2DKeyN=$[KEYN_2D]"
|
||||||
|
dumptxt -p $[OUT] "slot0x32KeyN=$[KEYN_32]"
|
||||||
|
dumptxt -p $[OUT] "slot0x36KeyN=$[KEYN_36]"
|
||||||
|
dumptxt -p $[OUT] "slot0x38KeyN=$[KEYN_38]"
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
dumptxt -p $[OUT] "# NFC Secrets"
|
||||||
|
dumptxt -p $[OUT] ""
|
||||||
|
|
||||||
|
dumptxt -p $[OUT] "nfcSecret0Phrase=$[NFC_PHRASE_0]"
|
||||||
|
dumptxt -p $[OUT] "nfcSecret0Seed=$[NFC_SEED_0]"
|
||||||
|
dumptxt -p $[OUT] "nfcSecret0HmacKey=$[NFC_HMAC_KEY_0]"
|
||||||
|
dumptxt -p $[OUT] "nfcSecret1Phrase=$[NFC_PHRASE_1]"
|
||||||
|
dumptxt -p $[OUT] "nfcSecret1Seed=$[NFC_SEED_1]"
|
||||||
|
dumptxt -p $[OUT] "nfcSecret1HmacKey=$[NFC_HMAC_KEY_1]"
|
||||||
|
dumptxt -p $[OUT] "nfcIv=$[NFC_IV]"
|
||||||
|
|
||||||
|
# Dump seeddb.bin as well
|
||||||
|
|
||||||
|
set SEEDDB_IN "0:/gm9/out/seeddb.bin"
|
||||||
|
set SEEDDB_OUT "0:/gm9/seeddb.bin"
|
||||||
|
|
||||||
|
sdump -w seeddb.bin
|
||||||
|
cp -w $[SEEDDB_IN] $[SEEDDB_OUT]
|
||||||
|
|
||||||
|
@Exit
|
||||||
|
|
10
dist/dumpkeys/README.md
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
# DumpKeys
|
||||||
|
|
||||||
|
This is a GodMode9 script that dumps all the keys and other related secrets that Citra needs from a real 3DS.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
1. Copy "DumpKeys.gm9" into the "gm9/scripts/" directory on your SD card.
|
||||||
|
2. Launch GodMode9, press the HOME button, select Scripts, and select "DumpKeys" from the list of scripts that appears.
|
||||||
|
3. Wait for the script to complete and return you to the GodMode9 main menu.
|
||||||
|
4. Power off your system and copy the "gm9/aes_keys.txt" and "gm9/seeddb.bin" files off of your SD card into "(Citra directory)/sysdata/".
|
||||||
|
|
BIN
dist/icon.png
vendored
Normal file
After Width: | Height: | Size: 18 KiB |
31
dist/installer/CMakeLists.txt
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
set(PLATFORM "windows")
|
||||||
|
elseif(APPLE)
|
||||||
|
set(PLATFORM "mac")
|
||||||
|
elseif(UNIX)
|
||||||
|
set(PLATFORM "linux")
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Cannot build installer for this unsupported platform")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
set(BUILD_DIR "${CMAKE_BINARY_DIR}/installer")
|
||||||
|
set(DIST_DIR "${BUILD_DIR}/dist")
|
||||||
|
set(TARGET_FILE "${DIST_DIR}/citra-setup-${PLATFORM}")
|
||||||
|
|
||||||
|
file(MAKE_DIRECTORY "${BUILD_DIR}" "${DIST_DIR}")
|
||||||
|
|
||||||
|
# Adds a custom target that will run the BuildInstaller.cmake file
|
||||||
|
# CMake can't just run a cmake function as a custom command, so this is a way around it.
|
||||||
|
# Calls the cmake command and runs a cmake file in "scripting" mode passing in variables with -D
|
||||||
|
add_custom_command(OUTPUT "${TARGET_FILE}"
|
||||||
|
COMMAND ${CMAKE_COMMAND}
|
||||||
|
-DBASE_DIR=${CMAKE_SOURCE_DIR}
|
||||||
|
-DSRC_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
-DBUILD_DIR=${BUILD_DIR}
|
||||||
|
-DTARGET_FILE=${TARGET_FILE}
|
||||||
|
-P ${CMAKE_SOURCE_DIR}/CMakeModules/BuildInstaller.cmake
|
||||||
|
WORKING_DIRECTORY ${BUILD_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
add_custom_target(installer DEPENDS ${TARGET_FILE})
|
9
dist/installer/README.md
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
Citra Qt Installer
|
||||||
|
==================
|
||||||
|
|
||||||
|
This contains the configuration files for building Citra's installer.
|
||||||
|
|
||||||
|
Installers can only be built on the platform that they are targeting.
|
||||||
|
|
||||||
|
Build the `installer` target to generate the installer, and the installer will be in
|
||||||
|
${build_dir}/installer/dist/
|
19
dist/installer/config/config_linux.xml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Installer>
|
||||||
|
<Name>Citra</Name>
|
||||||
|
<Version>1.0.0</Version>
|
||||||
|
<Title>Citra Updater</Title>
|
||||||
|
<Publisher>Citra Team</Publisher>
|
||||||
|
<!-- e.g. /home/<user>/.citra or /opt/citra if run as root -->
|
||||||
|
<TargetDir>@HomeDir@/.citra</TargetDir>
|
||||||
|
<AdminTargetDir>/opt/citra</AdminTargetDir>
|
||||||
|
<InstallerApplicationIcon>icon</InstallerApplicationIcon>
|
||||||
|
<InstallerWindowIcon>icon.png</InstallerWindowIcon>
|
||||||
|
<RemoteRepositories>
|
||||||
|
<Repository>
|
||||||
|
<Url>https://repo.citra-emu.org</Url>
|
||||||
|
<Enabled>1</Enabled>
|
||||||
|
<DisplayName>Official Citra Repository</DisplayName>
|
||||||
|
</Repository>
|
||||||
|
</RemoteRepositories>
|
||||||
|
</Installer>
|
18
dist/installer/config/config_mac.xml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Installer>
|
||||||
|
<Name>Citra</Name>
|
||||||
|
<Version>1.0.0</Version>
|
||||||
|
<Title>Citra Updater</Title>
|
||||||
|
<Publisher>Citra Team</Publisher>
|
||||||
|
<!-- e.g. /Applications/Citra -->
|
||||||
|
<TargetDir>@ApplicationsDir@/Citra</TargetDir>
|
||||||
|
<InstallerApplicationIcon>icon</InstallerApplicationIcon>
|
||||||
|
<InstallerWindowIcon>icon.png</InstallerWindowIcon>
|
||||||
|
<RemoteRepositories>
|
||||||
|
<Repository>
|
||||||
|
<Url>https://repo.citra-emu.org</Url>
|
||||||
|
<Enabled>1</Enabled>
|
||||||
|
<DisplayName>Official Citra Repository</DisplayName>
|
||||||
|
</Repository>
|
||||||
|
</RemoteRepositories>
|
||||||
|
</Installer>
|
19
dist/installer/config/config_windows.xml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<Installer>
|
||||||
|
<Name>Citra</Name>
|
||||||
|
<Version>1.0.0</Version>
|
||||||
|
<Title>Citra Updater</Title>
|
||||||
|
<Publisher>Citra Team</Publisher>
|
||||||
|
<StartMenuDir>Citra</StartMenuDir>
|
||||||
|
<!-- e.g. C:\home\<user>\AppData\Local\Citra -->
|
||||||
|
<TargetDir>@HomeDir@/AppData/Local/Citra</TargetDir>
|
||||||
|
<InstallerApplicationIcon>icon</InstallerApplicationIcon>
|
||||||
|
<InstallerWindowIcon>icon.png</InstallerWindowIcon>
|
||||||
|
<RemoteRepositories>
|
||||||
|
<Repository>
|
||||||
|
<Url>https://repo.citra-emu.org</Url>
|
||||||
|
<Enabled>1</Enabled>
|
||||||
|
<DisplayName>Official Citra Repository</DisplayName>
|
||||||
|
</Repository>
|
||||||
|
</RemoteRepositories>
|
||||||
|
</Installer>
|
BIN
dist/installer/config/icon.icns
vendored
Normal file
BIN
dist/installer/config/icon.ico
vendored
Normal file
After Width: | Height: | Size: 39 KiB |
BIN
dist/installer/config/icon.png
vendored
Normal file
After Width: | Height: | Size: 18 KiB |
3
dist/languages/.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Ignore the source language file
|
||||||
|
en.ts
|
||||||
|
|
14
dist/languages/.tx/config
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[main]
|
||||||
|
host = https://www.transifex.com
|
||||||
|
|
||||||
|
[o:citra:p:citra:r:emulator]
|
||||||
|
file_filter = <lang>.ts
|
||||||
|
source_file = en.ts
|
||||||
|
source_lang = en
|
||||||
|
type = QT
|
||||||
|
|
||||||
|
[o:citra:p:citra:r:android]
|
||||||
|
file_filter = ../../src/android/app/src/main/res/values-<lang>/strings.xml
|
||||||
|
source_file = ../../src/android/app/src/main/res/values/strings.xml
|
||||||
|
type = ANDROID
|
||||||
|
lang_map = es_ES:es, hu_HU:hu, ru_RU:ru, pt_BR:pt, zh_CN:zh
|
1
dist/languages/README.md
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
This directory stores translation patches (TS files) for citra Qt frontend. This directory is linked with [citra project on transifex](https://www.transifex.com/citra/citra), so you can update the translation by executing `tx pull -a`. If you want to contribute to the translation, please go the transifex link and submit your translation there. This directory on the main repo will be synchronized with transifex periodically. Do not directly open PRs on github to modify the translation.
|
7000
dist/languages/da_DK.ts
vendored
Normal file
7007
dist/languages/de.ts
vendored
Normal file
7004
dist/languages/el.ts
vendored
Normal file
7017
dist/languages/es_ES.ts
vendored
Normal file
6984
dist/languages/fi.ts
vendored
Normal file
7012
dist/languages/fr.ts
vendored
Normal file
6994
dist/languages/hu_HU.ts
vendored
Normal file
7001
dist/languages/id.ts
vendored
Normal file
7013
dist/languages/it.ts
vendored
Normal file
7005
dist/languages/ja_JP.ts
vendored
Normal file
7007
dist/languages/ko_KR.ts
vendored
Normal file
6992
dist/languages/lt_LT.ts
vendored
Normal file
7004
dist/languages/nb.ts
vendored
Normal file
7015
dist/languages/nl.ts
vendored
Normal file
6995
dist/languages/pl_PL.ts
vendored
Normal file
7008
dist/languages/pt_BR.ts
vendored
Normal file
7002
dist/languages/ro_RO.ts
vendored
Normal file
7008
dist/languages/ru_RU.ts
vendored
Normal file
7004
dist/languages/tr_TR.ts
vendored
Normal file
7000
dist/languages/vi_VN.ts
vendored
Normal file
7012
dist/languages/zh_CN.ts
vendored
Normal file
7004
dist/languages/zh_TW.ts
vendored
Normal file
41
dist/license.md
vendored
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
The icons in this folder and its subfolders have the following licenses:
|
||||||
|
|
||||||
|
Icon Name | License | Origin/Author
|
||||||
|
--- | --- | ---
|
||||||
|
qt_themes/default/icons/16x16/checked.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/connected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/connected_notification.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/disconnected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/failed.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/16x16/lock.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/256x256/plus_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/bad_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/chip.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/no_avatar.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/default/icons/48x48/plus.png | CC0 1.0 | Designed by BreadFish64 from the Citra team
|
||||||
|
qt_themes/default/icons/48x48/sd_card.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/16x16/connected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/16x16/connected_notification.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/16x16/disconnected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/16x16/lock.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/256x256/plus_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/bad_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/chip.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/no_avatar.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/plus.png | CC0 1.0 | Designed by BreadFish64 from the Citra team
|
||||||
|
qt_themes/qdarkstyle/icons/48x48/sd_card.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/16x16/connected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/16x16/connected_notification.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/16x16/disconnected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/16x16/lock.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/256x256/plus_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/bad_folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/chip.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/folder.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/plus.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful/icons/48x48/sd_card.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
qt_themes/colorful_dark/icons/16x16/connected.png | CC BY-ND 3.0 | https://icons8.com
|
||||||
|
|
||||||
|
<!-- TODO (B3N30): Add the license of the citra icon -->
|
BIN
dist/qt_themes/colorful/icons/16x16/connected.png
vendored
Normal file
After Width: | Height: | Size: 362 B |
BIN
dist/qt_themes/colorful/icons/16x16/connected_notification.png
vendored
Normal file
After Width: | Height: | Size: 607 B |
BIN
dist/qt_themes/colorful/icons/16x16/disconnected.png
vendored
Normal file
After Width: | Height: | Size: 784 B |
BIN
dist/qt_themes/colorful/icons/16x16/lock.png
vendored
Normal file
After Width: | Height: | Size: 330 B |
BIN
dist/qt_themes/colorful/icons/256x256/plus_folder.png
vendored
Normal file
After Width: | Height: | Size: 4.5 KiB |
BIN
dist/qt_themes/colorful/icons/48x48/bad_folder.png
vendored
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
dist/qt_themes/colorful/icons/48x48/chip.png
vendored
Normal file
After Width: | Height: | Size: 582 B |
BIN
dist/qt_themes/colorful/icons/48x48/folder.png
vendored
Normal file
After Width: | Height: | Size: 460 B |
BIN
dist/qt_themes/colorful/icons/48x48/plus.png
vendored
Normal file
After Width: | Height: | Size: 496 B |
BIN
dist/qt_themes/colorful/icons/48x48/sd_card.png
vendored
Normal file
After Width: | Height: | Size: 680 B |
14
dist/qt_themes/colorful/icons/index.theme
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Icon Theme]
|
||||||
|
Name=colorful
|
||||||
|
Comment=Colorful theme
|
||||||
|
Inherits=default
|
||||||
|
Directories=16x16,48x48,256x256
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
||||||
|
|
||||||
|
[48x48]
|
||||||
|
Size=48
|
||||||
|
|
||||||
|
[256x256]
|
||||||
|
Size=256
|
18
dist/qt_themes/colorful/style.qrc
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/colorful">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/connected.png">icons/16x16/connected.png</file>
|
||||||
|
<file alias="16x16/connected_notification.png">icons/16x16/connected_notification.png</file>
|
||||||
|
<file alias="16x16/disconnected.png">icons/16x16/disconnected.png</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/plus.png">icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="colorful">
|
||||||
|
<file alias="style.qss">../default/style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/qt_themes/colorful_dark/icons/16x16/lock.png
vendored
Normal file
After Width: | Height: | Size: 401 B |
14
dist/qt_themes/colorful_dark/icons/index.theme
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Icon Theme]
|
||||||
|
Name=colorful_dark
|
||||||
|
Comment=Colorful theme (Dark style)
|
||||||
|
Inherits=default
|
||||||
|
Directories=16x16,48x48,256x256
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
||||||
|
|
||||||
|
[48x48]
|
||||||
|
Size=48
|
||||||
|
|
||||||
|
[256x256]
|
||||||
|
Size=256
|
61
dist/qt_themes/colorful_dark/style.qrc
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/colorful_dark">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/connected.png">../colorful/icons/16x16/connected.png</file>
|
||||||
|
<file alias="16x16/connected_notification.png">../colorful/icons/16x16/connected_notification.png</file>
|
||||||
|
<file alias="16x16/disconnected.png">../colorful/icons/16x16/disconnected.png</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/no_avatar.png">../qdarkstyle/icons/48x48/no_avatar.png</file>
|
||||||
|
<file alias="48x48/plus.png">../colorful/icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
|
||||||
|
<qresource prefix="qss_icons">
|
||||||
|
<file alias="rc/up_arrow_disabled.png">../qdarkstyle/rc/up_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hmovetoolbar.png">../qdarkstyle/rc/Hmovetoolbar.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-end.png">../qdarkstyle/rc/stylesheet-branch-end.png</file>
|
||||||
|
<file alias="rc/branch_closed-on.png">../qdarkstyle/rc/branch_closed-on.png</file>
|
||||||
|
<file alias="rc/stylesheet-vline.png">../qdarkstyle/rc/stylesheet-vline.png</file>
|
||||||
|
<file alias="rc/branch_closed.png">../qdarkstyle/rc/branch_closed.png</file>
|
||||||
|
<file alias="rc/branch_open-on.png">../qdarkstyle/rc/branch_open-on.png</file>
|
||||||
|
<file alias="rc/transparent.png">../qdarkstyle/rc/transparent.png</file>
|
||||||
|
<file alias="rc/right_arrow_disabled.png">../qdarkstyle/rc/right_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/sizegrip.png">../qdarkstyle/rc/sizegrip.png</file>
|
||||||
|
<file alias="rc/close.png">../qdarkstyle/rc/close.png</file>
|
||||||
|
<file alias="rc/close-hover.png">../qdarkstyle/rc/close-hover.png</file>
|
||||||
|
<file alias="rc/close-pressed.png">../qdarkstyle/rc/close-pressed.png</file>
|
||||||
|
<file alias="rc/down_arrow.png">../qdarkstyle/rc/down_arrow.png</file>
|
||||||
|
<file alias="rc/Vmovetoolbar.png">../qdarkstyle/rc/Vmovetoolbar.png</file>
|
||||||
|
<file alias="rc/left_arrow.png">../qdarkstyle/rc/left_arrow.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-more.png">../qdarkstyle/rc/stylesheet-branch-more.png</file>
|
||||||
|
<file alias="rc/up_arrow.png">../qdarkstyle/rc/up_arrow.png</file>
|
||||||
|
<file alias="rc/right_arrow.png">../qdarkstyle/rc/right_arrow.png</file>
|
||||||
|
<file alias="rc/left_arrow_disabled.png">../qdarkstyle/rc/left_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hsepartoolbar.png">../qdarkstyle/rc/Hsepartoolbar.png</file>
|
||||||
|
<file alias="rc/branch_open.png">../qdarkstyle/rc/branch_open.png</file>
|
||||||
|
<file alias="rc/Vsepartoolbar.png">../qdarkstyle/rc/Vsepartoolbar.png</file>
|
||||||
|
<file alias="rc/down_arrow_disabled.png">../qdarkstyle/rc/down_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/undock.png">../qdarkstyle/rc/undock.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_disabled.png">../qdarkstyle/rc/checkbox_checked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_focus.png">../qdarkstyle/rc/checkbox_checked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_checked.png">../qdarkstyle/rc/checkbox_checked.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate.png">../qdarkstyle/rc/checkbox_indeterminate.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate_focus.png">../qdarkstyle/rc/checkbox_indeterminate_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_disabled.png">../qdarkstyle/rc/checkbox_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_focus.png">../qdarkstyle/rc/checkbox_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked.png">../qdarkstyle/rc/checkbox_unchecked.png</file>
|
||||||
|
<file alias="rc/radio_checked_disabled.png">../qdarkstyle/rc/radio_checked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_checked_focus.png">../qdarkstyle/rc/radio_checked_focus.png</file>
|
||||||
|
<file alias="rc/radio_checked.png">../qdarkstyle/rc/radio_checked.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_disabled.png">../qdarkstyle/rc/radio_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_focus.png">../qdarkstyle/rc/radio_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/radio_unchecked.png">../qdarkstyle/rc/radio_unchecked.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="colorful_dark">
|
||||||
|
<file alias="style.qss">../qdarkstyle/style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/qt_themes/colorful_midnight_blue/icons/16x16/lock.png
vendored
Normal file
After Width: | Height: | Size: 401 B |
14
dist/qt_themes/colorful_midnight_blue/icons/index.theme
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Icon Theme]
|
||||||
|
Name=colorful_midnight_blue
|
||||||
|
Comment=Colorful theme (Midnight Blue style)
|
||||||
|
Inherits=default
|
||||||
|
Directories=16x16,48x48,256x256
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
||||||
|
|
||||||
|
[48x48]
|
||||||
|
Size=48
|
||||||
|
|
||||||
|
[256x256]
|
||||||
|
Size=256
|
61
dist/qt_themes/colorful_midnight_blue/style.qrc
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/colorful_midnight_blue">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/connected.png">../colorful/icons/16x16/connected.png</file>
|
||||||
|
<file alias="16x16/connected_notification.png">../colorful/icons/16x16/connected_notification.png</file>
|
||||||
|
<file alias="16x16/disconnected.png">../colorful/icons/16x16/disconnected.png</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">../colorful/icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">../colorful/icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">../colorful/icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/no_avatar.png">../qdarkstyle/icons/48x48/no_avatar.png</file>
|
||||||
|
<file alias="48x48/plus.png">../colorful/icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">../colorful/icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">../colorful/icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
|
||||||
|
<qresource prefix="qss_icons">
|
||||||
|
<file alias="rc/up_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/up_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hmovetoolbar.png">../qdarkstyle_midnight_blue/rc/Hmovetoolbar.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-end.png">../qdarkstyle_midnight_blue/rc/stylesheet-branch-end.png</file>
|
||||||
|
<file alias="rc/branch_closed-on.png">../qdarkstyle_midnight_blue/rc/branch_closed-on.png</file>
|
||||||
|
<file alias="rc/stylesheet-vline.png">../qdarkstyle_midnight_blue/rc/stylesheet-vline.png</file>
|
||||||
|
<file alias="rc/branch_closed.png">../qdarkstyle_midnight_blue/rc/branch_closed.png</file>
|
||||||
|
<file alias="rc/branch_open-on.png">../qdarkstyle_midnight_blue/rc/branch_open-on.png</file>
|
||||||
|
<file alias="rc/transparent.png">../qdarkstyle_midnight_blue/rc/transparent.png</file>
|
||||||
|
<file alias="rc/right_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/right_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/sizegrip.png">../qdarkstyle_midnight_blue/rc/sizegrip.png</file>
|
||||||
|
<file alias="rc/close.png">../qdarkstyle_midnight_blue/rc/close.png</file>
|
||||||
|
<file alias="rc/close-hover.png">../qdarkstyle_midnight_blue/rc/close-hover.png</file>
|
||||||
|
<file alias="rc/close-pressed.png">../qdarkstyle_midnight_blue/rc/close-pressed.png</file>
|
||||||
|
<file alias="rc/down_arrow.png">../qdarkstyle_midnight_blue/rc/down_arrow.png</file>
|
||||||
|
<file alias="rc/Vmovetoolbar.png">../qdarkstyle_midnight_blue/rc/Vmovetoolbar.png</file>
|
||||||
|
<file alias="rc/left_arrow.png">../qdarkstyle_midnight_blue/rc/left_arrow.png</file>
|
||||||
|
<file alias="rc/stylesheet-branch-more.png">../qdarkstyle_midnight_blue/rc/stylesheet-branch-more.png</file>
|
||||||
|
<file alias="rc/up_arrow.png">../qdarkstyle_midnight_blue/rc/up_arrow.png</file>
|
||||||
|
<file alias="rc/right_arrow.png">../qdarkstyle_midnight_blue/rc/right_arrow.png</file>
|
||||||
|
<file alias="rc/left_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/left_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/Hsepartoolbar.png">../qdarkstyle_midnight_blue/rc/Hsepartoolbar.png</file>
|
||||||
|
<file alias="rc/branch_open.png">../qdarkstyle_midnight_blue/rc/branch_open.png</file>
|
||||||
|
<file alias="rc/Vsepartoolbar.png">../qdarkstyle_midnight_blue/rc/Vsepartoolbar.png</file>
|
||||||
|
<file alias="rc/down_arrow_disabled.png">../qdarkstyle_midnight_blue/rc/down_arrow_disabled.png</file>
|
||||||
|
<file alias="rc/undock.png">../qdarkstyle_midnight_blue/rc/undock.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_disabled.png">../qdarkstyle_midnight_blue/rc/checkbox_checked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_checked_focus.png">../qdarkstyle_midnight_blue/rc/checkbox_checked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_checked.png">../qdarkstyle_midnight_blue/rc/checkbox_checked.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate.png">../qdarkstyle_midnight_blue/rc/checkbox_indeterminate.png</file>
|
||||||
|
<file alias="rc/checkbox_indeterminate_focus.png">../qdarkstyle_midnight_blue/rc/checkbox_indeterminate_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_disabled.png">../qdarkstyle_midnight_blue/rc/checkbox_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked_focus.png">../qdarkstyle_midnight_blue/rc/checkbox_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/checkbox_unchecked.png">../qdarkstyle_midnight_blue/rc/checkbox_unchecked.png</file>
|
||||||
|
<file alias="rc/radio_checked_disabled.png">../qdarkstyle_midnight_blue/rc/radio_checked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_checked_focus.png">../qdarkstyle_midnight_blue/rc/radio_checked_focus.png</file>
|
||||||
|
<file alias="rc/radio_checked.png">../qdarkstyle_midnight_blue/rc/radio_checked.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_disabled.png">../qdarkstyle_midnight_blue/rc/radio_unchecked_disabled.png</file>
|
||||||
|
<file alias="rc/radio_unchecked_focus.png">../qdarkstyle_midnight_blue/rc/radio_unchecked_focus.png</file>
|
||||||
|
<file alias="rc/radio_unchecked.png">../qdarkstyle_midnight_blue/rc/radio_unchecked.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="colorful_midnight_blue">
|
||||||
|
<file alias="style.qss">../qdarkstyle_midnight_blue/style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
22
dist/qt_themes/default/default.qrc
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="icons/default">
|
||||||
|
<file alias="index.theme">icons/index.theme</file>
|
||||||
|
<file alias="16x16/checked.png">icons/16x16/checked.png</file>
|
||||||
|
<file alias="16x16/failed.png">icons/16x16/failed.png</file>
|
||||||
|
<file alias="16x16/connected.png">icons/16x16/connected.png</file>
|
||||||
|
<file alias="16x16/disconnected.png">icons/16x16/disconnected.png</file>
|
||||||
|
<file alias="16x16/connected_notification.png">icons/16x16/connected_notification.png</file>
|
||||||
|
<file alias="16x16/lock.png">icons/16x16/lock.png</file>
|
||||||
|
<file alias="48x48/bad_folder.png">icons/48x48/bad_folder.png</file>
|
||||||
|
<file alias="48x48/chip.png">icons/48x48/chip.png</file>
|
||||||
|
<file alias="48x48/folder.png">icons/48x48/folder.png</file>
|
||||||
|
<file alias="48x48/no_avatar.png">icons/48x48/no_avatar.png</file>
|
||||||
|
<file alias="48x48/plus.png">icons/48x48/plus.png</file>
|
||||||
|
<file alias="48x48/sd_card.png">icons/48x48/sd_card.png</file>
|
||||||
|
<file alias="256x256/citra.png">icons/256x256/citra.png</file>
|
||||||
|
<file alias="256x256/plus_folder.png">icons/256x256/plus_folder.png</file>
|
||||||
|
</qresource>
|
||||||
|
<qresource prefix="default">
|
||||||
|
<file>style.qss</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
BIN
dist/qt_themes/default/icons/16x16/checked.png
vendored
Normal file
After Width: | Height: | Size: 657 B |
BIN
dist/qt_themes/default/icons/16x16/connected.png
vendored
Normal file
After Width: | Height: | Size: 269 B |
BIN
dist/qt_themes/default/icons/16x16/connected_notification.png
vendored
Normal file
After Width: | Height: | Size: 517 B |
BIN
dist/qt_themes/default/icons/16x16/disconnected.png
vendored
Normal file
After Width: | Height: | Size: 306 B |
BIN
dist/qt_themes/default/icons/16x16/failed.png
vendored
Normal file
After Width: | Height: | Size: 524 B |
BIN
dist/qt_themes/default/icons/16x16/lock.png
vendored
Normal file
After Width: | Height: | Size: 279 B |
BIN
dist/qt_themes/default/icons/256x256/citra.png
vendored
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
dist/qt_themes/default/icons/256x256/plus_folder.png
vendored
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
dist/qt_themes/default/icons/48x48/bad_folder.png
vendored
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
dist/qt_themes/default/icons/48x48/chip.png
vendored
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
dist/qt_themes/default/icons/48x48/folder.png
vendored
Normal file
After Width: | Height: | Size: 410 B |
BIN
dist/qt_themes/default/icons/48x48/no_avatar.png
vendored
Normal file
After Width: | Height: | Size: 588 B |
BIN
dist/qt_themes/default/icons/48x48/plus.png
vendored
Normal file
After Width: | Height: | Size: 316 B |
BIN
dist/qt_themes/default/icons/48x48/sd_card.png
vendored
Normal file
After Width: | Height: | Size: 614 B |
13
dist/qt_themes/default/icons/index.theme
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Icon Theme]
|
||||||
|
Name=default
|
||||||
|
Comment=default theme
|
||||||
|
Directories=16x16,48x48,256x256
|
||||||
|
|
||||||
|
[16x16]
|
||||||
|
Size=16
|
||||||
|
|
||||||
|
[48x48]
|
||||||
|
Size=48
|
||||||
|
|
||||||
|
[256x256]
|
||||||
|
Size=256
|
34
dist/qt_themes/default/style.qss
vendored
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
QPushButton#GraphicsAPIStatusBarButton {
|
||||||
|
color: #656565;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0px 3px 0px 3px;
|
||||||
|
text-align: center;
|
||||||
|
min-width: 60px;
|
||||||
|
min-height: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#GraphicsAPIStatusBarButton:hover {
|
||||||
|
border: 1px solid #76797C;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#TogglableStatusBarButton {
|
||||||
|
color: #959595;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0px 3px 0px 3px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#TogglableStatusBarButton:checked {
|
||||||
|
color: #00FF00;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#TogglableStatusBarButton:hover {
|
||||||
|
border: 1px solid #76797C;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#button_reset_defaults {
|
||||||
|
min-width: 57px;
|
||||||
|
padding: 4px 8px;
|
||||||
|
}
|
183
dist/qt_themes/qdarkstyle/LICENSE.md
vendored
Normal file
@ -0,0 +1,183 @@
|
|||||||
|
# License
|
||||||
|
|
||||||
|
## The MIT License (MIT) - Code
|
||||||
|
|
||||||
|
Copyright (c) 2013-2018 Colin Duquesnoy
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
|
||||||
|
## Creative Commons Attribution International 4.0 - Images
|
||||||
|
|
||||||
|
QDarkStyle (c) 2013-2018 Colin Duquesnoy
|
||||||
|
|
||||||
|
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
|
||||||
|
|
||||||
|
### Using Creative Commons Public Licenses
|
||||||
|
|
||||||
|
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
|
||||||
|
|
||||||
|
* __Considerations for licensors:__ Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. [More considerations for licensors](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensors).
|
||||||
|
|
||||||
|
* __Considerations for the public:__ By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. [More considerations for the public](http://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees).
|
||||||
|
|
||||||
|
## Creative Commons Attribution 4.0 International Public License
|
||||||
|
|
||||||
|
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
|
||||||
|
|
||||||
|
### Section 1 – Definitions
|
||||||
|
|
||||||
|
a. __Adapted Material__ means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
|
||||||
|
|
||||||
|
b. __Adapter's License__ means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
c. __Copyright and Similar Rights__ means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
|
||||||
|
|
||||||
|
d. __Effective Technological Measures__ means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
|
||||||
|
|
||||||
|
e. __Exceptions and Limitations__ means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
|
||||||
|
|
||||||
|
f. __Licensed Material__ means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
|
||||||
|
|
||||||
|
g. __Licensed Rights__ means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
|
||||||
|
|
||||||
|
h. __Licensor__ means the individual(s) or entity(ies) granting rights under this Public License.
|
||||||
|
|
||||||
|
i. __Share__ means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
|
||||||
|
|
||||||
|
j. __Sui Generis Database Rights__ means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
|
||||||
|
|
||||||
|
k. __You__ means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
|
||||||
|
|
||||||
|
### Section 2 – Scope
|
||||||
|
|
||||||
|
a. ___License grant.___
|
||||||
|
|
||||||
|
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
|
||||||
|
|
||||||
|
A. reproduce and Share the Licensed Material, in whole or in part; and
|
||||||
|
|
||||||
|
B. produce, reproduce, and Share Adapted Material.
|
||||||
|
|
||||||
|
2. __Exceptions and Limitations.__ For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
|
||||||
|
|
||||||
|
3. __Term.__ The term of this Public License is specified in Section 6(a).
|
||||||
|
|
||||||
|
4. __Media and formats; technical modifications allowed.__ The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
|
||||||
|
|
||||||
|
5. __Downstream recipients.__
|
||||||
|
|
||||||
|
A. __Offer from the Licensor – Licensed Material.__ Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
B. __No downstream restrictions.__ You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
|
||||||
|
|
||||||
|
6. __No endorsement.__ Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
|
||||||
|
|
||||||
|
b. ___Other rights.___
|
||||||
|
|
||||||
|
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
|
||||||
|
|
||||||
|
2. Patent and trademark rights are not licensed under this Public License.
|
||||||
|
|
||||||
|
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
|
||||||
|
|
||||||
|
### Section 3 – License Conditions
|
||||||
|
|
||||||
|
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
|
||||||
|
|
||||||
|
a. ___Attribution.___
|
||||||
|
|
||||||
|
1. If You Share the Licensed Material (including in modified form), You must:
|
||||||
|
|
||||||
|
A. retain the following if it is supplied by the Licensor with the Licensed Material:
|
||||||
|
|
||||||
|
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
|
||||||
|
|
||||||
|
ii. a copyright notice;
|
||||||
|
|
||||||
|
iii. a notice that refers to this Public License;
|
||||||
|
|
||||||
|
iv. a notice that refers to the disclaimer of warranties;
|
||||||
|
|
||||||
|
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
|
||||||
|
|
||||||
|
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
|
||||||
|
|
||||||
|
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
|
||||||
|
|
||||||
|
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
|
||||||
|
|
||||||
|
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
|
||||||
|
|
||||||
|
4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
|
||||||
|
|
||||||
|
### Section 4 – Sui Generis Database Rights
|
||||||
|
|
||||||
|
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
|
||||||
|
|
||||||
|
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
|
||||||
|
|
||||||
|
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
|
||||||
|
|
||||||
|
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
|
||||||
|
|
||||||
|
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
|
||||||
|
|
||||||
|
### Section 5 – Disclaimer of Warranties and Limitation of Liability
|
||||||
|
|
||||||
|
a. __Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.__
|
||||||
|
|
||||||
|
b. __To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.__
|
||||||
|
|
||||||
|
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
|
||||||
|
|
||||||
|
### Section 6 – Term and Termination
|
||||||
|
|
||||||
|
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
|
||||||
|
|
||||||
|
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
|
||||||
|
|
||||||
|
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
|
||||||
|
|
||||||
|
2. upon express reinstatement by the Licensor.
|
||||||
|
|
||||||
|
For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
|
||||||
|
|
||||||
|
c. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
|
||||||
|
|
||||||
|
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
|
||||||
|
|
||||||
|
### Section 7 – Other Terms and Conditions
|
||||||
|
|
||||||
|
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
|
||||||
|
|
||||||
|
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
|
||||||
|
|
||||||
|
### Section 8 – Interpretation
|
||||||
|
|
||||||
|
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
|
||||||
|
|
||||||
|
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
|
||||||
|
|
||||||
|
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
|
||||||
|
|
||||||
|
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
|
||||||
|
|
||||||
|
> Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at [creativecommons.org/policies](http://creativecommons.org/policies), Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
|
||||||
|
>
|
||||||
|
> Creative Commons may be contacted at creativecommons.org
|
BIN
dist/qt_themes/qdarkstyle/icons/16x16/connected.png
vendored
Normal file
After Width: | Height: | Size: 397 B |