Replace Path::ToVisualString with GetFriendlyPath which shortens. Much better on iOS

This commit is contained in:
Henrik Rydgård committed 2026-02-13 21:16:00 +01:00
1 parent 7e464a8813
commit 1846163985
8 files changed
+12 -9

No files matched your search

+2 -1
View File
@@ -36,6 +36,7 @@
#include "Common/System/System.h"
#include "Common/System/OSD.h"
#include "Core/Util/RecentFiles.h"
#include "Core/Util/PathUtil.h"
#include "Core/Config.h"
#include "Core/Debugger/WebSocket.h"
#include "Core/WebServer.h"
@@ -407,7 +408,7 @@ static bool ServeAssetFile(const http::ServerRequest &request) {
// This is a gross, gross hack to have here in ServeAssetFile, but oh well.
if (mimeType == "text/html") {
if (html.find("<!--upload-->") != std::string::npos) {
std::string uploadPath = g_uploadPath.ToVisualString();
std::string uploadPath = GetFriendlyPath(g_uploadPath);
std::string deviceName = System_GetProperty(SYSPROP_NAME);
std::string computerName = System_GetProperty(SYSPROP_COMPUTER_NAME);
if (!computerName.empty()) {