Merge remote/tracking branch origin/main

This commit is contained in:
kalaposfos13 2025-02-05 17:41:16 +01:00
commit 727c8261e2
14 changed files with 1827 additions and 171 deletions

View File

@ -486,6 +486,10 @@ set(ZLIB_LIB src/core/libraries/zlib/zlib.cpp
src/core/libraries/zlib/zlib_error.h
)
set(VR_LIBS src/core/libraries/hmd/hmd.cpp
src/core/libraries/hmd/hmd.h
)
set(MISC_LIBS src/core/libraries/screenshot/screenshot.cpp
src/core/libraries/screenshot/screenshot.h
src/core/libraries/move/move.cpp
@ -663,6 +667,7 @@ set(CORE src/core/aerolib/stubs.cpp
${IME_LIB}
${FIBER_LIB}
${VDEC_LIB}
${VR_LIBS}
${DEV_TOOLS}
src/core/debug_state.cpp
src/core/debug_state.h

View File

@ -1008,8 +1008,8 @@ axis_right_x = axis_right_x
axis_right_y = axis_right_y
# Range of deadzones: 1 (almost none) to 127 (max)
analog_deadzone = leftjoystick, 2
analog_deadzone = rightjoystick, 2
analog_deadzone = leftjoystick, 2, 127
analog_deadzone = rightjoystick, 2, 127
)";
}
std::filesystem::path GetFoolproofKbmConfigFile(const std::string& game_id) {

View File

@ -134,6 +134,7 @@ bool ParseFilterRule(Filter& instance, Iterator begin, Iterator end) {
SUB(Lib, WebBrowserDialog) \
SUB(Lib, NpParty) \
SUB(Lib, Zlib) \
SUB(Lib, Hmd) \
CLS(Frontend) \
CLS(Render) \
SUB(Render, Vulkan) \

View File

@ -101,6 +101,7 @@ enum class Class : u8 {
Lib_WebBrowserDialog, ///< The LibSceWebBrowserDialog implementation
Lib_NpParty, ///< The LibSceNpParty implementation
Lib_Zlib, ///< The LibSceZlib implementation.
Lib_Hmd, ///< The LibSceHmd implementation.
Frontend, ///< Emulator UI
Render, ///< Video Core
Render_Vulkan, ///< Vulkan backend

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,203 @@
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
#pragma once
#include "common/types.h"
namespace Core::Loader {
class SymbolsResolver;
}
namespace Libraries::Hmd {
s32 PS4_SYSV_ABI sceHmdReprojectionStartMultilayer();
s32 PS4_SYSV_ABI sceHmdDistortionGet2dVrCommand();
s32 PS4_SYSV_ABI sceHmdDistortionGetCompoundEyeCorrectionCommand();
s32 PS4_SYSV_ABI sceHmdDistortionGetCorrectionCommand();
s32 PS4_SYSV_ABI sceHmdDistortionGetWideNearCorrectionCommand();
s32 PS4_SYSV_ABI sceHmdDistortionGetWorkMemoryAlign();
s32 PS4_SYSV_ABI sceHmdDistortionGetWorkMemorySize();
s32 PS4_SYSV_ABI sceHmdDistortionInitialize();
s32 PS4_SYSV_ABI sceHmdDistortionSetOutputMinColor();
s32 PS4_SYSV_ABI Func_B26430EA74FC3DC0();
s32 PS4_SYSV_ABI sceHmdClose();
s32 PS4_SYSV_ABI sceHmdGet2DEyeOffset();
s32 PS4_SYSV_ABI sceHmdGet2dVrCommand();
s32 PS4_SYSV_ABI sceHmdGetAssyError();
s32 PS4_SYSV_ABI sceHmdGetDeviceInformation();
s32 PS4_SYSV_ABI sceHmdGetDeviceInformationByHandle();
s32 PS4_SYSV_ABI sceHmdGetDistortionCorrectionCommand();
s32 PS4_SYSV_ABI sceHmdGetDistortionParams();
s32 PS4_SYSV_ABI sceHmdGetDistortionWorkMemoryAlign();
s32 PS4_SYSV_ABI sceHmdGetDistortionWorkMemorySize();
s32 PS4_SYSV_ABI sceHmdGetFieldOfView();
s32 PS4_SYSV_ABI sceHmdGetInertialSensorData();
s32 PS4_SYSV_ABI sceHmdGetWideNearDistortionCorrectionCommand();
s32 PS4_SYSV_ABI sceHmdInitialize();
s32 PS4_SYSV_ABI sceHmdInitialize315();
s32 PS4_SYSV_ABI sceHmdInternal3dAudioClose();
s32 PS4_SYSV_ABI sceHmdInternal3dAudioOpen();
s32 PS4_SYSV_ABI sceHmdInternal3dAudioSendData();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenClose();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenGetAudioStatus();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenGetFadeState();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenGetVideoStatus();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenOpen();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenSendAudio();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenSendVideo();
s32 PS4_SYSV_ABI sceHmdInternalAnotherScreenSetFadeAndSwitch();
s32 PS4_SYSV_ABI sceHmdInternalBindDeviceWithUserId();
s32 PS4_SYSV_ABI sceHmdInternalCheckDeviceModelMk3();
s32 PS4_SYSV_ABI sceHmdInternalCheckS3dPassModeAvailable();
s32 PS4_SYSV_ABI sceHmdInternalCrashReportCancel();
s32 PS4_SYSV_ABI sceHmdInternalCrashReportClose();
s32 PS4_SYSV_ABI sceHmdInternalCrashReportOpen();
s32 PS4_SYSV_ABI sceHmdInternalCrashReportReadData();
s32 PS4_SYSV_ABI sceHmdInternalCrashReportReadDataSize();
s32 PS4_SYSV_ABI sceHmdInternalCreateSharedMemory();
s32 PS4_SYSV_ABI sceHmdInternalDfuCheckAfterPvt();
s32 PS4_SYSV_ABI sceHmdInternalDfuCheckPartialUpdateAvailable();
s32 PS4_SYSV_ABI sceHmdInternalDfuClose();
s32 PS4_SYSV_ABI sceHmdInternalDfuGetStatus();
s32 PS4_SYSV_ABI sceHmdInternalDfuOpen();
s32 PS4_SYSV_ABI sceHmdInternalDfuReset();
s32 PS4_SYSV_ABI sceHmdInternalDfuSend();
s32 PS4_SYSV_ABI sceHmdInternalDfuSendSize();
s32 PS4_SYSV_ABI sceHmdInternalDfuSetMode();
s32 PS4_SYSV_ABI sceHmdInternalDfuStart();
s32 PS4_SYSV_ABI sceHmdInternalEventInitialize();
s32 PS4_SYSV_ABI sceHmdInternalGetBrightness();
s32 PS4_SYSV_ABI sceHmdInternalGetCrashDumpInfo();
s32 PS4_SYSV_ABI sceHmdInternalGetDebugMode();
s32 PS4_SYSV_ABI sceHmdInternalGetDebugSocialScreenMode();
s32 PS4_SYSV_ABI sceHmdInternalGetDebugTextMode();
s32 PS4_SYSV_ABI sceHmdInternalGetDefaultLedData();
s32 PS4_SYSV_ABI sceHmdInternalGetDemoMode();
s32 PS4_SYSV_ABI sceHmdInternalGetDeviceInformation();
s32 PS4_SYSV_ABI sceHmdInternalGetDeviceInformationByHandle();
s32 PS4_SYSV_ABI sceHmdInternalGetDeviceStatus();
s32 PS4_SYSV_ABI sceHmdInternalGetEyeStatus();
s32 PS4_SYSV_ABI sceHmdInternalGetHmuOpticalParam();
s32 PS4_SYSV_ABI sceHmdInternalGetHmuPowerStatusForDebug();
s32 PS4_SYSV_ABI sceHmdInternalGetHmuSerialNumber();
s32 PS4_SYSV_ABI sceHmdInternalGetIPD();
s32 PS4_SYSV_ABI sceHmdInternalGetIpdSettingEnableForSystemService();
s32 PS4_SYSV_ABI sceHmdInternalGetPuBuildNumber();
s32 PS4_SYSV_ABI sceHmdInternalGetPuPositionParam();
s32 PS4_SYSV_ABI sceHmdInternalGetPuRevision();
s32 PS4_SYSV_ABI sceHmdInternalGetPUSerialNumber();
s32 PS4_SYSV_ABI sceHmdInternalGetPUVersion();
s32 PS4_SYSV_ABI sceHmdInternalGetRequiredPUPVersion();
s32 PS4_SYSV_ABI sceHmdInternalGetStatusReport();
s32 PS4_SYSV_ABI sceHmdInternalGetTv4kCapability();
s32 PS4_SYSV_ABI sceHmdInternalGetVirtualDisplayDepth();
s32 PS4_SYSV_ABI sceHmdInternalGetVirtualDisplayHeight();
s32 PS4_SYSV_ABI sceHmdInternalGetVirtualDisplaySize();
s32 PS4_SYSV_ABI sceHmdInternalGetVr2dData();
s32 PS4_SYSV_ABI sceHmdInternalIsCommonDlgMiniAppVr2d();
s32 PS4_SYSV_ABI sceHmdInternalIsCommonDlgVr2d();
s32 PS4_SYSV_ABI sceHmdInternalIsGameVr2d();
s32 PS4_SYSV_ABI sceHmdInternalIsMiniAppVr2d();
s32 PS4_SYSV_ABI sceHmdInternalMapSharedMemory();
s32 PS4_SYSV_ABI sceHmdInternalMirroringModeSetAspect();
s32 PS4_SYSV_ABI sceHmdInternalMirroringModeSetAspectDebug();
s32 PS4_SYSV_ABI sceHmdInternalMmapGetCount();
s32 PS4_SYSV_ABI sceHmdInternalMmapGetModeId();
s32 PS4_SYSV_ABI sceHmdInternalMmapGetSensorCalibrationData();
s32 PS4_SYSV_ABI sceHmdInternalMmapIsConnect();
s32 PS4_SYSV_ABI sceHmdInternalPushVr2dData();
s32 PS4_SYSV_ABI sceHmdInternalRegisterEventCallback();
s32 PS4_SYSV_ABI sceHmdInternalResetInertialSensor();
s32 PS4_SYSV_ABI sceHmdInternalResetLedForVrTracker();
s32 PS4_SYSV_ABI sceHmdInternalResetLedForVsh();
s32 PS4_SYSV_ABI sceHmdInternalSeparateModeClose();
s32 PS4_SYSV_ABI sceHmdInternalSeparateModeGetAudioStatus();
s32 PS4_SYSV_ABI sceHmdInternalSeparateModeGetVideoStatus();
s32 PS4_SYSV_ABI sceHmdInternalSeparateModeOpen();
s32 PS4_SYSV_ABI sceHmdInternalSeparateModeSendAudio();
s32 PS4_SYSV_ABI sceHmdInternalSeparateModeSendVideo();
s32 PS4_SYSV_ABI sceHmdInternalSetBrightness();
s32 PS4_SYSV_ABI sceHmdInternalSetCrashReportCommand();
s32 PS4_SYSV_ABI sceHmdInternalSetDebugGpo();
s32 PS4_SYSV_ABI sceHmdInternalSetDebugMode();
s32 PS4_SYSV_ABI sceHmdInternalSetDebugSocialScreenMode();
s32 PS4_SYSV_ABI sceHmdInternalSetDebugTextMode();
s32 PS4_SYSV_ABI sceHmdInternalSetDefaultLedData();
s32 PS4_SYSV_ABI sceHmdInternalSetDemoMode();
s32 PS4_SYSV_ABI sceHmdInternalSetDeviceConnection();
s32 PS4_SYSV_ABI sceHmdInternalSetForcedCrash();
s32 PS4_SYSV_ABI sceHmdInternalSetHmuPowerControl();
s32 PS4_SYSV_ABI sceHmdInternalSetHmuPowerControlForDebug();
s32 PS4_SYSV_ABI sceHmdInternalSetIPD();
s32 PS4_SYSV_ABI sceHmdInternalSetIpdSettingEnableForSystemService();
s32 PS4_SYSV_ABI sceHmdInternalSetLedOn();
s32 PS4_SYSV_ABI sceHmdInternalSetM2LedBrightness();
s32 PS4_SYSV_ABI sceHmdInternalSetM2LedOn();
s32 PS4_SYSV_ABI sceHmdInternalSetPortConnection();
s32 PS4_SYSV_ABI sceHmdInternalSetPortStatus();
s32 PS4_SYSV_ABI sceHmdInternalSetS3dPassMode();
s32 PS4_SYSV_ABI sceHmdInternalSetSidetone();
s32 PS4_SYSV_ABI sceHmdInternalSetUserType();
s32 PS4_SYSV_ABI sceHmdInternalSetVirtualDisplayDepth();
s32 PS4_SYSV_ABI sceHmdInternalSetVirtualDisplayHeight();
s32 PS4_SYSV_ABI sceHmdInternalSetVirtualDisplaySize();
s32 PS4_SYSV_ABI sceHmdInternalSetVRMode();
s32 PS4_SYSV_ABI sceHmdInternalSocialScreenGetFadeState();
s32 PS4_SYSV_ABI sceHmdInternalSocialScreenSetFadeAndSwitch();
s32 PS4_SYSV_ABI sceHmdInternalSocialScreenSetOutput();
s32 PS4_SYSV_ABI sceHmdOpen();
s32 PS4_SYSV_ABI sceHmdReprojectionAddDisplayBuffer();
s32 PS4_SYSV_ABI sceHmdReprojectionClearUserEventEnd();
s32 PS4_SYSV_ABI sceHmdReprojectionClearUserEventStart();
s32 PS4_SYSV_ABI sceHmdReprojectionDebugGetLastInfo();
s32 PS4_SYSV_ABI sceHmdReprojectionDebugGetLastInfoMultilayer();
s32 PS4_SYSV_ABI sceHmdReprojectionFinalize();
s32 PS4_SYSV_ABI sceHmdReprojectionFinalizeCapture();
s32 PS4_SYSV_ABI sceHmdReprojectionInitialize();
s32 PS4_SYSV_ABI sceHmdReprojectionInitializeCapture();
s32 PS4_SYSV_ABI sceHmdReprojectionQueryGarlicBuffAlign();
s32 PS4_SYSV_ABI sceHmdReprojectionQueryGarlicBuffSize();
s32 PS4_SYSV_ABI sceHmdReprojectionQueryOnionBuffAlign();
s32 PS4_SYSV_ABI sceHmdReprojectionQueryOnionBuffSize();
s32 PS4_SYSV_ABI sceHmdReprojectionSetCallback();
s32 PS4_SYSV_ABI sceHmdReprojectionSetDisplayBuffers();
s32 PS4_SYSV_ABI sceHmdReprojectionSetOutputMinColor();
s32 PS4_SYSV_ABI sceHmdReprojectionSetUserEventEnd();
s32 PS4_SYSV_ABI sceHmdReprojectionSetUserEventStart();
s32 PS4_SYSV_ABI sceHmdReprojectionStart();
s32 PS4_SYSV_ABI sceHmdReprojectionStart2dVr();
s32 PS4_SYSV_ABI sceHmdReprojectionStartCapture();
s32 PS4_SYSV_ABI sceHmdReprojectionStartLiveCapture();
s32 PS4_SYSV_ABI sceHmdReprojectionStartMultilayer2();
s32 PS4_SYSV_ABI sceHmdReprojectionStartWideNear();
s32 PS4_SYSV_ABI sceHmdReprojectionStartWideNearWithOverlay();
s32 PS4_SYSV_ABI sceHmdReprojectionStartWithOverlay();
s32 PS4_SYSV_ABI sceHmdReprojectionStop();
s32 PS4_SYSV_ABI sceHmdReprojectionStopCapture();
s32 PS4_SYSV_ABI sceHmdReprojectionStopLiveCapture();
s32 PS4_SYSV_ABI sceHmdReprojectionUnsetCallback();
s32 PS4_SYSV_ABI sceHmdReprojectionUnsetDisplayBuffers();
s32 PS4_SYSV_ABI sceHmdTerminate();
s32 PS4_SYSV_ABI Func_202D0D1A687FCD2F();
s32 PS4_SYSV_ABI Func_358DBF818A3D8A12();
s32 PS4_SYSV_ABI Func_5CCBADA76FE8F40E();
s32 PS4_SYSV_ABI Func_63D403167DC08CF0();
s32 PS4_SYSV_ABI Func_69383B2B4E3AEABF();
s32 PS4_SYSV_ABI Func_791560C32F4F6D68();
s32 PS4_SYSV_ABI Func_7C955961EA85B6D3();
s32 PS4_SYSV_ABI Func_9952277839236BA7();
s32 PS4_SYSV_ABI Func_9A276E739E54EEAF();
s32 PS4_SYSV_ABI Func_9E501994E289CBE7();
s32 PS4_SYSV_ABI Func_A31A0320D80EAD99();
s32 PS4_SYSV_ABI Func_A31F4DA8B3BD2E12();
s32 PS4_SYSV_ABI Func_A92D7C23AC364993();
s32 PS4_SYSV_ABI Func_ADCCC25CB876FDBE();
s32 PS4_SYSV_ABI Func_B16652641FE69F0E();
s32 PS4_SYSV_ABI Func_B614F290B67FB59B();
s32 PS4_SYSV_ABI Func_B9A6FA0735EC7E49();
s32 PS4_SYSV_ABI Func_FC193BD653F2AF2E();
s32 PS4_SYSV_ABI Func_FF2E0E53015FE231();
void RegisterlibSceHmd(Core::Loader::SymbolsResolver* sym);
} // namespace Libraries::Hmd

View File

@ -26,17 +26,20 @@ u64 PS4_SYSV_ABI sceKernelGetDirectMemorySize() {
int PS4_SYSV_ABI sceKernelAllocateDirectMemory(s64 searchStart, s64 searchEnd, u64 len,
u64 alignment, int memoryType, s64* physAddrOut) {
if (searchStart < 0 || searchEnd <= searchStart) {
LOG_ERROR(Kernel_Vmm, "Provided address range is invalid!");
if (searchStart < 0 || searchEnd < 0) {
LOG_ERROR(Kernel_Vmm, "Invalid parameters!");
return ORBIS_KERNEL_ERROR_EINVAL;
}
const bool is_in_range = searchEnd - searchStart >= len;
if (len <= 0 || !Common::Is16KBAligned(len) || !is_in_range) {
LOG_ERROR(Kernel_Vmm, "Provided address range is invalid!");
if (len <= 0 || !Common::Is16KBAligned(len)) {
LOG_ERROR(Kernel_Vmm, "Length {:#x} is invalid!", len);
return ORBIS_KERNEL_ERROR_EINVAL;
}
if (alignment != 0 && !Common::Is16KBAligned(alignment)) {
LOG_ERROR(Kernel_Vmm, "Alignment value is invalid!");
LOG_ERROR(Kernel_Vmm, "Alignment {:#x} is invalid!", alignment);
return ORBIS_KERNEL_ERROR_EINVAL;
}
if (memoryType > 10) {
LOG_ERROR(Kernel_Vmm, "Memory type {:#x} is invalid!", memoryType);
return ORBIS_KERNEL_ERROR_EINVAL;
}
if (physAddrOut == nullptr) {
@ -44,8 +47,21 @@ int PS4_SYSV_ABI sceKernelAllocateDirectMemory(s64 searchStart, s64 searchEnd, u
return ORBIS_KERNEL_ERROR_EINVAL;
}
const bool is_in_range = searchEnd - searchStart >= len;
if (searchEnd <= searchStart || searchEnd < len || !is_in_range) {
LOG_ERROR(Kernel_Vmm,
"Provided address range is too small!"
" searchStart = {:#x}, searchEnd = {:#x}, length = {:#x}",
searchStart, searchEnd, len);
return ORBIS_KERNEL_ERROR_EAGAIN;
}
auto* memory = Core::Memory::Instance();
PAddr phys_addr = memory->Allocate(searchStart, searchEnd, len, alignment, memoryType);
if (phys_addr == -1) {
return ORBIS_KERNEL_ERROR_EAGAIN;
}
*physAddrOut = static_cast<s64>(phys_addr);
LOG_INFO(Kernel_Vmm,

View File

@ -11,6 +11,7 @@
#include "core/libraries/disc_map/disc_map.h"
#include "core/libraries/game_live_streaming/gamelivestreaming.h"
#include "core/libraries/gnmdriver/gnmdriver.h"
#include "core/libraries/hmd/hmd.h"
#include "core/libraries/ime/error_dialog.h"
#include "core/libraries/ime/ime.h"
#include "core/libraries/ime/ime_dialog.h"
@ -113,6 +114,7 @@ void InitHLELibs(Core::Loader::SymbolsResolver* sym) {
Libraries::WebBrowserDialog::RegisterlibSceWebBrowserDialog(sym);
Libraries::NpParty::RegisterlibSceNpParty(sym);
Libraries::Zlib::RegisterlibSceZlib(sym);
Libraries::Hmd::RegisterlibSceHmd(sym);
}
} // namespace Libraries

View File

@ -117,7 +117,10 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, size_t size,
dmem_area->second.GetEnd() <= search_end) {
++dmem_area;
}
ASSERT_MSG(is_suitable(), "Unable to find free direct memory area: size = {:#x}", size);
if (!is_suitable()) {
LOG_ERROR(Kernel_Vmm, "Unable to find free direct memory area: size = {:#x}", size);
return -1;
}
// Align free position
PAddr free_addr = dmem_area->second.base;

View File

@ -55,7 +55,8 @@ Don't be an idiot and test only the changed part expecting everything else to no
*/
bool leftjoystick_halfmode = false, rightjoystick_halfmode = false;
int leftjoystick_deadzone, rightjoystick_deadzone, lefttrigger_deadzone, righttrigger_deadzone;
std::pair<int, int> leftjoystick_deadzone, rightjoystick_deadzone, lefttrigger_deadzone,
righttrigger_deadzone;
std::list<std::pair<InputEvent, bool>> pressed_keys;
std::list<InputID> toggled_keys;
@ -208,10 +209,10 @@ void ParseInputConfig(const std::string game_id = "") {
float mouse_speed = 1;
float mouse_speed_offset = 0.125;
leftjoystick_deadzone = 1;
rightjoystick_deadzone = 1;
lefttrigger_deadzone = 1;
righttrigger_deadzone = 1;
leftjoystick_deadzone = {1, 127};
rightjoystick_deadzone = {1, 127};
lefttrigger_deadzone = {1, 127};
righttrigger_deadzone = {1, 127};
int lineCount = 0;
@ -298,26 +299,45 @@ void ParseInputConfig(const std::string game_id = "") {
continue;
} else if (output_string == "analog_deadzone") {
std::stringstream ss(input_string);
std::string device;
int deadzone;
std::getline(ss, device, ',');
ss >> deadzone;
if (ss.fail()) {
LOG_WARNING(Input, "Failed to parse deadzone config from line: {}", line);
std::string device, inner_deadzone_str, outer_deadzone_str;
if (!std::getline(ss, device, ',') || !std::getline(ss, inner_deadzone_str, ',') ||
!std::getline(ss, outer_deadzone_str)) {
LOG_WARNING(Input, "Malformed deadzone config at line {}: \"{}\"", lineCount, line);
continue;
} else {
LOG_DEBUG(Input, "Parsed deadzone: {} {}", device, deadzone);
}
if (device == "leftjoystick") {
leftjoystick_deadzone = deadzone;
} else if (device == "rightjoystick") {
rightjoystick_deadzone = deadzone;
} else if (device == "l2") {
lefttrigger_deadzone = deadzone;
} else if (device == "r2") {
righttrigger_deadzone = deadzone;
auto parseInt = [](const std::string& s) -> std::optional<int> {
try {
return std::stoi(s);
} catch (...) {
return std::nullopt;
}
};
auto inner_deadzone = parseInt(inner_deadzone_str);
auto outer_deadzone = parseInt(outer_deadzone_str);
if (!inner_deadzone || !outer_deadzone) {
LOG_WARNING(Input, "Invalid deadzone values at line {}: \"{}\"", lineCount, line);
continue;
}
std::pair<int, int> deadzone = {*inner_deadzone, *outer_deadzone};
static std::unordered_map<std::string, std::pair<int, int>&> deadzone_map = {
{"leftjoystick", leftjoystick_deadzone},
{"rightjoystick", rightjoystick_deadzone},
{"l2", lefttrigger_deadzone},
{"r2", righttrigger_deadzone},
};
if (auto it = deadzone_map.find(device); it != deadzone_map.end()) {
it->second = deadzone;
LOG_DEBUG(Input, "Parsed deadzone: {} {} {}", device, inner_deadzone_str,
outer_deadzone_str);
} else {
LOG_WARNING(Input, "Invalid axis name at line: {}, data: \"{}\", skipping line.",
LOG_WARNING(Input, "Invalid axis name at line {}: \"{}\", skipping line.",
lineCount, line);
}
continue;
@ -444,9 +464,14 @@ void ControllerOutput::AddUpdate(InputEvent event) {
}
} else if (axis != SDL_GAMEPAD_AXIS_INVALID) {
auto ApplyDeadzone = [](s8* value, int deadzone) {
if (std::abs(*value) <= deadzone) {
auto ApplyDeadzone = [](s16* value, std::pair<int, int> deadzone) {
if (std::abs(*value) <= deadzone.first || deadzone.first == deadzone.second) {
*value = 0;
} else {
*value = (*value >= 0 ? 1 : -1) *
std::clamp((int)((128.0 * (std::abs(*value) - deadzone.first)) /
(float)(deadzone.second - deadzone.first)),
0, 128);
}
};
switch (axis) {

View File

@ -220,10 +220,10 @@ void ControlSettings::SaveControllerConfig(bool CloseOnSave) {
lines.push_back("# Range of deadzones: 1 (almost none) to 127 (max)");
std::string deadzonevalue = std::to_string(ui->LeftDeadzoneSlider->value());
lines.push_back("analog_deadzone = leftjoystick, " + deadzonevalue);
lines.push_back("analog_deadzone = leftjoystick, " + deadzonevalue + ", 127");
deadzonevalue = std::to_string(ui->RightDeadzoneSlider->value());
lines.push_back("analog_deadzone = rightjoystick, " + deadzonevalue);
lines.push_back("analog_deadzone = rightjoystick, " + deadzonevalue + ", 127");
std::vector<std::string> save;
bool CurrentLineEmpty = false, LastLineEmpty = false;

View File

@ -167,9 +167,10 @@ You can find these here, with detailed comments, examples and suggestions for mo
You can make an input toggleable with this, for example: Let's say we want to be able to toggle l1 with t. You can then bind l1 to a key you won't use, like kpenter, then bind t to toggle that, so you will end up with this:
l1 = kpenter;
key_toggle = t, kpenter;
'analog_deadzone' = <device>, <value>;
value goes from 1 to 127 (no deadzone to max deadzone)
devices: leftjoystick, rightjoystick, l2, r2
'analog_deadzone' = <device>, <value>, <value>;
Values go from 1 to 127 (no deadzone to max deadzone), first is the inner, second is the outer deadzone
If you only want inner or outer deadzone, set the other to 1 or 127, respectively
Devices: leftjoystick, rightjoystick, l2, r2
)";
}
};

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="sv_SE">
<!-- SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
<!-- SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
SPDX-License-Identifier: GPL-2.0-or-later -->
<context>
<name>AboutDialog</name>
@ -210,7 +210,7 @@
</message>
<message>
<source>Incompatibility Notice</source>
<translation>Inkompatibilitetsmeddelande</translation>
<translation>Meddelande om inkompatibilitet</translation>
</message>
<message>
<source>Failed to open file:</source>
@ -386,6 +386,30 @@
<source>Unable to open compatibility.json for writing.</source>
<translation>Kunde inte öppna compatibility.json för skrivning.</translation>
</message>
<message>
<source>Unknown</source>
<translation>Okänt</translation>
</message>
<message>
<source>Nothing</source>
<translation>Ingenting</translation>
</message>
<message>
<source>Boots</source>
<translation>Startar upp</translation>
</message>
<message>
<source>Menus</source>
<translation>Menyer</translation>
</message>
<message>
<source>Ingame</source>
<translation>Problem</translation>
</message>
<message>
<source>Playable</source>
<translation>Spelbart</translation>
</message>
</context>
<context>
<name>ElfViewer</name>
@ -756,7 +780,7 @@
</message>
<message>
<source>Open shadPS4 Folder</source>
<translation>Open shadPS4 Folder</translation>
<translation>Öppna shadPS4-mapp</translation>
</message>
<message>
<source>Exit</source>
@ -788,7 +812,7 @@
</message>
<message>
<source>Medium</source>
<translation>Medel</translation>
<translation>Medelstora</translation>
</message>
<message>
<source>Large</source>
@ -828,7 +852,7 @@
</message>
<message>
<source>File</source>
<translation>Arkiv</translation>
<translation>Fil</translation>
</message>
<message>
<source>View</source>
@ -860,19 +884,19 @@
</message>
<message>
<source>Dark</source>
<translation>Mörk</translation>
<translation>Mörkt</translation>
</message>
<message>
<source>Light</source>
<translation>Ljus</translation>
<translation>Ljust</translation>
</message>
<message>
<source>Green</source>
<translation>Grön</translation>
<translation>Grönt</translation>
</message>
<message>
<source>Blue</source>
<translation>Blå</translation>
<translation>Blått</translation>
</message>
<message>
<source>Violet</source>
@ -880,7 +904,7 @@
</message>
<message>
<source>toolBar</source>
<translation>toolBar</translation>
<translation>Verktygsrad</translation>
</message>
<message>
<source>Game List</source>
@ -1084,6 +1108,10 @@
<source>Show Splash</source>
<translation>Visa startskärm</translation>
</message>
<message>
<source>ps4proCheckBox</source>
<translation>Är PS4 Pro:\nGör att emulatorn agerar som en PS4 PRO, vilket kan aktivera speciella funktioner i spel som har stöd för det</translation>
</message>
<message>
<source>Enable Discord Rich Presence</source>
<translation>Aktivera Discord Rich Presence</translation>
@ -1098,7 +1126,7 @@
</message>
<message>
<source>Trophy</source>
<translation>Trofé</translation>
<translation>Troféer</translation>
</message>
<message>
<source>Logger</source>
@ -1122,15 +1150,15 @@
</message>
<message>
<source>Cursor</source>
<translation>Pekare</translation>
<translation>Muspekare</translation>
</message>
<message>
<source>Hide Cursor</source>
<translation>Dölj pekare</translation>
<translation>Dölj muspekare</translation>
</message>
<message>
<source>Hide Cursor Idle Timeout</source>
<translation>Dölj pekare vid overksam</translation>
<translation>Dölj muspekare vid overksam</translation>
</message>
<message>
<source>s</source>
@ -1174,7 +1202,7 @@
</message>
<message>
<source>Advanced</source>
<translation type="vanished">Avancerat</translation>
<translation>Avancerat</translation>
</message>
<message>
<source>Enable Shaders Dumping</source>
@ -1222,23 +1250,23 @@
</message>
<message>
<source>Enable Crash Diagnostics</source>
<translation>Enable Crash Diagnostics</translation>
<translation>Aktivera kraschdiagnostik</translation>
</message>
<message>
<source>Collect Shaders</source>
<translation>Collect Shaders</translation>
<translation>Samla shaders</translation>
</message>
<message>
<source>Copy GPU Buffers</source>
<translation>Copy GPU Buffers</translation>
<translation>Kopiera GPU-buffertar</translation>
</message>
<message>
<source>Host Debug Markers</source>
<translation>Host Debug Markers</translation>
<translation>Felsökningsmarkörer för värd</translation>
</message>
<message>
<source>Guest Debug Markers</source>
<translation>Guest Debug Markers</translation>
<translation>Felsökningsmarkörer för gäst</translation>
</message>
<message>
<source>Update</source>
@ -1262,7 +1290,7 @@
</message>
<message>
<source>Title Music</source>
<translation>Title Music</translation>
<translation>Titelmusik</translation>
</message>
<message>
<source>Disable Trophy Pop-ups</source>
@ -1310,7 +1338,7 @@
</message>
<message>
<source>Point your mouse at an option to display its description.</source>
<translation>Peka din mus ett alternativ för att visa dess beskrivning.</translation>
<translation>Flytta muspekaren till ett alternativ för att visa dess beskrivning.</translation>
</message>
<message>
<source>consoleLanguageGroupBox</source>
@ -1465,25 +1493,25 @@
<translation>Aktivera RenderDoc-felsökning:\nOm aktiverad kommer emulatorn att tillhandahålla kompatibilitet med Renderdoc för att tillåta fångst och analys för aktuell renderad bildruta</translation>
</message>
<message>
<source>collectShaderCheckBox</source>
<translation>Collect Shaders:\nYou need this enabled to edit shaders with the debug menu (Ctrl + F10).</translation>
</message>
<message>
<source>crashDiagnosticsCheckBox</source>
<translation>Crash Diagnostics:\nCreates a .yaml file with info about the Vulkan state at the time of crashing.\nUseful for debugging 'Device lost' errors. If you have this enabled, you should enable Host AND Guest Debug Markers.\nDoes not work on Intel GPUs.\nYou need Vulkan Validation Layers enabled and the Vulkan SDK for this to work.</translation>
</message>
<message>
<source>copyGPUBuffersCheckBox</source>
<translation>Copy GPU Buffers:\nGets around race conditions involving GPU submits.\nMay or may not help with PM4 type 0 crashes.</translation>
</message>
<message>
<source>hostMarkersCheckBox</source>
<translation>Host Debug Markers:\nInserts emulator-side information like markers for specific AMDGPU commands around Vulkan commands, as well as giving resources debug names.\nIf you have this enabled, you should enable Crash Diagnostics.\nUseful for programs like RenderDoc.</translation>
</message>
<message>
<source>guestMarkersCheckBox</source>
<translation>Guest Debug Markers:\nInserts any debug markers the game itself has added to the command buffer.\nIf you have this enabled, you should enable Crash Diagnostics.\nUseful for programs like RenderDoc.</translation>
</message>
<source>collectShaderCheckBox</source>
<translation>Samla shaders:\nDu behöver aktivera detta för att redigera shaders med felsökningsmenyn (Ctrl + F10)</translation>
</message>
<message>
<source>crashDiagnosticsCheckBox</source>
<translation>Krashdiagnostik:\nSkapar en .yaml-fil med information om Vulkan-tillståndet vid tid för kraschen.\nAnvändbart för felsökning av &apos;Device lost&apos;-fel. Om du har aktiverat detta bör du aktivera felsökningsmarkörer för Värd OCH Gäst.\nFungerar inte Intel GPUer.\nDu behöver aktivera Vulkan Validation Layers och Vulkan SDK för att detta ska fungera</translation>
</message>
<message>
<source>copyGPUBuffersCheckBox</source>
<translation>Kopiera GPU-buffertar:\nGör att man kan komma runt race conditions som involverar GPU submits.\nKan eller kan inte hjälpa med PM4 type 0-kraschar</translation>
</message>
<message>
<source>hostMarkersCheckBox</source>
<translation>Felsökningsmarkörer för värd:\nInfogar informationsliknande markörer i emulatorn för specifika AMDGPU-kommandon runt Vulkan-kommandon, väl som ger resurser felsökningsnamn.\nOm du har detta aktiverat bör du aktivera Kraschdiagnostik.\nAnvändbart för program som RenderDoc</translation>
</message>
<message>
<source>guestMarkersCheckBox</source>
<translation>Felsökningsmarkörer för gäst:\nInfogar felsökningsmarkörer som själva spelet har lagt till i kommandobufferten.\nOm du har aktiverat detta bör du aktivera Kraschdiagnostik.\nAnvändbart för program som RenderDoc</translation>
</message>
<message>
<source>Release</source>
<translation>Release</translation>
@ -1540,6 +1568,10 @@
<source>browseButton</source>
<translation>Bläddra:\nBläddra efter en mapp att ställa in som sökväg för sparat data</translation>
</message>
<message>
<source>GUI</source>
<translation>Gränssnitt</translation>
</message>
</context>
<context>
<name>TrophyViewer</name>

View File

@ -54,6 +54,14 @@
<source>Select which directory you want to install to.</source>
<translation>Виберіть папку, до якої ви хочете встановити.</translation>
</message>
<message>
<source>Install All Queued to Selected Folder</source>
<translation>Встановити все з черги до вибраної папки</translation>
</message>
<message>
<source>Delete PKG File on Install</source>
<translation>Видалити файл PKG під час встановлення</translation>
</message>
</context>
<context>
<name>GameInstallDialog</name>
@ -102,15 +110,19 @@
</message>
<message>
<source>Open Game Folder</source>
<translation>Відкрити папку з грою</translation>
<translation>Відкрити папку гри</translation>
</message>
<message>
<source>Open Update Folder</source>
<translation>Відкрити папку оновлень</translation>
</message>
<message>
<source>Open Save Data Folder</source>
<translation>Відкрити Папку Збережених Даних</translation>
<translation>Відкрити папку збережень гри</translation>
</message>
<message>
<source>Open Log Folder</source>
<translation>Відкрити Папку Логів</translation>
<translation>Відкрити папку логів</translation>
</message>
<message>
<source>Copy info...</source>
@ -118,19 +130,27 @@
</message>
<message>
<source>Copy Name</source>
<translation>Копіювати Імя</translation>
<translation>Копіювати назву гри</translation>
</message>
<message>
<source>Copy Serial</source>
<translation>Копіювати серійний номер</translation>
</message>
<message>
<source>Copy Version</source>
<translation>Копіювати версію</translation>
</message>
<message>
<source>Copy Size</source>
<translation>Копіювати розмір</translation>
</message>
<message>
<source>Copy All</source>
<translation>Копіювати все</translation>
</message>
<message>
<source>Delete...</source>
<translation>Видалення...</translation>
<translation>Видалити...</translation>
</message>
<message>
<source>Delete Game</source>
@ -140,25 +160,29 @@
<source>Delete Update</source>
<translation>Видалити оновлення</translation>
</message>
<message>
<source>Delete Save Data</source>
<translation>Видалити збереження</translation>
</message>
<message>
<source>Delete DLC</source>
<translation>Видалити DLC</translation>
</message>
<message>
<source>Compatibility...</source>
<translation>Compatibility...</translation>
<translation>Сумісність...</translation>
</message>
<message>
<source>Update database</source>
<translation>Update database</translation>
<translation>Оновити базу даних</translation>
</message>
<message>
<source>View report</source>
<translation>View report</translation>
<translation>Переглянути звіт</translation>
</message>
<message>
<source>Submit a report</source>
<translation>Submit a report</translation>
<translation>Створити звіт</translation>
</message>
<message>
<source>Shortcut creation</source>
@ -182,7 +206,7 @@
</message>
<message>
<source>Game</source>
<translation>Ігри</translation>
<translation>гри</translation>
</message>
<message>
<source>requiresEnableSeparateUpdateFolder_MSG</source>
@ -192,10 +216,22 @@
<source>This game has no update to delete!</source>
<translation>Ця гра не має оновлень для видалення!</translation>
</message>
<message>
<source>This game has no update folder to open!</source>
<translation>Ця гра не має папки оновленнь, щоб відкрити її!</translation>
</message>
<message>
<source>Update</source>
<translation>Оновлення</translation>
</message>
<message>
<source>This game has no save data to delete!</source>
<translation>Ця гра не містить збережень, які можна видалити!</translation>
</message>
<message>
<source>Save Data</source>
<translation>Збереження</translation>
</message>
<message>
<source>This game has no DLC to delete!</source>
<translation>Ця гра не має DLC для видалення!</translation>
@ -206,11 +242,11 @@
</message>
<message>
<source>Delete %1</source>
<translation>Видалити %1</translation>
<translation>Видалення %1</translation>
</message>
<message>
<source>Are you sure you want to delete %1's %2 directory?</source>
<translation>Ви впевнені, що хочете видалити папку %1 з папки %2??</translation>
<translation>Ви впевнені, що хочете видалити %1 з папки %2?</translation>
</message>
</context>
<context>
@ -229,7 +265,7 @@
</message>
<message>
<source>Check for Updates</source>
<translation>Перевити наявність оновлень</translation>
<translation>Перевірити наявність оновлень</translation>
</message>
<message>
<source>About shadPS4</source>
@ -249,7 +285,7 @@
</message>
<message>
<source>Open shadPS4 Folder</source>
<translation>Open shadPS4 Folder</translation>
<translation>Відкрити папку shadPS4</translation>
</message>
<message>
<source>Exit</source>
@ -297,15 +333,15 @@
</message>
<message>
<source>Elf Viewer</source>
<translation>Elf</translation>
<translation>Виконуваний файл</translation>
</message>
<message>
<source>Game Install Directory</source>
<translation>Каталог встановлення гри</translation>
<translation>Каталоги встановлення ігор та оновлень</translation>
</message>
<message>
<source>Download Cheats/Patches</source>
<translation>Завантажити Чити або Патчі</translation>
<translation>Завантажити Чити/Патчі</translation>
</message>
<message>
<source>Dump Game List</source>
@ -329,7 +365,7 @@
</message>
<message>
<source>Game List Icons</source>
<translation>Розмір значків списку игр</translation>
<translation>Розмір значків списку ігор</translation>
</message>
<message>
<source>Game List Mode</source>
@ -385,7 +421,7 @@
</message>
<message>
<source>Download Cheats For All Installed Games</source>
<translation>Завантажити чити для всіх встановлених ігор</translation>
<translation>Завантажити чити для усіх встановлених ігор</translation>
</message>
<message>
<source>Download Patches For All Games</source>
@ -397,7 +433,7 @@
</message>
<message>
<source>You have downloaded cheats for all the games you have installed.</source>
<translation>Ви завантажили чити для всіх встановлених ігор.</translation>
<translation>Ви завантажили чити для усіх встановлених ігор.</translation>
</message>
<message>
<source>Patches Downloaded Successfully!</source>
@ -417,7 +453,7 @@
</message>
<message>
<source>ELF files (*.bin *.elf *.oelf)</source>
<translation>Файл ELF (*.bin *.elf *.oelf)</translation>
<translation>Файли ELF (*.bin *.elf *.oelf)</translation>
</message>
<message>
<source>Game Boot</source>
@ -429,7 +465,7 @@
</message>
<message>
<source>PKG Extraction</source>
<translation>Видобуток PKG</translation>
<translation>Розпакування PKG</translation>
</message>
<message>
<source>Patch detected!</source>
@ -449,7 +485,7 @@
</message>
<message>
<source>Game is installed: </source>
<translation>Гра встановлена: </translation>
<translation>Встановлена гра: </translation>
</message>
<message>
<source>Would you like to install Patch: </source>
@ -461,7 +497,7 @@
</message>
<message>
<source>Would you like to install DLC: %1?</source>
<translation>Ви бажаєте встановити DLC: %1??</translation>
<translation>Ви бажаєте встановити DLC: %1?</translation>
</message>
<message>
<source>DLC already installed:</source>
@ -481,11 +517,11 @@
</message>
<message>
<source>Extracting PKG %1/%2</source>
<translation>Вилучення PKG %1/%2</translation>
<translation>Витягування PKG %1/%2</translation>
</message>
<message>
<source>Extraction Finished</source>
<translation>Вилучення завершено</translation>
<translation>Розпакування завершено</translation>
</message>
<message>
<source>Game successfully installed at %1</source>
@ -542,8 +578,16 @@
</message>
<message>
<source>Fullscreen Mode</source>
<translation>Режим Повноекранний</translation>
<translation>Тип повноекранного режиму</translation>
</message>
<message>
<source>Borderless</source>
<translation>Без рамок</translation>
</message>
<message>
<source>True</source>
<translation>Повний екран</translation>
</message>
<message>
<source>Enable Separate Update Folder</source>
<translation>Увімкнути окрему папку оновлень</translation>
@ -554,7 +598,7 @@
</message>
<message>
<source>Show Game Size In List</source>
<translation>Показати розмір гри в списку</translation>
<translation>Показати розмір гри у списку</translation>
</message>
<message>
<source>Show Splash</source>
@ -574,11 +618,11 @@
</message>
<message>
<source>Trophy Key</source>
<translation>Trophy Key</translation>
<translation>Ключ трофеїв</translation>
</message>
<message>
<source>Trophy</source>
<translation>Trophy</translation>
<translation>Трофеї</translation>
</message>
<message>
<source>Logger</source>
@ -588,6 +632,14 @@
<source>Log Type</source>
<translation>Тип логів</translation>
</message>
<message>
<source>async</source>
<translation>Асинхронний</translation>
</message>
<message>
<source>sync</source>
<translation>Синхронний</translation>
</message>
<message>
<source>Log Filter</source>
<translation>Фільтр логів</translation>
@ -614,7 +666,7 @@
</message>
<message>
<source>s</source>
<translation>s</translation>
<translation>сек</translation>
</message>
<message>
<source>Controller</source>
@ -622,14 +674,18 @@
</message>
<message>
<source>Back Button Behavior</source>
<translation>Поведінка кнопки назад</translation>
<translation>Перепризначення кнопки назад</translation>
</message>
<message>
<source>Enable Motion Controls</source>
<translation>Увімкнути керування рухом</translation>
</message>
<message>
<source>Graphics</source>
<translation>Графіка</translation>
</message>
<message>
<source>Gui</source>
<source>GUI</source>
<translation>Інтерфейс</translation>
</message>
<message>
@ -660,6 +716,10 @@
<source>Enable Shaders Dumping</source>
<translation>Увімкнути дамп шейдерів</translation>
</message>
<message>
<source>Auto Select</source>
<translation>Автовибір</translation>
</message>
<message>
<source>Enable NULL GPU</source>
<translation>Увімкнути NULL GPU</translation>
@ -678,8 +738,12 @@
</message>
<message>
<source>Remove</source>
<translation>Видалити</translation>
<translation>Вилучити</translation>
</message>
<message>
<source>Save Data Path</source>
<translation>Шлях до файлів збережень</translation>
</message>
<message>
<source>Debug</source>
<translation>Налагодження</translation>
@ -702,36 +766,45 @@
</message>
<message>
<source>Enable Crash Diagnostics</source>
<translation>Enable Crash Diagnostics</translation>
<translation>Увімкнути діагностику збоїв</translation>
</message>
<message>
<source>Collect Shaders</source>
<translation>Collect Shaders</translation>
<translation>Збирати шейдери</translation>
</message>
<message>
<source>Copy GPU Buffers</source>
<translation>Copy GPU Buffers</translation>
<translation>Копіювати буфери GPU</translation>
</message>
<message>
<source>Host Debug Markers</source>
<translation>Host Debug Markers</translation>
<translation>Хостові маркери налагодження</translation>
</message>
<message>
<source>Guest Debug Markers</source>
<translation>Guest Debug Markers</translation>
<translation>Гостьові маркери налагодження</translation>
</message>
<message>
<source>Update</source>
<translation>Оновлення</translation>
</message>
<message>
<source>Check for Updates at Startup</source>
<translation>Перевірка оновлень під час запуску</translation>
<translation>Перевіряти оновлення під час запуску</translation>
</message>
<message>
<source>Update Channel</source>
<translation>Канал оновлення</translation>
</message>
<message>
<source>Release</source>
<translation>Релізний</translation>
</message>
<message>
<source>Nightly</source>
<translation>Тестовий</translation>
</message>
<message>
<source>Check for Updates</source>
<translation>Перевірити оновлення</translation>
@ -742,31 +815,43 @@
</message>
<message>
<source>Title Music</source>
<translation>Title Music</translation>
<translation>Титульна музика</translation>
</message>
<message>
<source>Disable Trophy Pop-ups</source>
<translation>Disable Trophy Pop-ups</translation>
<translation>Вимкнути спливаючі вікна трофеїв</translation>
</message>
<message>
<source>Background Image</source>
<translation>Фонове зображення</translation>
</message>
<message>
<source>Show Background Image</source>
<translation>Показувати фонове зображення</translation>
</message>
<message>
<source>Opacity</source>
<translation>Непрозорість</translation>
</message>
<message>
<source>Play title music</source>
<translation>Програвати заголовну музику</translation>
<translation>Програвати титульну музику</translation>
</message>
<message>
<source>Update Compatibility Database On Startup</source>
<translation>Update Compatibility Database On Startup</translation>
<translation>Оновлення даних ігрової сумісності під час запуску</translation>
</message>
<message>
<source>Game Compatibility</source>
<translation>Game Compatibility</translation>
<translation>Сумісність з іграми</translation>
</message>
<message>
<source>Display Compatibility Data</source>
<translation>Display Compatibility Data</translation>
<translation>Відображати данні ігрової сумістністі</translation>
</message>
<message>
<source>Update Compatibility Database</source>
<translation>Update Compatibility Database</translation>
<translation>Оновити данні ігрової сумістності</translation>
</message>
<message>
<source>Volume</source>
@ -774,7 +859,7 @@
</message>
<message>
<source>Audio Backend</source>
<translation>Audio Backend</translation>
<translation>Аудіосистема</translation>
</message>
<message>
<source>Save</source>
@ -826,11 +911,11 @@
</message>
<message>
<source>userName</source>
<translation>Ім'я користувача:\nВстановіть ім'я користувача акаунта PS4. Це може відображатися в деяких іграх.</translation>
<translation>Ім'я користувача:\nВстановіть ім'я користувача акаунта PS4. Воно може відображатися в деяких іграх.</translation>
</message>
<message>
<source>TrophyKey</source>
<translation>Trophy Key:\nKey used to decrypt trophies. Must be obtained from your jailbroken console.\nMust contain only hex characters.</translation>
<translation>Ключ трофеїв:\nКлюч для розшифровки трофеїв. Може бути отриманий зі зламаної консолі.\овинен містити лише шістнадцяткові символи.</translation>
</message>
<message>
<source>logTypeGroupBox</source>
@ -842,19 +927,23 @@
</message>
<message>
<source>updaterGroupBox</source>
<translation>Оновлення:\nRelease: Офіційні версії, які випускаються щомісяця і можуть бути дуже старими, але вони більш надійні та перевірені.\nNightly: Версії для розробників, які мають усі найновіші функції та виправлення, але можуть містити помилки та є менш стабільними.</translation>
<translation>Оновлення:\nРелізний: Офіційні версії, які випускаються щомісяця і можуть бути дуже старими, але вони більш надійні та перевірені.\nТестовий: Версії для розробників, які мають усі найновіші функції та виправлення, але можуть містити помилки та є менш стабільними.</translation>
</message>
<message>
<source>GUIBackgroundImageGroupBox</source>
<translation>Фонове зображення:\nКерує непрозорістю фонового зображення гри.</translation>
</message>
<message>
<source>GUIMusicGroupBox</source>
<translation>Грати заголовну музику:\nВмикає відтворення спеціальної музики під час вибору гри в списку, якщо вона це підтримує.</translation>
<translation>Грати титульну музику:\nВмикає відтворення спеціальної музики під час вибору гри в списку, якщо вона це підтримує.</translation>
</message>
<message>
<source>disableTrophycheckBox</source>
<translation>Disable Trophy Pop-ups:\nDisable in-game trophy notifications. Trophy progress can still be tracked using the Trophy Viewer (right-click the game in the main window).</translation>
<translation>Вимкнути спливаючі вікна трофеїв:\nВимикає сповіщення про ігрові трофеї. Прогрес трофея все ще можна відстежувати за допомогою "Перегляд трофеїв" (клацніть правою кнопкою миші на грі у головному вікні).</translation>
</message>
<message>
<source>hideCursorGroupBox</source>
<translation>Приховувати курсор:\nВиберіть, коли курсор зникне:\nНіколи: Ви завжди будете бачити мишу.\ри бездіяльності: Встановіть час, через який курсор зникне в разі бездіяльності.\nЗавжди: Ви ніколи не будете бачити мишу.</translation>
<translation>Приховувати курсор:\nВиберіть, коли курсор зникатиме:\nНіколи: Курсор миші завжди буде видимий.\ри бездіяльності: Встановіть час, через який курсор зникне в разі бездіяльності.\nЗавжди: Курсор миші завжди буде прихований.</translation>
</message>
<message>
<source>idleTimeoutGroupBox</source>
@ -862,19 +951,19 @@
</message>
<message>
<source>backButtonBehaviorGroupBox</source>
<translation>Поведінка кнопки «Назад»:\nНалаштовує кнопку «Назад» контролера на емуляцію натискання на зазначену область на сенсорній панелі контролера PS4.</translation>
<translation>Перепризначення кнопки «Назад»:\nНалаштовує кнопку «Назад» контролера на емуляцію натискання на зазначену область на сенсорній панелі контролера PS4.</translation>
</message>
<message>
<source>enableCompatibilityCheckBox</source>
<translation>Display Compatibility Data:\nDisplays game compatibility information in table view. Enable "Update Compatibility On Startup" to get up-to-date information.</translation>
<translation>Відображати данні ігрової сумістністі:\nВідображає інформацію про сумісність ігор у вигляді таблиці. Увімкніть "Оновлення даних ігрової сумісності під час запуску" для отримання актуальної інформації.</translation>
</message>
<message>
<source>checkCompatibilityOnStartupCheckBox</source>
<translation>Update Compatibility On Startup:\nAutomatically update the compatibility database when shadPS4 starts.</translation>
<translation>Оновлення даних ігрової сумісності під час запуску:\nАвтоматично оновлює базу даних ігрової сумісності під час запуску shadPS4.</translation>
</message>
<message>
<source>updateCompatibilityButton</source>
<translation>Update Compatibility Database:\nImmediately update the compatibility database.</translation>
<translation>Оновити данні ігрової сумістності:\nНегайно оновить базу даних ігрової сумісності.</translation>
</message>
<message>
<source>Never</source>
@ -890,23 +979,23 @@
</message>
<message>
<source>Touchpad Left</source>
<translation>Тачпад ліворуч</translation>
<translation>Ліва сторона тачпаду</translation>
</message>
<message>
<source>Touchpad Right</source>
<translation>Тачпад праворуч</translation>
<translation>Права сторона тачпаду</translation>
</message>
<message>
<source>Touchpad Center</source>
<translation>Тачпад по центру </translation>
<translation>Середина тачпаду</translation>
</message>
<message>
<source>None</source>
<translation>Ні</translation>
<translation>Без змін</translation>
</message>
<message>
<source>graphicsAdapterGroupBox</source>
<translation>Графічний пристрій:\nУ системах із кількома GPU виберіть з випадаючого списку GPU, який буде використовувати емулятор,\nабо виберіть "Auto Select", щоб визначити його автоматично.</translation>
<translation>Графічний пристрій:\nУ системах із кількома GPU виберіть з випадаючого списку GPU, який буде використовувати емулятор,\nабо виберіть "Автовибір", щоб визначити його автоматично.</translation>
</message>
<message>
<source>resolutionLayout</source>
@ -926,7 +1015,7 @@
</message>
<message>
<source>gameFoldersBox</source>
<translation>Ігрові папки:\nСписок папок для перевірки встановлених ігор.</translation>
<translation>Ігрові папки:\nСписок папок, що скануватимуться для виявлення ігор.</translation>
</message>
<message>
<source>addFolderButton</source>
@ -934,7 +1023,7 @@
</message>
<message>
<source>removeFolderButton</source>
<translation>Видалити:\nВидалити папку зі списку.</translation>
<translation>Вилучити:\nВилучити папку зі списку.</translation>
</message>
<message>
<source>debugDump</source>
@ -954,30 +1043,38 @@
</message>
<message>
<source>collectShaderCheckBox</source>
<translation>Collect Shaders:\nYou need this enabled to edit shaders with the debug menu (Ctrl + F10).</translation>
<translation>Збирати шейдери:\nВам потрібно увімкнути цю опцію, щоб редагувати шейдери за допомогою меню налагодження (Ctrl + F10).</translation>
</message>
<message>
<source>crashDiagnosticsCheckBox</source>
<translation>Crash Diagnostics:\nCreates a .yaml file with info about the Vulkan state at the time of crashing.\nUseful for debugging 'Device lost' errors. If you have this enabled, you should enable Host AND Guest Debug Markers.\nDoes not work on Intel GPUs.\nYou need Vulkan Validation Layers enabled and the Vulkan SDK for this to work.</translation>
<translation>Діагностика збоїв:\nСтворює .yaml файл з інформацією про стан Vulkan на момент збою.\nКорисно для налагодження помилок 'Device lost'. Якщо у вас увімкнено цей параметр, вам слід увімкнути маркери налагодження Хоста ТА Гостя.\nНе працює на графічних процесорах Intel.\nДля цього вам потрібно увімкнути шари валідації Vulkan і мати Vulkan SDK.</translation>
</message>
<message>
<source>copyGPUBuffersCheckBox</source>
<translation>Copy GPU Buffers:\nGets around race conditions involving GPU submits.\nMay or may not help with PM4 type 0 crashes.</translation>
<translation>Копіювати буфери GPU:\озволяє обійти проблеми синхронізації, пов'язані з відправленням даних на GPU\nМоже як допомогти, так і не вплинути на збої типу PM4 (тип 0).</translation>
</message>
<message>
<source>hostMarkersCheckBox</source>
<translation>Host Debug Markers:\nInserts emulator-side information like markers for specific AMDGPU commands around Vulkan commands, as well as giving resources debug names.\nIf you have this enabled, you should enable Crash Diagnostics.\nUseful for programs like RenderDoc.</translation>
<translation>Хостові маркери налагодження:\одає інформацію емулятора, наприклад маркери для конкретних команд AMDGPU у Vulkan, також присвоює ресурсам налагоджувані назви.\nЯкщо ця опція увімкнена, рекомендується також активувати діагностику збоїв.\nКорисно для програм на кшталт RenderDoc.</translation>
</message>
<message>
<source>guestMarkersCheckBox</source>
<translation>Guest Debug Markers:\nInserts any debug markers the game itself has added to the command buffer.\nIf you have this enabled, you should enable Crash Diagnostics.\nUseful for programs like RenderDoc.</translation>
<translation>Гостьові маркери налагодження:\nВставляє налагоджувані маркери, які сама гра додала до командного буфера.\nЯкщо ця опція увімкнена, рекомендується також активувати діагностику збоїв.\nКорисно для програм на кшталт RenderDoc.</translation>
</message>
<message>
<source>saveDataBox</source>
<translation>Шлях до файлів збережень:\апка, де будуть зберігатися ігрові збереження.</translation>
</message>
<message>
<source>browseButton</source>
<translation>Вибрати:\nВиберіть папку для ігрових збережень.</translation>
</message>
</context>
<context>
<name>CheatsPatches</name>
<message>
<source>Cheats / Patches for </source>
<translation>Cheats / Patches for </translation>
<translation>Чити та Патчі для </translation>
</message>
<message>
<source>defaultTextEdit_MSG</source>
@ -1149,7 +1246,7 @@
</message>
<message>
<source>The game is in version: %1</source>
<translation>Гра у версії: %1</translation>
<translation>Версія гри: %1</translation>
</message>
<message>
<source>The downloaded patch only works on version: %1</source>
@ -1189,7 +1286,7 @@
</message>
<message>
<source>Name:</source>
<translation>Ім'я:</translation>
<translation>Назва:</translation>
</message>
<message>
<source>Can't apply cheats before the game is started</source>
@ -1212,7 +1309,7 @@
</message>
<message>
<source>Compatibility</source>
<translation>Compatibility</translation>
<translation>Сумісність</translation>
</message>
<message>
<source>Region</source>
@ -1240,43 +1337,43 @@
</message>
<message>
<source>Never Played</source>
<translation>Never Played</translation>
<translation>Ніколи не запускалась</translation>
</message>
<message>
<source>h</source>
<translation>h</translation>
<translation>год</translation>
</message>
<message>
<source>m</source>
<translation>m</translation>
<translation>хв</translation>
</message>
<message>
<source>s</source>
<translation>s</translation>
<translation>сек</translation>
</message>
<message>
<source>Compatibility is untested</source>
<translation>Compatibility is untested</translation>
<translation>Сумісність не перевірена</translation>
</message>
<message>
<source>Game does not initialize properly / crashes the emulator</source>
<translation>Game does not initialize properly / crashes the emulator</translation>
<translation>Гра не ініціалізується належним чином або спричиняє збій емулятора.</translation>
</message>
<message>
<source>Game boots, but only displays a blank screen</source>
<translation>Game boots, but only displays a blank screen</translation>
<translation>Гра запускається, але відображає лише чорний екран.</translation>
</message>
<message>
<source>Game displays an image but does not go past the menu</source>
<translation>Game displays an image but does not go past the menu</translation>
<translation>Гра відображає зображення, але не проходить далі меню.</translation>
</message>
<message>
<source>Game has game-breaking glitches or unplayable performance</source>
<translation>Game has game-breaking glitches or unplayable performance</translation>
<translation>У грі є критичні баги або погана продуктивність</translation>
</message>
<message>
<source>Game can be completed with playable performance and no major glitches</source>
<translation>Game can be completed with playable performance and no major glitches</translation>
<translation>Гру можна пройти з хорошою продуктивністю та без серйозних глюків.</translation>
</message>
</context>
<context>
@ -1303,7 +1400,7 @@
</message>
<message>
<source>Invalid release data.</source>
<translation>Неприпустимі дані релізу.</translation>
<translation>Некоректні дані про випуск.</translation>
</message>
<message>
<source>No download URL found for the specified asset.</source>
@ -1311,7 +1408,7 @@
</message>
<message>
<source>Your version is already up to date!</source>
<translation>Вашу версію вже оновлено!</translation>
<translation>У вас актуальна версія!</translation>
</message>
<message>
<source>Update Available</source>
@ -1386,23 +1483,74 @@
<name>GameListUtils</name>
<message>
<source>B</source>
<translation>B</translation>
<translation>Б</translation>
</message>
<message>
<source>KB</source>
<translation>KB</translation>
<translation>КБ</translation>
</message>
<message>
<source>MB</source>
<translation>MB</translation>
<translation>MБ</translation>
</message>
<message>
<source>GB</source>
<translation>GB</translation>
<translation>ГБ</translation>
</message>
<message>
<source>TB</source>
<translation>TB</translation>
<translation>ТБ</translation>
</message>
</context>
<context>
<name>CompatibilityInfoClass</name>
<message>
<source>Fetching compatibility data, please wait</source>
<translation>Отримання даних про сумісність. Будь ласка, зачекайте</translation>
</message>
<message>
<source>Cancel</source>
<translation>Відмінити</translation>
</message>
<message>
<source>Loading...</source>
<translation>Завантаження...</translation>
</message>
<message>
<source>Error</source>
<translation>Помилка</translation>
</message>
<message>
<source>Unable to update compatibility data! Try again later.</source>
<translation>Не вдалося оновити дані про сумісність! Спробуйте ще раз пізніше.</translation>
</message>
<message>
<source>Unable to open compatibility.json for writing.</source>
<translation>Не вдалося відкрити файл compatibility.json для запису.</translation>
</message>
<message>
<source>Unknown</source>
<translation>Невідомо</translation>
</message>
<message>
<source>Nothing</source>
<translation>Не працює</translation>
</message>
<message>
<source>Boots</source>
<translation>Запускається</translation>
</message>
<message>
<source>Menus</source>
<translation>У меню</translation>
</message>
<message>
<source>Ingame</source>
<translation>У грі</translation>
</message>
<message>
<source>Playable</source>
<translation>Іграбельно</translation>
</message>
</context>
</TS>