mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-11 20:25:55 +00:00
Merge branch 'main' into batch-sync
This commit is contained in:
commit
35bbe874a9
23 changed files with 338 additions and 250 deletions
|
@ -203,7 +203,7 @@ execute_process(
|
|||
|
||||
# Set Version
|
||||
set(EMULATOR_VERSION_MAJOR "0")
|
||||
set(EMULATOR_VERSION_MINOR "9")
|
||||
set(EMULATOR_VERSION_MINOR "10")
|
||||
set(EMULATOR_VERSION_PATCH "1")
|
||||
|
||||
set_source_files_properties(src/shadps4.rc PROPERTIES COMPILE_DEFINITIONS "EMULATOR_VERSION_MAJOR=${EMULATOR_VERSION_MAJOR};EMULATOR_VERSION_MINOR=${EMULATOR_VERSION_MINOR};EMULATOR_VERSION_PATCH=${EMULATOR_VERSION_PATCH}")
|
||||
|
|
3
dist/net.shadps4.shadPS4.metainfo.xml
vendored
3
dist/net.shadps4.shadPS4.metainfo.xml
vendored
|
@ -37,6 +37,9 @@
|
|||
<category translate="no">Game</category>
|
||||
</categories>
|
||||
<releases>
|
||||
<release version="0.10.0" date="2025-07-06">
|
||||
<url>https://github.com/shadps4-emu/shadPS4/releases/tag/v.0.10.0</url>
|
||||
</release>
|
||||
<release version="0.9.0" date="2025-05-22">
|
||||
<url>https://github.com/shadps4-emu/shadPS4/releases/tag/v.0.9.0</url>
|
||||
</release>
|
||||
|
|
|
@ -31,31 +31,50 @@ std::filesystem::path find_fs_path_or(const basic_value<TC>& v, const K& ky,
|
|||
|
||||
namespace Config {
|
||||
|
||||
// General
|
||||
static bool isNeo = false;
|
||||
static bool isDevKit = false;
|
||||
static bool isPSNSignedIn = false;
|
||||
static bool isTrophyPopupDisabled = false;
|
||||
static double trophyNotificationDuration = 6.0;
|
||||
static bool enableDiscordRPC = false;
|
||||
static u32 screenWidth = 1280;
|
||||
static u32 screenHeight = 720;
|
||||
static s32 gpuId = -1; // Vulkan physical device index. Set to negative for auto select
|
||||
static std::string logFilter;
|
||||
static std::string logFilter = "";
|
||||
static std::string logType = "sync";
|
||||
static std::string userName = "shadPS4";
|
||||
static std::string chooseHomeTab;
|
||||
static std::string chooseHomeTab = "General";
|
||||
static bool isShowSplash = false;
|
||||
static std::string isSideTrophy = "right";
|
||||
static bool compatibilityData = false;
|
||||
static bool checkCompatibilityOnStartup = false;
|
||||
|
||||
// Input
|
||||
static int cursorState = HideCursorState::Idle;
|
||||
static int cursorHideTimeout = 5; // 5 seconds (default)
|
||||
static bool useSpecialPad = false;
|
||||
static int specialPadClass = 1;
|
||||
static bool isMotionControlsEnabled = true;
|
||||
static bool isDebugDump = false;
|
||||
static bool isShaderDebug = false;
|
||||
static bool isShowSplash = false;
|
||||
static std::string isSideTrophy = "right";
|
||||
static bool useUnifiedInputConfig = true;
|
||||
|
||||
// These two entries aren't stored in the config
|
||||
static bool overrideControllerColor = false;
|
||||
static int controllerCustomColorRGB[3] = {0, 0, 255};
|
||||
|
||||
// GPU
|
||||
static u32 screenWidth = 1280;
|
||||
static u32 screenHeight = 720;
|
||||
static bool isNullGpu = false;
|
||||
static bool shouldCopyGPUBuffers = false;
|
||||
static bool readbacksEnabled = false;
|
||||
static bool directMemoryAccessEnabled = false;
|
||||
static bool shouldDumpShaders = false;
|
||||
static bool shouldPatchShaders = true;
|
||||
static bool shouldPatchShaders = false;
|
||||
static u32 vblankDivider = 1;
|
||||
static bool isFullscreen = false;
|
||||
static std::string fullscreenMode = "Windowed";
|
||||
static bool isHDRAllowed = false;
|
||||
|
||||
// Vulkan
|
||||
static s32 gpuId = -1;
|
||||
static bool vkValidation = false;
|
||||
static bool vkValidationSync = false;
|
||||
static bool vkValidationGpu = false;
|
||||
|
@ -63,32 +82,29 @@ static bool vkCrashDiagnostic = false;
|
|||
static bool vkHostMarkers = false;
|
||||
static bool vkGuestMarkers = false;
|
||||
static bool rdocEnable = false;
|
||||
static bool isFpsColor = true;
|
||||
static bool isSeparateLogFilesEnabled = false;
|
||||
static int cursorState = HideCursorState::Idle;
|
||||
static int cursorHideTimeout = 5; // 5 seconds (default)
|
||||
static double trophyNotificationDuration = 6.0;
|
||||
static bool useUnifiedInputConfig = true;
|
||||
static bool overrideControllerColor = false;
|
||||
static int controllerCustomColorRGB[3] = {0, 0, 255};
|
||||
static bool compatibilityData = false;
|
||||
static bool checkCompatibilityOnStartup = false;
|
||||
static std::string trophyKey;
|
||||
static bool isPSNSignedIn = false;
|
||||
|
||||
// Gui
|
||||
// Debug
|
||||
static bool isDebugDump = false;
|
||||
static bool isShaderDebug = false;
|
||||
static bool isSeparateLogFilesEnabled = false;
|
||||
static bool isFpsColor = true;
|
||||
|
||||
// GUI
|
||||
static bool load_game_size = true;
|
||||
static std::vector<GameInstallDir> settings_install_dirs = {};
|
||||
std::vector<bool> install_dirs_enabled = {};
|
||||
std::filesystem::path settings_addon_install_dir = {};
|
||||
std::filesystem::path save_data_path = {};
|
||||
static bool isFullscreen = false;
|
||||
static std::string fullscreenMode = "Windowed";
|
||||
static bool isHDRAllowed = false;
|
||||
|
||||
// Language
|
||||
// Settings
|
||||
u32 m_language = 1; // english
|
||||
|
||||
// Keys
|
||||
static std::string trophyKey = "";
|
||||
|
||||
// Expected number of items in the config file
|
||||
static constexpr u64 total_entries = 51;
|
||||
|
||||
bool allowHDR() {
|
||||
return isHDRAllowed;
|
||||
}
|
||||
|
@ -565,36 +581,46 @@ void load(const std::filesystem::path& path) {
|
|||
fmt::print("Got exception trying to load config file. Exception: {}\n", ex.what());
|
||||
return;
|
||||
}
|
||||
|
||||
u64 entry_count = 0;
|
||||
|
||||
if (data.contains("General")) {
|
||||
const toml::value& general = data.at("General");
|
||||
|
||||
isNeo = toml::find_or<bool>(general, "isPS4Pro", false);
|
||||
isDevKit = toml::find_or<bool>(general, "isDevKit", false);
|
||||
isPSNSignedIn = toml::find_or<bool>(general, "isPSNSignedIn", false);
|
||||
isTrophyPopupDisabled = toml::find_or<bool>(general, "isTrophyPopupDisabled", false);
|
||||
trophyNotificationDuration =
|
||||
toml::find_or<double>(general, "trophyNotificationDuration", 5.0);
|
||||
enableDiscordRPC = toml::find_or<bool>(general, "enableDiscordRPC", true);
|
||||
logFilter = toml::find_or<std::string>(general, "logFilter", "");
|
||||
logType = toml::find_or<std::string>(general, "logType", "sync");
|
||||
userName = toml::find_or<std::string>(general, "userName", "shadPS4");
|
||||
isShowSplash = toml::find_or<bool>(general, "showSplash", true);
|
||||
isSideTrophy = toml::find_or<std::string>(general, "sideTrophy", "right");
|
||||
compatibilityData = toml::find_or<bool>(general, "compatibilityEnabled", false);
|
||||
checkCompatibilityOnStartup =
|
||||
toml::find_or<bool>(general, "checkCompatibilityOnStartup", false);
|
||||
chooseHomeTab = toml::find_or<std::string>(general, "chooseHomeTab", "Release");
|
||||
isNeo = toml::find_or<bool>(general, "isPS4Pro", isNeo);
|
||||
isDevKit = toml::find_or<bool>(general, "isDevKit", isDevKit);
|
||||
isPSNSignedIn = toml::find_or<bool>(general, "isPSNSignedIn", isPSNSignedIn);
|
||||
isTrophyPopupDisabled =
|
||||
toml::find_or<bool>(general, "isTrophyPopupDisabled", isTrophyPopupDisabled);
|
||||
trophyNotificationDuration = toml::find_or<double>(general, "trophyNotificationDuration",
|
||||
trophyNotificationDuration);
|
||||
enableDiscordRPC = toml::find_or<bool>(general, "enableDiscordRPC", enableDiscordRPC);
|
||||
logFilter = toml::find_or<std::string>(general, "logFilter", logFilter);
|
||||
logType = toml::find_or<std::string>(general, "logType", logType);
|
||||
userName = toml::find_or<std::string>(general, "userName", userName);
|
||||
isShowSplash = toml::find_or<bool>(general, "showSplash", isShowSplash);
|
||||
isSideTrophy = toml::find_or<std::string>(general, "sideTrophy", isSideTrophy);
|
||||
compatibilityData = toml::find_or<bool>(general, "compatibilityEnabled", compatibilityData);
|
||||
checkCompatibilityOnStartup = toml::find_or<bool>(general, "checkCompatibilityOnStartup",
|
||||
checkCompatibilityOnStartup);
|
||||
chooseHomeTab = toml::find_or<std::string>(general, "chooseHomeTab", chooseHomeTab);
|
||||
|
||||
entry_count += general.size();
|
||||
}
|
||||
|
||||
if (data.contains("Input")) {
|
||||
const toml::value& input = data.at("Input");
|
||||
|
||||
cursorState = toml::find_or<int>(input, "cursorState", HideCursorState::Idle);
|
||||
cursorHideTimeout = toml::find_or<int>(input, "cursorHideTimeout", 5);
|
||||
useSpecialPad = toml::find_or<bool>(input, "useSpecialPad", false);
|
||||
specialPadClass = toml::find_or<int>(input, "specialPadClass", 1);
|
||||
isMotionControlsEnabled = toml::find_or<bool>(input, "isMotionControlsEnabled", true);
|
||||
useUnifiedInputConfig = toml::find_or<bool>(input, "useUnifiedInputConfig", true);
|
||||
cursorState = toml::find_or<int>(input, "cursorState", cursorState);
|
||||
cursorHideTimeout = toml::find_or<int>(input, "cursorHideTimeout", cursorHideTimeout);
|
||||
useSpecialPad = toml::find_or<bool>(input, "useSpecialPad", useSpecialPad);
|
||||
specialPadClass = toml::find_or<int>(input, "specialPadClass", specialPadClass);
|
||||
isMotionControlsEnabled =
|
||||
toml::find_or<bool>(input, "isMotionControlsEnabled", isMotionControlsEnabled);
|
||||
useUnifiedInputConfig =
|
||||
toml::find_or<bool>(input, "useUnifiedInputConfig", useUnifiedInputConfig);
|
||||
|
||||
entry_count += input.size();
|
||||
}
|
||||
|
||||
if (data.contains("GPU")) {
|
||||
|
@ -602,44 +628,52 @@ void load(const std::filesystem::path& path) {
|
|||
|
||||
screenWidth = toml::find_or<int>(gpu, "screenWidth", screenWidth);
|
||||
screenHeight = toml::find_or<int>(gpu, "screenHeight", screenHeight);
|
||||
isNullGpu = toml::find_or<bool>(gpu, "nullGpu", false);
|
||||
shouldCopyGPUBuffers = toml::find_or<bool>(gpu, "copyGPUBuffers", false);
|
||||
readbacksEnabled = toml::find_or<bool>(gpu, "readbacks", false);
|
||||
directMemoryAccessEnabled = toml::find_or<bool>(gpu, "directMemoryAccess", false);
|
||||
shouldDumpShaders = toml::find_or<bool>(gpu, "dumpShaders", false);
|
||||
shouldPatchShaders = toml::find_or<bool>(gpu, "patchShaders", true);
|
||||
vblankDivider = toml::find_or<int>(gpu, "vblankDivider", 1);
|
||||
isFullscreen = toml::find_or<bool>(gpu, "Fullscreen", false);
|
||||
fullscreenMode = toml::find_or<std::string>(gpu, "FullscreenMode", "Windowed");
|
||||
isHDRAllowed = toml::find_or<bool>(gpu, "allowHDR", false);
|
||||
isNullGpu = toml::find_or<bool>(gpu, "nullGpu", isNullGpu);
|
||||
shouldCopyGPUBuffers = toml::find_or<bool>(gpu, "copyGPUBuffers", shouldCopyGPUBuffers);
|
||||
readbacksEnabled = toml::find_or<bool>(gpu, "readbacks", readbacksEnabled);
|
||||
directMemoryAccessEnabled =
|
||||
toml::find_or<bool>(gpu, "directMemoryAccess", directMemoryAccessEnabled);
|
||||
shouldDumpShaders = toml::find_or<bool>(gpu, "dumpShaders", shouldDumpShaders);
|
||||
shouldPatchShaders = toml::find_or<bool>(gpu, "patchShaders", shouldPatchShaders);
|
||||
vblankDivider = toml::find_or<int>(gpu, "vblankDivider", vblankDivider);
|
||||
isFullscreen = toml::find_or<bool>(gpu, "Fullscreen", isFullscreen);
|
||||
fullscreenMode = toml::find_or<std::string>(gpu, "FullscreenMode", fullscreenMode);
|
||||
isHDRAllowed = toml::find_or<bool>(gpu, "allowHDR", isHDRAllowed);
|
||||
|
||||
entry_count += gpu.size();
|
||||
}
|
||||
|
||||
if (data.contains("Vulkan")) {
|
||||
const toml::value& vk = data.at("Vulkan");
|
||||
|
||||
gpuId = toml::find_or<int>(vk, "gpuId", -1);
|
||||
vkValidation = toml::find_or<bool>(vk, "validation", false);
|
||||
vkValidationSync = toml::find_or<bool>(vk, "validation_sync", false);
|
||||
vkValidationGpu = toml::find_or<bool>(vk, "validation_gpu", true);
|
||||
vkCrashDiagnostic = toml::find_or<bool>(vk, "crashDiagnostic", false);
|
||||
vkHostMarkers = toml::find_or<bool>(vk, "hostMarkers", false);
|
||||
vkGuestMarkers = toml::find_or<bool>(vk, "guestMarkers", false);
|
||||
rdocEnable = toml::find_or<bool>(vk, "rdocEnable", false);
|
||||
gpuId = toml::find_or<int>(vk, "gpuId", gpuId);
|
||||
vkValidation = toml::find_or<bool>(vk, "validation", vkValidation);
|
||||
vkValidationSync = toml::find_or<bool>(vk, "validation_sync", vkValidationSync);
|
||||
vkValidationGpu = toml::find_or<bool>(vk, "validation_gpu", vkValidationGpu);
|
||||
vkCrashDiagnostic = toml::find_or<bool>(vk, "crashDiagnostic", vkCrashDiagnostic);
|
||||
vkHostMarkers = toml::find_or<bool>(vk, "hostMarkers", vkHostMarkers);
|
||||
vkGuestMarkers = toml::find_or<bool>(vk, "guestMarkers", vkGuestMarkers);
|
||||
rdocEnable = toml::find_or<bool>(vk, "rdocEnable", rdocEnable);
|
||||
|
||||
entry_count += vk.size();
|
||||
}
|
||||
|
||||
if (data.contains("Debug")) {
|
||||
const toml::value& debug = data.at("Debug");
|
||||
|
||||
isDebugDump = toml::find_or<bool>(debug, "DebugDump", false);
|
||||
isSeparateLogFilesEnabled = toml::find_or<bool>(debug, "isSeparateLogFilesEnabled", false);
|
||||
isShaderDebug = toml::find_or<bool>(debug, "CollectShader", false);
|
||||
isFpsColor = toml::find_or<bool>(debug, "FPSColor", true);
|
||||
isDebugDump = toml::find_or<bool>(debug, "DebugDump", isDebugDump);
|
||||
isSeparateLogFilesEnabled =
|
||||
toml::find_or<bool>(debug, "isSeparateLogFilesEnabled", isSeparateLogFilesEnabled);
|
||||
isShaderDebug = toml::find_or<bool>(debug, "CollectShader", isShaderDebug);
|
||||
isFpsColor = toml::find_or<bool>(debug, "FPSColor", isFpsColor);
|
||||
|
||||
entry_count += debug.size();
|
||||
}
|
||||
|
||||
if (data.contains("GUI")) {
|
||||
const toml::value& gui = data.at("GUI");
|
||||
|
||||
load_game_size = toml::find_or<bool>(gui, "loadGameSizeEnabled", true);
|
||||
load_game_size = toml::find_or<bool>(gui, "loadGameSizeEnabled", load_game_size);
|
||||
|
||||
const auto install_dir_array =
|
||||
toml::find_or<std::vector<std::u8string>>(gui, "installDirs", {});
|
||||
|
@ -661,20 +695,32 @@ void load(const std::filesystem::path& path) {
|
|||
{std::filesystem::path{install_dir_array[i]}, install_dirs_enabled[i]});
|
||||
}
|
||||
|
||||
save_data_path = toml::find_fs_path_or(gui, "saveDataPath", {});
|
||||
save_data_path = toml::find_fs_path_or(gui, "saveDataPath", save_data_path);
|
||||
|
||||
settings_addon_install_dir = toml::find_fs_path_or(gui, "addonInstallDir", {});
|
||||
settings_addon_install_dir =
|
||||
toml::find_fs_path_or(gui, "addonInstallDir", settings_addon_install_dir);
|
||||
|
||||
entry_count += gui.size();
|
||||
}
|
||||
|
||||
if (data.contains("Settings")) {
|
||||
const toml::value& settings = data.at("Settings");
|
||||
m_language = toml::find_or<int>(settings, "consoleLanguage", m_language);
|
||||
|
||||
m_language = toml::find_or<int>(settings, "consoleLanguage", 1);
|
||||
entry_count += settings.size();
|
||||
}
|
||||
|
||||
if (data.contains("Keys")) {
|
||||
const toml::value& keys = data.at("Keys");
|
||||
trophyKey = toml::find_or<std::string>(keys, "TrophyKey", "");
|
||||
trophyKey = toml::find_or<std::string>(keys, "TrophyKey", trophyKey);
|
||||
|
||||
entry_count += keys.size();
|
||||
}
|
||||
|
||||
// Run save after loading to generate any missing fields with default values.
|
||||
if (entry_count != total_entries) {
|
||||
fmt::print("Outdated config detected, updating config file.\n");
|
||||
save(path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -822,32 +868,50 @@ void save(const std::filesystem::path& path) {
|
|||
}
|
||||
|
||||
void setDefaultValues() {
|
||||
isHDRAllowed = false;
|
||||
// General
|
||||
isNeo = false;
|
||||
isDevKit = false;
|
||||
isPSNSignedIn = false;
|
||||
isFullscreen = false;
|
||||
isTrophyPopupDisabled = false;
|
||||
enableDiscordRPC = true;
|
||||
screenWidth = 1280;
|
||||
screenHeight = 720;
|
||||
trophyNotificationDuration = 6.0;
|
||||
enableDiscordRPC = false;
|
||||
logFilter = "";
|
||||
logType = "sync";
|
||||
userName = "shadPS4";
|
||||
|
||||
chooseHomeTab = "General";
|
||||
cursorState = HideCursorState::Idle;
|
||||
cursorHideTimeout = 5;
|
||||
trophyNotificationDuration = 6.0;
|
||||
useSpecialPad = false;
|
||||
specialPadClass = 1;
|
||||
isDebugDump = false;
|
||||
isShaderDebug = false;
|
||||
isShowSplash = false;
|
||||
isSideTrophy = "right";
|
||||
compatibilityData = false;
|
||||
checkCompatibilityOnStartup = false;
|
||||
|
||||
// Input
|
||||
cursorState = HideCursorState::Idle;
|
||||
cursorHideTimeout = 5;
|
||||
useSpecialPad = false;
|
||||
specialPadClass = 1;
|
||||
isMotionControlsEnabled = true;
|
||||
useUnifiedInputConfig = true;
|
||||
overrideControllerColor = false;
|
||||
controllerCustomColorRGB[0] = 0;
|
||||
controllerCustomColorRGB[1] = 0;
|
||||
controllerCustomColorRGB[2] = 255;
|
||||
|
||||
// GPU
|
||||
screenWidth = 1280;
|
||||
screenHeight = 720;
|
||||
isNullGpu = false;
|
||||
shouldCopyGPUBuffers = false;
|
||||
readbacksEnabled = false;
|
||||
directMemoryAccessEnabled = false;
|
||||
shouldDumpShaders = false;
|
||||
shouldPatchShaders = false;
|
||||
vblankDivider = 1;
|
||||
isFullscreen = false;
|
||||
fullscreenMode = "Windowed";
|
||||
isHDRAllowed = false;
|
||||
|
||||
// Vulkan
|
||||
gpuId = -1;
|
||||
vkValidation = false;
|
||||
vkValidationSync = false;
|
||||
vkValidationGpu = false;
|
||||
|
@ -855,10 +919,18 @@ void setDefaultValues() {
|
|||
vkHostMarkers = false;
|
||||
vkGuestMarkers = false;
|
||||
rdocEnable = false;
|
||||
|
||||
// Debug
|
||||
isDebugDump = false;
|
||||
isShaderDebug = false;
|
||||
isSeparateLogFilesEnabled = false;
|
||||
isFpsColor = true;
|
||||
|
||||
// GUI
|
||||
load_game_size = true;
|
||||
|
||||
// Settings
|
||||
m_language = 1;
|
||||
gpuId = -1;
|
||||
compatibilityData = false;
|
||||
checkCompatibilityOnStartup = false;
|
||||
}
|
||||
|
||||
constexpr std::string_view GetDefaultKeyboardConfig() {
|
||||
|
|
|
@ -358,9 +358,17 @@ enum PosixPageProtection {
|
|||
[[nodiscard]] constexpr PosixPageProtection ToPosixProt(Core::MemoryProt prot) {
|
||||
if (True(prot & Core::MemoryProt::CpuReadWrite) ||
|
||||
True(prot & Core::MemoryProt::GpuReadWrite)) {
|
||||
return PAGE_READWRITE;
|
||||
if (True(prot & Core::MemoryProt::CpuExec)) {
|
||||
return PAGE_EXECUTE_READWRITE;
|
||||
} else {
|
||||
return PAGE_READWRITE;
|
||||
}
|
||||
} else if (True(prot & Core::MemoryProt::CpuRead) || True(prot & Core::MemoryProt::GpuRead)) {
|
||||
return PAGE_READONLY;
|
||||
if (True(prot & Core::MemoryProt::CpuExec)) {
|
||||
return PAGE_EXECUTE_READ;
|
||||
} else {
|
||||
return PAGE_READONLY;
|
||||
}
|
||||
} else {
|
||||
return PAGE_NOACCESS;
|
||||
}
|
||||
|
|
|
@ -573,11 +573,12 @@ void* PS4_SYSV_ABI posix_mmap(void* addr, u64 len, s32 prot, s32 flags, s32 fd,
|
|||
auto* memory = Core::Memory::Instance();
|
||||
const auto mem_prot = static_cast<Core::MemoryProt>(prot);
|
||||
const auto mem_flags = static_cast<Core::MemoryMapFlags>(flags);
|
||||
const auto is_exec = True(mem_prot & Core::MemoryProt::CpuExec);
|
||||
|
||||
s32 result = ORBIS_OK;
|
||||
if (fd == -1) {
|
||||
result = memory->MapMemory(&addr_out, std::bit_cast<VAddr>(addr), len, mem_prot, mem_flags,
|
||||
Core::VMAType::Flexible);
|
||||
Core::VMAType::Flexible, "anon", is_exec);
|
||||
} else {
|
||||
result = memory->MapFile(&addr_out, std::bit_cast<VAddr>(addr), len, mem_prot, mem_flags,
|
||||
fd, phys_addr);
|
||||
|
@ -711,6 +712,7 @@ void RegisterMemory(Core::Loader::SymbolsResolver* sym) {
|
|||
sceKernelConfiguredFlexibleMemorySize);
|
||||
|
||||
LIB_FUNCTION("vSMAm3cxYTY", "libkernel", 1, "libkernel", 1, 1, sceKernelMprotect);
|
||||
LIB_FUNCTION("YQOfxL4QfeU", "libkernel", 1, "libkernel", 1, 1, posix_mprotect);
|
||||
LIB_FUNCTION("YQOfxL4QfeU", "libScePosix", 1, "libkernel", 1, 1, posix_mprotect);
|
||||
LIB_FUNCTION("9bfdLIyuwCY", "libkernel", 1, "libkernel", 1, 1, sceKernelMtypeprotect);
|
||||
|
||||
|
|
|
@ -342,7 +342,7 @@ s32 MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, u64 size, Memo
|
|||
}
|
||||
}
|
||||
|
||||
// Limit the minumum address to SystemManagedVirtualBase to prevent hardware-specific issues.
|
||||
// Limit the minimum address to SystemManagedVirtualBase to prevent hardware-specific issues.
|
||||
VAddr mapped_addr = (virtual_addr == 0) ? impl.SystemManagedVirtualBase() : virtual_addr;
|
||||
|
||||
// Fixed mapping means the virtual address must exactly match the provided one.
|
||||
|
@ -631,6 +631,9 @@ s64 MemoryManager::ProtectBytes(VAddr addr, VirtualMemoryArea vma_base, u64 size
|
|||
if (True(prot & MemoryProt::CpuReadWrite)) {
|
||||
perms |= Core::MemoryPermission::ReadWrite;
|
||||
}
|
||||
if (True(prot & MemoryProt::CpuExec)) {
|
||||
perms |= Core::MemoryPermission::Execute;
|
||||
}
|
||||
if (True(prot & MemoryProt::GpuRead)) {
|
||||
perms |= Core::MemoryPermission::Read;
|
||||
}
|
||||
|
@ -650,9 +653,9 @@ s32 MemoryManager::Protect(VAddr addr, u64 size, MemoryProt prot) {
|
|||
std::scoped_lock lk{mutex};
|
||||
|
||||
// Validate protection flags
|
||||
constexpr static MemoryProt valid_flags = MemoryProt::NoAccess | MemoryProt::CpuRead |
|
||||
MemoryProt::CpuReadWrite | MemoryProt::GpuRead |
|
||||
MemoryProt::GpuWrite | MemoryProt::GpuReadWrite;
|
||||
constexpr static MemoryProt valid_flags =
|
||||
MemoryProt::NoAccess | MemoryProt::CpuRead | MemoryProt::CpuReadWrite |
|
||||
MemoryProt::CpuExec | MemoryProt::GpuRead | MemoryProt::GpuWrite | MemoryProt::GpuReadWrite;
|
||||
|
||||
MemoryProt invalid_flags = prot & ~valid_flags;
|
||||
if (invalid_flags != MemoryProt::NoAccess) {
|
||||
|
|
|
@ -31,6 +31,7 @@ enum class MemoryProt : u32 {
|
|||
NoAccess = 0,
|
||||
CpuRead = 1,
|
||||
CpuReadWrite = 2,
|
||||
CpuExec = 4,
|
||||
GpuRead = 16,
|
||||
GpuWrite = 32,
|
||||
GpuReadWrite = 48,
|
||||
|
|
|
@ -527,71 +527,71 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>sense assignar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>Opcions</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Touchpad esquerra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Touchpad centre</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Touchpad dreta</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>Triangle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>Quadrat</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Cercle</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Creu</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
<translation>No es pot assignar una entrada més d'una vegada. S'han assignat de manera duplicada pels següents botons:
|
||||
|
||||
%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>Clica un botó</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Mou la palanca</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -527,71 +527,69 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>sin vincular</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>Opciones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Izquierda del Touchpad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Centro del Touchpad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Derecha del Touchpad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>Triángulo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>Cuadrado</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Círculo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Equis</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</translation>
|
||||
<translation>No se puede asignar un control único más de una vez. Controles duplicados asignados a los siguientes botones</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>Presiona un botón</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Mueve el stick analógico</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -778,7 +776,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Favorite</source>
|
||||
<translation type="unfinished">Favorite</translation>
|
||||
<translation>Favorito</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -984,11 +982,11 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Remove from Favorites</source>
|
||||
<translation type="unfinished">Remove from Favorites</translation>
|
||||
<translation>Eliminar de Favoritos</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add to Favorites</source>
|
||||
<translation type="unfinished">Add to Favorites</translation>
|
||||
<translation>Añadir a favoritos</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -1220,21 +1218,19 @@
|
|||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</translation>
|
||||
<translation>No se puede asignar un control único más de una vez. Controles duplicados asignados a los siguientes botones:</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Izquierda del Touchpad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Centro del Touchpad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Derecha del Touchpad</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -527,71 +527,71 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>non mappato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>Opzioni</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Touchpad Sinistra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Touchpad Centrale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Touchpad Destra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>Triangolo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>Quadrato</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Cerchio</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Croce</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
<translation>Non è possibile associare più di una volta qualsiasi input univoco. Sono presenti input duplicati mappati ai seguenti pulsanti:
|
||||
|
||||
%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>Premi un pulsante</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Muovi levetta analogica</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -778,7 +778,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Favorite</source>
|
||||
<translation type="unfinished">Favorite</translation>
|
||||
<translation>Preferiti</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -984,11 +984,11 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Remove from Favorites</source>
|
||||
<translation type="unfinished">Remove from Favorites</translation>
|
||||
<translation>Rimuovi dai Preferiti</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Add to Favorites</source>
|
||||
<translation type="unfinished">Add to Favorites</translation>
|
||||
<translation>Aggiungi ai preferiti</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -1226,15 +1226,15 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Touchpad Sinistra</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Touchpad Centrale</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Touchpad Destra</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -495,7 +495,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Override Lightbar Color</source>
|
||||
<translation>Overstyr farge på lyslinja</translation>
|
||||
<translation>Overstyr farge på lyslisten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Override Color</source>
|
||||
|
@ -527,71 +527,71 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>Ikke tildelt</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Venstre berøringsplate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Midt berøringsplate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Høyre berøringsplate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>Triangel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>Firkant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Sirkel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Kryss</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
<translation>Kan ikke tildele samme inndata mer enn én gang. Dupliserte inndata tildeles følgende taster:
|
||||
|
||||
%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>Trykk på en knapp</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Flytt på analog stikke</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
@ -1226,15 +1226,15 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation>Berøringsplate venstre</translation>
|
||||
<translation>Venstre berøringsplate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation>Berøringsplate midten</translation>
|
||||
<translation>Midt berøringsplate</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation>Berøringsplate høyre</translation>
|
||||
<translation>Høyre berøringsplate</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -555,7 +555,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Centro do Touchpad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
|
@ -571,11 +571,11 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Círculo</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Cruz</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
@ -591,7 +591,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Mover analógico</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -591,7 +591,7 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Двиньте аналоговый стик</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -527,71 +527,71 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>pacaktuar</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Paneli me Prekje Majtas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Paneli me Prekje në Qendër</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Paneli me Prekje Djathtas</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>Trekëndësh</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>Katror</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Rreth</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Kryq</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
<translation>Nuk mund të caktohet e njëjta hyrje unike më shumë se një herë. Hyrjet e dyfishta janë caktuar në butonët e mëposhtëm:
|
||||
|
||||
%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>Shtyp një buton</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Lëviz levën</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -527,71 +527,71 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>omappad</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>Options</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>Pekplatta vänster</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>Pekplatta i mitten</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>Pekplatta höger</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>Triangel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>Fyrkant</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>Cirkel</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>Kors</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
<translation>Det går inte att binda samma unika inmatning mer än en gång. Dubbletta inmatningar är mappade till följande knappar:
|
||||
|
||||
%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>Tryck på en knapp</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>Rör analog spak</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -527,71 +527,71 @@
|
|||
</message>
|
||||
<message>
|
||||
<source>unmapped</source>
|
||||
<translation type="unfinished">unmapped</translation>
|
||||
<translation>未映射</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L1</source>
|
||||
<translation type="unfinished">L1</translation>
|
||||
<translation>L1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R1</source>
|
||||
<translation type="unfinished">R1</translation>
|
||||
<translation>R1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>L2</source>
|
||||
<translation type="unfinished">L2</translation>
|
||||
<translation>L2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Options</source>
|
||||
<translation type="unfinished">Options</translation>
|
||||
<translation>选项</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>R2</source>
|
||||
<translation type="unfinished">R2</translation>
|
||||
<translation>R2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Left</source>
|
||||
<translation type="unfinished">Touchpad Left</translation>
|
||||
<translation>触摸板左侧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Center</source>
|
||||
<translation type="unfinished">Touchpad Center</translation>
|
||||
<translation>触控板中间</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Touchpad Right</source>
|
||||
<translation type="unfinished">Touchpad Right</translation>
|
||||
<translation>触摸板右侧</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Triangle</source>
|
||||
<translation type="unfinished">Triangle</translation>
|
||||
<translation>三角</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Square</source>
|
||||
<translation type="unfinished">Square</translation>
|
||||
<translation>方框</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Circle</source>
|
||||
<translation type="unfinished">Circle</translation>
|
||||
<translation>圈</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cross</source>
|
||||
<translation type="unfinished">Cross</translation>
|
||||
<translation>叉</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
|
||||
%1</source>
|
||||
<translation type="unfinished">Cannot bind any unique input more than once. Duplicate inputs mapped to the following buttons:
|
||||
<translation>不能多次绑定任何同一输入。请重新映射以下按键的输入:
|
||||
|
||||
%1</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Press a button</source>
|
||||
<translation type="unfinished">Press a button</translation>
|
||||
<translation>请按一个按键</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Move analog stick</source>
|
||||
<translation type="unfinished">Move analog stick</translation>
|
||||
<translation>移动模拟摇杆</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
|
|
|
@ -353,7 +353,7 @@ Id EmitFPIsInf32(EmitContext& ctx, Id value);
|
|||
Id EmitFPIsInf64(EmitContext& ctx, Id value);
|
||||
Id EmitIAdd32(EmitContext& ctx, IR::Inst* inst, Id a, Id b);
|
||||
Id EmitIAdd64(EmitContext& ctx, Id a, Id b);
|
||||
Id EmitIAddCary32(EmitContext& ctx, Id a, Id b);
|
||||
Id EmitIAddCarry32(EmitContext& ctx, Id a, Id b);
|
||||
Id EmitISub32(EmitContext& ctx, Id a, Id b);
|
||||
Id EmitISub64(EmitContext& ctx, Id a, Id b);
|
||||
Id EmitSMulHi(EmitContext& ctx, Id a, Id b);
|
||||
|
|
|
@ -60,7 +60,7 @@ Id EmitIAdd64(EmitContext& ctx, Id a, Id b) {
|
|||
return ctx.OpIAdd(ctx.U64, a, b);
|
||||
}
|
||||
|
||||
Id EmitIAddCary32(EmitContext& ctx, Id a, Id b) {
|
||||
Id EmitIAddCarry32(EmitContext& ctx, Id a, Id b) {
|
||||
return ctx.OpIAddCarry(ctx.full_result_u32x2, a, b);
|
||||
}
|
||||
|
||||
|
|
|
@ -623,12 +623,15 @@ void Translator::V_ADDC_U32(const GcnInst& inst) {
|
|||
const IR::U32 src0{GetSrc(inst.src[0])};
|
||||
const IR::U32 src1{GetSrc(inst.src[1])};
|
||||
const IR::U32 carry{GetCarryIn(inst)};
|
||||
const IR::U32 result{ir.IAdd(ir.IAdd(src0, src1), carry)};
|
||||
SetDst(inst.dst[0], result);
|
||||
const IR::Value tmp1{ir.IAddCarry(src0, src1)};
|
||||
const IR::U32 result1{ir.CompositeExtract(tmp1, 0)};
|
||||
const IR::U32 carry_out1{ir.CompositeExtract(tmp1, 1)};
|
||||
const IR::Value tmp2{ir.IAddCarry(result1, carry)};
|
||||
const IR::U32 result2{ir.CompositeExtract(tmp2, 0)};
|
||||
const IR::U32 carry_out2{ir.CompositeExtract(tmp2, 1)};
|
||||
SetDst(inst.dst[0], result2);
|
||||
|
||||
const IR::U1 less_src0{ir.ILessThan(result, src0, false)};
|
||||
const IR::U1 less_src1{ir.ILessThan(result, src1, false)};
|
||||
const IR::U1 did_overflow{ir.LogicalOr(less_src0, less_src1)};
|
||||
const IR::U1 did_overflow{ir.INotEqual(ir.BitwiseOr(carry_out1, carry_out2), ir.Imm32(0))};
|
||||
SetCarryOut(inst, did_overflow);
|
||||
}
|
||||
|
||||
|
|
|
@ -1424,13 +1424,13 @@ U32U64 IREmitter::IAdd(const U32U64& a, const U32U64& b) {
|
|||
}
|
||||
}
|
||||
|
||||
Value IREmitter::IAddCary(const U32& a, const U32& b) {
|
||||
Value IREmitter::IAddCarry(const U32& a, const U32& b) {
|
||||
if (a.Type() != b.Type()) {
|
||||
UNREACHABLE_MSG("Mismatching types {} and {}", a.Type(), b.Type());
|
||||
}
|
||||
switch (a.Type()) {
|
||||
case Type::U32:
|
||||
return Inst<U32>(Opcode::IAddCary32, a, b);
|
||||
return Inst(Opcode::IAddCarry32, a, b);
|
||||
default:
|
||||
ThrowInvalidType(a.Type());
|
||||
}
|
||||
|
|
|
@ -254,7 +254,7 @@ public:
|
|||
[[nodiscard]] F32F64 FPMedTri(const F32F64& a, const F32F64& b, const F32F64& c);
|
||||
|
||||
[[nodiscard]] U32U64 IAdd(const U32U64& a, const U32U64& b);
|
||||
[[nodiscard]] Value IAddCary(const U32& a, const U32& b);
|
||||
[[nodiscard]] Value IAddCarry(const U32& a, const U32& b);
|
||||
[[nodiscard]] U32U64 ISub(const U32U64& a, const U32U64& b);
|
||||
[[nodiscard]] U32 IMulHi(const U32& a, const U32& b, bool is_signed = false);
|
||||
[[nodiscard]] U32U64 IMul(const U32U64& a, const U32U64& b);
|
||||
|
|
|
@ -328,7 +328,7 @@ OPCODE(FPCmpClass32, U1, F32,
|
|||
// Integer operations
|
||||
OPCODE(IAdd32, U32, U32, U32, )
|
||||
OPCODE(IAdd64, U64, U64, U64, )
|
||||
OPCODE(IAddCary32, U32x2, U32, U32, )
|
||||
OPCODE(IAddCarry32, U32x2, U32, U32, )
|
||||
OPCODE(ISub32, U32, U32, U32, )
|
||||
OPCODE(ISub64, U64, U64, U64, )
|
||||
OPCODE(IMul32, U32, U32, U32, )
|
||||
|
|
|
@ -169,7 +169,7 @@ ImageId TextureCache::ResolveDepthOverlap(const ImageInfo& requested_info, Bindi
|
|||
|
||||
if (recreate) {
|
||||
auto new_info = requested_info;
|
||||
new_info.resources = std::min(requested_info.resources, cache_image.info.resources);
|
||||
new_info.resources = std::max(requested_info.resources, cache_image.info.resources);
|
||||
const auto new_image_id = slot_images.insert(instance, scheduler, new_info);
|
||||
RegisterImage(new_image_id);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue