From 49f535dfded7e04af24eba33fd012fa66cc57b7e Mon Sep 17 00:00:00 2001 From: Chee Yee Date: Sun, 16 Jun 2024 21:19:02 -0700 Subject: [PATCH] set the proper start time when overwrite prompt --- CMakeLists.txt | 2 +- source/actions.cpp | 5 +++++ source/installer.cpp | 1 + source/windows.cpp | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2307474..93deb25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,7 +67,7 @@ add_executable(ezremote_client add_self(ezremote_client) -add_pkg(ezremote_client ${CMAKE_SOURCE_DIR}/data "RMTC00001" "ezRemote Client" "01.25" 32 0) +add_pkg(ezremote_client ${CMAKE_SOURCE_DIR}/data "RMTC00001" "ezRemote Client" "01.26" 32 0) target_link_libraries(ezremote_client c diff --git a/source/actions.cpp b/source/actions.cpp index 1252a65..3ddd5b3 100644 --- a/source/actions.cpp +++ b/source/actions.cpp @@ -364,6 +364,7 @@ namespace Actions if (confirm_state == CONFIRM_YES) { + sceRtcGetCurrentTick(&prev_tick); return remoteclient->Put(src, dest); } @@ -487,6 +488,7 @@ namespace Actions int DownloadFile(const char *src, const char *dest) { bytes_transfered = 0; + sceRtcGetCurrentTick(&prev_tick); if (!remoteclient->Size(src, &bytes_to_download)) { remoteclient->Quit(); @@ -518,6 +520,7 @@ namespace Actions if (confirm_state == CONFIRM_YES) { + sceRtcGetCurrentTick(&prev_tick); return remoteclient->Get(dest, src); } @@ -1339,6 +1342,7 @@ namespace Actions if (confirm_state == CONFIRM_YES) { + sceRtcGetCurrentTick(&prev_tick); if (isCopy) return FS::Copy(src, dest); else @@ -1541,6 +1545,7 @@ namespace Actions if (confirm_state == CONFIRM_YES) { + sceRtcGetCurrentTick(&prev_tick); if (isCopy) return remoteclient->Copy(src, dest); else diff --git a/source/installer.cpp b/source/installer.cpp index 3cd6112..fea1303 100644 --- a/source/installer.cpp +++ b/source/installer.cpp @@ -491,6 +491,7 @@ namespace INSTALLER file_transfering = true; bytes_to_download = 100; bytes_transfered = 0; + sceRtcGetCurrentTick(&prev_tick); while (!completed) { diff --git a/source/windows.cpp b/source/windows.cpp index 5966213..6a5cb3b 100644 --- a/source/windows.cpp +++ b/source/windows.cpp @@ -1417,7 +1417,7 @@ namespace Windows progress = bytes_transfered * 1.0f / (float)bytes_to_download; transfer_speed = (bytes_transfered * 1.0f / tick_delta) / 1048576.0f; - sprintf(progress_text, "%.2fMB/s", transfer_speed); + sprintf(progress_text, "%.2f MB/s", transfer_speed); ImGui::ProgressBar(progress, ImVec2(625, 0), progress_text); }