Replace \ with / for path
This commit is contained in:
parent
865d7ace3d
commit
38db02437c
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
#include "framework.h"
|
#include "framework.h"
|
||||||
#include <condition_variable>
|
#include <condition_variable>
|
||||||
|
#include <filesystem>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <queue>
|
#include <queue>
|
||||||
|
|
||||||
@ -11,6 +12,8 @@
|
|||||||
#include "user_info.h"
|
#include "user_info.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
namespace fs = std::filesystem;
|
||||||
|
|
||||||
// Defined in rpc_server.cpp
|
// Defined in rpc_server.cpp
|
||||||
extern bool gIsListening, gIsListeningPyq;
|
extern bool gIsListening, gIsListeningPyq;
|
||||||
extern mutex gMutex;
|
extern mutex gMutex;
|
||||||
@ -125,12 +128,14 @@ void DispatchMsg(DWORD reg)
|
|||||||
|
|
||||||
wxMsg.thumb = GetStringByStrAddr(reg + g_WxCalls.recvMsg.thumb);
|
wxMsg.thumb = GetStringByStrAddr(reg + g_WxCalls.recvMsg.thumb);
|
||||||
if (!wxMsg.thumb.empty()) {
|
if (!wxMsg.thumb.empty()) {
|
||||||
wxMsg.thumb = GetHomePath() + wxMsg.thumb;
|
wxMsg.thumb = fs::path(GetHomePath() + wxMsg.thumb).make_preferred().string();
|
||||||
|
replace(wxMsg.thumb.begin(), wxMsg.thumb.end(), '\\', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
wxMsg.extra = GetStringByStrAddr(reg + g_WxCalls.recvMsg.extra);
|
wxMsg.extra = GetStringByStrAddr(reg + g_WxCalls.recvMsg.extra);
|
||||||
if (!wxMsg.extra.empty()) {
|
if (!wxMsg.extra.empty()) {
|
||||||
wxMsg.extra = GetHomePath() + wxMsg.extra;
|
wxMsg.extra = fs::path(GetHomePath() + wxMsg.extra).make_preferred().string();
|
||||||
|
replace(wxMsg.extra.begin(), wxMsg.extra.end(), '\\', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user