Skip to content

Commit a9846f7

Browse files
authored
Merge pull request #66 from rafaelvaloto/test-workflow
ignore .idea
2 parents 9a71199 + be09adc commit a9846f7

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

.github/workflows/manual.yml renamed to .github/workflows/protect-code.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
"ThirdParty/Sony/**"
3737
"Plugins/PlayStation5/**"
3838
"Platforms/PS5/**"
39+
"Sony/**"
3940
4041
# --- Block specific file types common to PlayStation SDKs ---
4142
"*.prx"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
/httpRequests/
1515
# Datasource local storage ignored files
1616
/dataSources/
17-
/dataSources.local.xml
17+
/dataSources.local.xml
18+
.idea

Source/WindowsDualsense_ds5w/Private/Core/Platforms/Linux/LinuxDeviceInfo.cpp

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,10 @@ void FLinuxDeviceInfo::Read(FDeviceContext* Context)
2323
if (Context->ConnectionType == Bluetooth && Context->DeviceType == EDeviceType::DualShock4)
2424
{
2525
const size_t InputReportLength = 547;
26-
if (sizeof(Context->BufferDS4) < InputReportLength)
27-
{
28-
UE_LOG(LogTemp, Error, TEXT("BufferDS4 é muito pequeno para o relatório de input."));
29-
InvalidateHandle(Context);
30-
return;
31-
}
32-
3326
BytesRead = hid_read(Context->Handle, Context->BufferDS4, InputReportLength);
3427
if (BytesRead < 0)
3528
{
36-
UE_LOG(LogTemp, Warning, TEXT("Failed to read from device (likely disconnected): %ls"), hid_error(Context->Handle));
29+
UE_LOG(LogTemp, Warning, TEXT("Failed to read from device (likely disconnected)"));
3730
InvalidateHandle(Context);
3831
}
3932
return;
@@ -50,7 +43,7 @@ void FLinuxDeviceInfo::Read(FDeviceContext* Context)
5043
BytesRead = hid_read(Context->Handle, Context->Buffer, InputReportLength);
5144
if (BytesRead < 0)
5245
{
53-
UE_LOG(LogTemp, Warning, TEXT("Failed to read from device (likely disconnected): %ls"), hid_error(Context->Handle));
46+
UE_LOG(LogTemp, Warning, TEXT("Failed to read from device (likely disconnected)"));
5447
InvalidateHandle(Context);
5548
}
5649
}
@@ -68,7 +61,7 @@ void FLinuxDeviceInfo::Write(FDeviceContext* Context)
6861
int BytesWritten = hid_write(Context->Handle, Context->BufferOutput, OutputReportLength);
6962
if (BytesWritten < 0)
7063
{
71-
UE_LOG(LogTemp, Error, TEXT("Failed to write to device: %ls"), hid_error(Context->Handle));
64+
UE_LOG(LogTemp, Error, TEXT("Failed to write to device"));
7265
InvalidateHandle(Context);
7366
}
7467
}
@@ -142,7 +135,7 @@ bool FLinuxDeviceInfo::CreateHandle(FDeviceContext* Context)
142135

143136
if (Handle == INVALID_PLATFORM_HANDLE)
144137
{
145-
UE_LOG(LogTemp, Error, TEXT("HIDManager: Failed to open device handle for the DualSense."), *Context->Path, hid_error(Handle));
138+
UE_LOG(LogTemp, Error, TEXT("HIDManager: Failed to open device handle for the DualSense."));
146139
return false;
147140
}
148141

WindowsDualsense_ds5w.uplugin

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,17 @@
1212
"CanContainContent": false,
1313
"IsBetaVersion": false,
1414
"Installed": true,
15-
"EnabledByDefault": false,
15+
"EnabledByDefault": true,
1616
"RequiresBuildPlatform": true,
17-
"EngineVersion": "5.2.0",
17+
"EngineVersion": "5.6.0",
1818
"Modules": [
1919
{
2020
"Name": "WindowsDualsense_ds5w",
2121
"Type": "Runtime",
2222
"LoadingPhase": "PreDefault",
2323
"PlatformAllowList": [
24-
"Win64"
24+
"Win64",
25+
"Linux"
2526
]
2627
}
2728
]

0 commit comments

Comments
 (0)