From 3ba286a01698e0c08eaff8ecf18f469b850b7a4f Mon Sep 17 00:00:00 2001 From: cy33hc Date: Sat, 30 May 2026 19:34:11 -0700 Subject: [PATCH] add ability to use R2 button to refresh files --- ps4-ezremote-server | 2 +- source/installer.cpp | 7 +++++++ source/main.cpp | 2 +- source/windows.cpp | 15 +++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ps4-ezremote-server b/ps4-ezremote-server index 59739ac..fe5d44a 160000 --- a/ps4-ezremote-server +++ b/ps4-ezremote-server @@ -1 +1 @@ -Subproject commit 59739ac76509d2205bd93d3bc43bbedbcb647971 +Subproject commit fe5d44ae1a779433ef851e93c3a3a05839faf11e diff --git a/source/installer.cpp b/source/installer.cpp index b646f7f..9889c42 100644 --- a/source/installer.cpp +++ b/source/installer.cpp @@ -1266,6 +1266,13 @@ namespace INSTALLER struct sockaddr_in sockaddr_in; unsigned short server_port = 9090; + /* + if (EzRemoteServerVersion().empty()) + { + return 0; + } + */ + filefd = open(SERVER_ELF_PATH, O_RDONLY); if (filefd == -1) { diff --git a/source/main.cpp b/source/main.cpp index 46d6ba7..091dcec 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -294,7 +294,7 @@ int main() if (sceSysmoduleLoadModuleInternal(ORBIS_SYSMODULE_INTERNAL_AUDIOOUT) < 0 || sceAudioOutInit() != 0) return 0; if (sceSysmoduleLoadModuleInternal(ORBIS_SYSMODULE_INTERNAL_NET) < 0 || sceNetInit() != 0) return 0; - sceNetPoolCreate("simple", NET_HEAP_SIZE, 0); + sceNetPoolCreate("ezremote_client", NET_HEAP_SIZE, 0); if (INSTALLER::Init() < 0) return 0; diff --git a/source/windows.cpp b/source/windows.cpp index b0a820a..8217299 100644 --- a/source/windows.cpp +++ b/source/windows.cpp @@ -909,6 +909,21 @@ namespace Windows } } } + + if (ImGui::IsKeyPressed(ImGuiKey_D) && !paused) + { + if (selected_browser & LOCAL_BROWSER) + { + selected_action = ACTION_REFRESH_LOCAL_FILES; + } + else if (selected_browser & REMOTE_BROWSER) + { + if (remoteclient != nullptr && remote_files.size() > 0) + { + selected_action = ACTION_REFRESH_REMOTE_FILES; + } + } + } } void StatusPanel()