add ability to use R2 button to refresh files

This commit is contained in:
cy33hc
2026-05-30 19:34:11 -07:00
parent 7395056a75
commit 3ba286a016
4 changed files with 24 additions and 2 deletions
+7
View File
@@ -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)
{
+1 -1
View File
@@ -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;
+15
View File
@@ -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()