From 54bbd1093b1ac7d1142c4583e345350981bc5aad Mon Sep 17 00:00:00 2001 From: Andrew Eikum Date: Mon, 17 Jun 2019 13:05:41 -0500 Subject: [PATCH] lsteamclient: Convert file: URLs --- lsteamclient/gen_wrapper.py | 141 ++++++++++++++++++++++++- lsteamclient/steamclient_main.c | 38 ++++++- lsteamclient/steamclient_private.h | 4 +- lsteamclient/struct_converters_132.cpp | 6 +- lsteamclient/struct_converters_144.cpp | 40 ++++--- lsteamclient/winISteamAppList.c | 2 +- lsteamclient/winISteamApps.c | 10 +- lsteamclient/winISteamController.c | 2 +- lsteamclient/winISteamHTMLSurface.c | 20 +++- lsteamclient/winISteamRemoteStorage.c | 104 +++++++++--------- lsteamclient/winISteamScreenshots.c | 16 +-- lsteamclient/winISteamUGC.c | 121 ++++++++++++--------- lsteamclient/winISteamUser.c | 20 ++-- lsteamclient/winISteamUtils.c | 10 +- 14 files changed, 370 insertions(+), 164 deletions(-) diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 3d7ec5b2..ab4eb760 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -213,179 +213,301 @@ path_conversions = [ "parent_name": "GetAppInstallDir", "l2w_names": ["pchDirectory"], "l2w_lens": ["cchNameMax"], + "l2w_urls": [False], "w2l_names": [], "w2l_arrays": [], + "w2l_urls": [], "return_is_size": True }, { "parent_name": "GetAppInstallDir", "l2w_names": ["pchFolder"], "l2w_lens": ["cchFolderBufferSize"], + "l2w_urls": [False], "w2l_names": [], "w2l_arrays": [], + "w2l_urls": [], "return_is_size": True }, { "parent_name": "GetFileDetails", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pszFileName"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": True }, { "parent_name": "GetGlyphForActionOrigin", "l2w_names": [None], #return value "l2w_lens": [None], + "l2w_urls": [None], "w2l_names": [], "w2l_arrays": [], + "w2l_urls": [], "return_is_size": False }, ### ISteamGameServer::SetModDir - "Just the folder name, not the whole path. I.e. "Spacewar"." + { + "parent_name": "LoadURL", + "l2w_names": [], + "l2w_lens": [], + "l2w_urls": [], + "w2l_names": ["pchURL"], + "w2l_arrays": [False], + "w2l_urls": [True], + "return_is_size": False + }, { "parent_name": "FileLoadDialogResponse", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchSelectedFiles"], "w2l_arrays": [True], + "w2l_urls": [False], + "return_is_size": False + }, + { + "parent_name": "HTML_StartRequest_t", + "l2w_names": ["pchURL"], + "l2w_lens": [None], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], + "return_is_size": False + }, + { + "parent_name": "HTML_URLChanged_t", + "l2w_names": ["pchURL"], + "l2w_lens": [None], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], + "return_is_size": False + }, + { + "parent_name": "HTML_FinishedRequest_t", + "l2w_names": ["pchURL"], + "l2w_lens": [None], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], + "return_is_size": False + }, + { + "parent_name": "HTML_OpenLinkInNewTab_t", + "l2w_names": ["pchURL"], + "l2w_lens": [None], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], + "return_is_size": False + }, + { + "parent_name": "HTML_LinkAtPosition_t", + "l2w_names": ["pchURL"], + "l2w_lens": [None], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], "return_is_size": False }, { "parent_name": "HTML_FileOpenDialog_t", "l2w_names": ["pchInitialFile"], "l2w_lens": [None], + "l2w_urls": [True], "w2l_names": [], "w2l_arrays": [], + "w2l_urls": [], + "return_is_size": False + }, + { + "parent_name": "HTML_NewWindow_t", + "l2w_names": ["pchURL"], + "l2w_lens": [None], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], "return_is_size": False }, - ### XXX: some URLs could be file: protocol { "parent_name": "PublishWorkshopFile", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchFile", "pchPreviewFile"], "w2l_arrays": [False, False], + "w2l_urls": [False, False], "return_is_size": False }, { "parent_name": "UpdatePublishedFileFile", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchFile"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "UpdatePublishedFilePreviewFile", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchPreviewFile"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "PublishVideo", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchPreviewFile"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "AddScreenshotToLibrary", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchFilename", "pchThumbnailFilename"], "w2l_arrays": [False, False], + "w2l_urls": [False, False], "return_is_size": False }, { "parent_name": "AddVRScreenshotToLibrary", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchFilename", "pchVRFilename"], "w2l_arrays": [False, False], + "w2l_urls": [False, False], "return_is_size": False }, { "parent_name": "UGCDownloadToLocation", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchLocation"], "w2l_arrays": [False], + "w2l_urls": [False], + "return_is_size": False + }, + { + "parent_name": "GetQueryUGCAdditionalPreview", + "l2w_names": ["pchURLOrVideoID"], + "l2w_lens": ["cchURLSize"], + "l2w_urls": [True], + "w2l_names": [], + "w2l_arrays": [], + "w2l_urls": [], "return_is_size": False }, - ### is GetQueryUGCAdditionalPreview URL a file:? { "parent_name": "SetItemContent", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pszContentFolder"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "SetItemPreview", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pszPreviewFile"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "AddItemPreviewFile", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pszPreviewFile"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "UpdateItemPreviewFile", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pszPreviewFile"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "GetItemInstallInfo", "l2w_names": ["pchFolder"], "l2w_lens": ["cchFolderSize"], + "l2w_urls": [False], "w2l_names": [], "w2l_arrays": [], + "w2l_urls": [], "return_is_size": False }, { "parent_name": "BInitWorkshopForGameServer", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pszFolder"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "GetUserDataFolder", "l2w_names": ["pchBuffer"], "l2w_lens": ["cubBuffer"], + "l2w_urls": [False], "w2l_names": [], "w2l_arrays": [], + "w2l_urls": [], "return_is_size": False }, { "parent_name": "CheckFileSignature", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["szFileName"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False }, { "parent_name": "Init", "l2w_names": [], "l2w_lens": [], + "l2w_urls": [], "w2l_names": ["pchAbsolutePathToControllerConfigVDF"], "w2l_arrays": [False], + "w2l_urls": [False], "return_is_size": False } ] @@ -477,6 +599,11 @@ class DummyWriter(object): #noop pass +def to_c_bool(b): + if b: + return "1" + return "0" + dummy_writer = DummyWriter() def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, existing_methods): @@ -571,7 +698,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e pass else: cfile.write(" char lin_%s[PATH_MAX];\n" % path_conv["w2l_names"][i]) - cfile.write(" steamclient_dos_path_to_unix_path(%s, lin_%s);\n" % (path_conv["w2l_names"][i], path_conv["w2l_names"][i])) + cfile.write(" steamclient_dos_path_to_unix_path(%s, lin_%s, %s);\n" % (path_conv["w2l_names"][i], path_conv["w2l_names"][i], to_c_bool(path_conv["w2l_urls"][i]))) if None in path_conv["l2w_names"]: cfile.write(" const char *path_result;\n") elif path_conv["return_is_size"]: @@ -668,7 +795,7 @@ def handle_method(cfile, classname, winclassname, cppname, method, cpp, cpp_h, e cfile.write(" ") if path_conv["return_is_size"]: cfile.write("path_result = ") - cfile.write("steamclient_unix_path_to_dos_path(path_result, %s, %s, %s);\n" % (path_conv["l2w_names"][i], path_conv["l2w_names"][i], path_conv["l2w_lens"][i])) + cfile.write("steamclient_unix_path_to_dos_path(path_result, %s, %s, %s, %s);\n" % (path_conv["l2w_names"][i], path_conv["l2w_names"][i], path_conv["l2w_lens"][i], to_c_bool(path_conv["l2w_urls"][i]))) else: #string is in return value #ISteamController::GetGlyphForActionOrigin is the only user here for now @@ -980,7 +1107,11 @@ def handle_struct(sdkver, struct): struct_needs_conversion(m.type): cppfile.write(" %s_to_%s_struct_%s_%s(&%s->%s, &%s->%s);\n" % (src, dst, m.type.spelling, sdkver, src, m.displayname, dst, m.displayname)) elif path_conv and m.displayname in path_conv["l2w_names"]: - cppfile.write(" steamclient_unix_path_to_dos_path(1, %s->%s, g_tmppath, sizeof(g_tmppath));\n" % (src, m.displayname)) + for i in range(len(path_conv["l2w_names"])): + if path_conv["l2w_names"][i] == m.displayname: + url = path_conv["l2w_urls"][i] + break + cppfile.write(" steamclient_unix_path_to_dos_path(1, %s->%s, g_tmppath, sizeof(g_tmppath), %s);\n" % (src, m.displayname, to_c_bool(url))) cppfile.write(" %s->%s = g_tmppath;\n" % (dst, m.displayname)) else: cppfile.write(" %s->%s = %s->%s;\n" % (dst, m.displayname, src, m.displayname)) diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index 5db9fb1f..94dc6a09 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -39,19 +39,36 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved) } /* returns the number of bytes written to dst, not including the NUL terminator */ -unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes) +unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes, int is_url) { WCHAR *dosW; uint32 r; + static const char file_prot[] = "file://"; + if(!dst || !dst_bytes) return 0; - if(!src || !api_result){ + if(!src || !*src || !api_result){ *dst = 0; return 0; } + if(is_url){ + /* convert only file: URLs */ + if(strncmp(src, file_prot, 7) != 0){ + strcpy(dst, src); + return strlen(dst); + } + + src += 7; + memcpy(dst, file_prot, sizeof(file_prot)); + if(dst_bytes < sizeof(file_prot)) + return 0; + dst += 7; + dst_bytes -= 7; + } + dosW = wine_get_dos_file_name(src); *dst = 0; @@ -71,13 +88,26 @@ unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, #define IS_ABSOLUTE(x) (*x == '/' || *x == '\\' || (*x && *(x + 1) == ':')) /* returns non-zero on success, zero on failure */ -bool steamclient_dos_path_to_unix_path(const char *src, char *dst) +bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url) { + static const char file_prot[] = "file://"; + *dst = 0; if(!src || !*src) return 0; + if(is_url){ + if(strncmp(src, file_prot, 7) != 0){ + strcpy(dst, src); + return 1; + } + + src += 7; + memcpy(dst, file_prot, sizeof(file_prot)); + dst += 7; + } + if(IS_ABSOLUTE(src)){ /* absolute path, use wine conversion */ WCHAR srcW[PATH_MAX]; @@ -172,7 +202,7 @@ const char *steamclient_isteamcontroller_getglyph(int origin, const char *lin_pa if(!controller_glyphs[origin]) controller_glyphs[origin] = HeapAlloc(GetProcessHeap(), 0, PATH_MAX); - steamclient_unix_path_to_dos_path(1, lin_path, controller_glyphs[origin], PATH_MAX); + steamclient_unix_path_to_dos_path(1, lin_path, controller_glyphs[origin], PATH_MAX, 0); return controller_glyphs[origin]; } diff --git a/lsteamclient/steamclient_private.h b/lsteamclient/steamclient_private.h index 7099359b..64f32945 100644 --- a/lsteamclient/steamclient_private.h +++ b/lsteamclient/steamclient_private.h @@ -37,8 +37,8 @@ typedef struct __winISteamParties winISteamParties; typedef struct __winX winX; void *create_win_interface(const char *name, void *linux_side); -unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes); -bool steamclient_dos_path_to_unix_path(const char *src, char *dst); +unsigned int steamclient_unix_path_to_dos_path(bool api_result, const char *src, char *dst, uint32 dst_bytes, int is_url); +bool steamclient_dos_path_to_unix_path(const char *src, char *dst, int is_url); const char **steamclient_dos_to_unix_stringlist(const char **src); void steamclient_free_stringlist(const char **out); const char *steamclient_isteamcontroller_getglyph(int origin, const char *lin_path); diff --git a/lsteamclient/struct_converters_132.cpp b/lsteamclient/struct_converters_132.cpp index 72ca8ba0..a6a45027 100644 --- a/lsteamclient/struct_converters_132.cpp +++ b/lsteamclient/struct_converters_132.cpp @@ -169,7 +169,8 @@ struct winHTML_NewWindow_t_32 { void cb_HTML_NewWindow_t_32(const struct HTML_NewWindow_t *lin, struct winHTML_NewWindow_t_32 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->unX = lin->unX; win->unY = lin->unY; win->unWide = lin->unWide; @@ -181,7 +182,8 @@ void cb_HTML_NewWindow_t_32(const struct HTML_NewWindow_t *lin, struct winHTML_N void cb_HTML_NewWindow_t_24(const struct HTML_NewWindow_t *lin, struct winHTML_NewWindow_t_24 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->unX = lin->unX; win->unY = lin->unY; win->unWide = lin->unWide; diff --git a/lsteamclient/struct_converters_144.cpp b/lsteamclient/struct_converters_144.cpp index d9759f78..1659e4e0 100644 --- a/lsteamclient/struct_converters_144.cpp +++ b/lsteamclient/struct_converters_144.cpp @@ -889,7 +889,8 @@ struct winHTML_StartRequest_t_40 { void cb_HTML_StartRequest_t_40(const struct HTML_StartRequest_t *lin, struct winHTML_StartRequest_t_40 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->pchTarget = lin->pchTarget; win->pchPostData = lin->pchPostData; win->bIsRedirect = lin->bIsRedirect; @@ -900,7 +901,8 @@ void cb_HTML_StartRequest_t_40(const struct HTML_StartRequest_t *lin, struct win void cb_HTML_StartRequest_t_20(const struct HTML_StartRequest_t *lin, struct winHTML_StartRequest_t_20 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->pchTarget = lin->pchTarget; win->pchPostData = lin->pchPostData; win->bIsRedirect = lin->bIsRedirect; @@ -935,7 +937,8 @@ struct winHTML_URLChanged_t_48 { void cb_HTML_URLChanged_t_48(const struct HTML_URLChanged_t *lin, struct winHTML_URLChanged_t_48 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->pchPostData = lin->pchPostData; win->bIsRedirect = lin->bIsRedirect; win->pchPageTitle = lin->pchPageTitle; @@ -947,7 +950,8 @@ void cb_HTML_URLChanged_t_48(const struct HTML_URLChanged_t *lin, struct winHTML void cb_HTML_URLChanged_t_24(const struct HTML_URLChanged_t *lin, struct winHTML_URLChanged_t_24 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->pchPostData = lin->pchPostData; win->bIsRedirect = lin->bIsRedirect; win->pchPageTitle = lin->pchPageTitle; @@ -977,7 +981,8 @@ struct winHTML_FinishedRequest_t_24 { void cb_HTML_FinishedRequest_t_24(const struct HTML_FinishedRequest_t *lin, struct winHTML_FinishedRequest_t_24 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->pchPageTitle = lin->pchPageTitle; } #endif @@ -986,7 +991,8 @@ void cb_HTML_FinishedRequest_t_24(const struct HTML_FinishedRequest_t *lin, stru void cb_HTML_FinishedRequest_t_12(const struct HTML_FinishedRequest_t *lin, struct winHTML_FinishedRequest_t_12 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->pchPageTitle = lin->pchPageTitle; } #endif @@ -1011,7 +1017,8 @@ struct winHTML_OpenLinkInNewTab_t_16 { void cb_HTML_OpenLinkInNewTab_t_16(const struct HTML_OpenLinkInNewTab_t *lin, struct winHTML_OpenLinkInNewTab_t_16 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; } #endif @@ -1019,7 +1026,8 @@ void cb_HTML_OpenLinkInNewTab_t_16(const struct HTML_OpenLinkInNewTab_t *lin, st void cb_HTML_OpenLinkInNewTab_t_8(const struct HTML_OpenLinkInNewTab_t *lin, struct winHTML_OpenLinkInNewTab_t_8 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; } #endif @@ -1085,7 +1093,8 @@ void cb_HTML_LinkAtPosition_t_32(const struct HTML_LinkAtPosition_t *lin, struct win->unBrowserHandle = lin->unBrowserHandle; win->x = lin->x; win->y = lin->y; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->bInput = lin->bInput; win->bLiveLink = lin->bLiveLink; } @@ -1097,7 +1106,8 @@ void cb_HTML_LinkAtPosition_t_20(const struct HTML_LinkAtPosition_t *lin, struct win->unBrowserHandle = lin->unBrowserHandle; win->x = lin->x; win->y = lin->y; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->bInput = lin->bInput; win->bLiveLink = lin->bLiveLink; } @@ -1190,7 +1200,7 @@ void cb_HTML_FileOpenDialog_t_24(const struct HTML_FileOpenDialog_t *lin, struct { win->unBrowserHandle = lin->unBrowserHandle; win->pchTitle = lin->pchTitle; - steamclient_unix_path_to_dos_path(1, lin->pchInitialFile, g_tmppath, sizeof(g_tmppath)); + steamclient_unix_path_to_dos_path(1, lin->pchInitialFile, g_tmppath, sizeof(g_tmppath), 1); win->pchInitialFile = g_tmppath; } #endif @@ -1200,7 +1210,7 @@ void cb_HTML_FileOpenDialog_t_12(const struct HTML_FileOpenDialog_t *lin, struct { win->unBrowserHandle = lin->unBrowserHandle; win->pchTitle = lin->pchTitle; - steamclient_unix_path_to_dos_path(1, lin->pchInitialFile, g_tmppath, sizeof(g_tmppath)); + steamclient_unix_path_to_dos_path(1, lin->pchInitialFile, g_tmppath, sizeof(g_tmppath), 1); win->pchInitialFile = g_tmppath; } #endif @@ -1235,7 +1245,8 @@ struct winHTML_NewWindow_t_40 { void cb_HTML_NewWindow_t_40(const struct HTML_NewWindow_t *lin, struct winHTML_NewWindow_t_40 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->unX = lin->unX; win->unY = lin->unY; win->unWide = lin->unWide; @@ -1248,7 +1259,8 @@ void cb_HTML_NewWindow_t_40(const struct HTML_NewWindow_t *lin, struct winHTML_N void cb_HTML_NewWindow_t_28(const struct HTML_NewWindow_t *lin, struct winHTML_NewWindow_t_28 *win) { win->unBrowserHandle = lin->unBrowserHandle; - win->pchURL = lin->pchURL; + steamclient_unix_path_to_dos_path(1, lin->pchURL, g_tmppath, sizeof(g_tmppath), 1); + win->pchURL = g_tmppath; win->unX = lin->unX; win->unY = lin->unY; win->unWide = lin->unWide; diff --git a/lsteamclient/winISteamAppList.c b/lsteamclient/winISteamAppList.c index ccfe79e8..1296cb34 100644 --- a/lsteamclient/winISteamAppList.c +++ b/lsteamclient/winISteamAppList.c @@ -49,7 +49,7 @@ int __thiscall winISteamAppList_STEAMAPPLIST_INTERFACE_VERSION001_GetAppInstallD uint32 path_result; TRACE("%p\n", _this); path_result = cppISteamAppList_STEAMAPPLIST_INTERFACE_VERSION001_GetAppInstallDir(_this->linux_side, nAppID, pchDirectory, cchNameMax); - path_result = steamclient_unix_path_to_dos_path(path_result, pchDirectory, pchDirectory, cchNameMax); + path_result = steamclient_unix_path_to_dos_path(path_result, pchDirectory, pchDirectory, cchNameMax, 0); return path_result; } diff --git a/lsteamclient/winISteamApps.c b/lsteamclient/winISteamApps.c index f3a07f3a..e0f3029b 100644 --- a/lsteamclient/winISteamApps.c +++ b/lsteamclient/winISteamApps.c @@ -154,7 +154,7 @@ uint32 __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetAppInstallDir( uint32 path_result; TRACE("%p\n", _this); path_result = cppISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetAppInstallDir(_this->linux_side, appID, pchFolder, cchFolderBufferSize); - path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize); + path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize, 0); return path_result; } @@ -205,7 +205,7 @@ DEFINE_THISCALL_WRAPPER(winISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDeta SteamAPICall_t __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails(winISteamApps_STEAMAPPS_INTERFACE_VERSION008 *_this, const char * pszFileName) { char lin_pszFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFileName, lin_pszFileName); + steamclient_dos_path_to_unix_path(pszFileName, lin_pszFileName, 0); uint32 path_result; TRACE("%p\n", _this); path_result = cppISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails(_this->linux_side, pszFileName ? lin_pszFileName : NULL); @@ -412,7 +412,7 @@ uint32 __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION007_GetAppInstallDir( uint32 path_result; TRACE("%p\n", _this); path_result = cppISteamApps_STEAMAPPS_INTERFACE_VERSION007_GetAppInstallDir(_this->linux_side, appID, pchFolder, cchFolderBufferSize); - path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize); + path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize, 0); return path_result; } @@ -635,7 +635,7 @@ uint32 __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION006_GetAppInstallDir( uint32 path_result; TRACE("%p\n", _this); path_result = cppISteamApps_STEAMAPPS_INTERFACE_VERSION006_GetAppInstallDir(_this->linux_side, appID, pchFolder, cchFolderBufferSize); - path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize); + path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize, 0); return path_result; } @@ -842,7 +842,7 @@ uint32 __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION005_GetAppInstallDir( uint32 path_result; TRACE("%p\n", _this); path_result = cppISteamApps_STEAMAPPS_INTERFACE_VERSION005_GetAppInstallDir(_this->linux_side, appID, pchFolder, cchFolderBufferSize); - path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize); + path_result = steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderBufferSize, 0); return path_result; } diff --git a/lsteamclient/winISteamController.c b/lsteamclient/winISteamController.c index f1e77a9a..39bead27 100644 --- a/lsteamclient/winISteamController.c +++ b/lsteamclient/winISteamController.c @@ -1216,7 +1216,7 @@ DEFINE_THISCALL_WRAPPER(winISteamController_STEAMCONTROLLER_INTERFACE_VERSION_In bool __thiscall winISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(winISteamController_STEAMCONTROLLER_INTERFACE_VERSION *_this, const char * pchAbsolutePathToControllerConfigVDF) { char lin_pchAbsolutePathToControllerConfigVDF[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchAbsolutePathToControllerConfigVDF, lin_pchAbsolutePathToControllerConfigVDF); + steamclient_dos_path_to_unix_path(pchAbsolutePathToControllerConfigVDF, lin_pchAbsolutePathToControllerConfigVDF, 0); TRACE("%p\n", _this); return cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(_this->linux_side, pchAbsolutePathToControllerConfigVDF ? lin_pchAbsolutePathToControllerConfigVDF : NULL); } diff --git a/lsteamclient/winISteamHTMLSurface.c b/lsteamclient/winISteamHTMLSurface.c index 2ebbcb2f..6a86fa57 100644 --- a/lsteamclient/winISteamHTMLSurface.c +++ b/lsteamclient/winISteamHTMLSurface.c @@ -57,8 +57,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_Remo DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL, 16) void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005 *_this, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData) { + char lin_pchURL[PATH_MAX]; + steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL(_this->linux_side, unBrowserHandle, pchURL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL(_this->linux_side, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); } DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_SetSize, 16) @@ -387,8 +389,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_Remo DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL, 16) void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004 *_this, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData) { + char lin_pchURL[PATH_MAX]; + steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL(_this->linux_side, unBrowserHandle, pchURL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL(_this->linux_side, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); } DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_SetSize, 16) @@ -709,8 +713,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_Remo DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL, 16) void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003 *_this, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData) { + char lin_pchURL[PATH_MAX]; + steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL(_this->linux_side, unBrowserHandle, pchURL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL(_this->linux_side, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); } DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_SetSize, 16) @@ -1023,8 +1029,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_Remo DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL, 16) void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002 *_this, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData) { + char lin_pchURL[PATH_MAX]; + steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL(_this->linux_side, unBrowserHandle, pchURL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL(_this->linux_side, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); } DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_SetSize, 16) @@ -1329,8 +1337,10 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_Remo DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL, 16) void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001 *_this, HHTMLBrowser unBrowserHandle, const char * pchURL, const char * pchPostData) { + char lin_pchURL[PATH_MAX]; + steamclient_dos_path_to_unix_path(pchURL, lin_pchURL, 1); TRACE("%p\n", _this); - cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL(_this->linux_side, unBrowserHandle, pchURL, pchPostData); + cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL(_this->linux_side, unBrowserHandle, pchURL ? lin_pchURL : NULL, pchPostData); } DEFINE_THISCALL_WRAPPER(winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_SetSize, 16) diff --git a/lsteamclient/winISteamRemoteStorage.c b/lsteamclient/winISteamRemoteStorage.c index c276e793..8c92d9b8 100644 --- a/lsteamclient/winISteamRemoteStorage.c +++ b/lsteamclient/winISteamRemoteStorage.c @@ -236,9 +236,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -254,7 +254,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -263,7 +263,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -384,7 +384,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -414,7 +414,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *_this, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) { char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation); + steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation(_this->linux_side, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); } @@ -715,9 +715,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -733,7 +733,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -742,7 +742,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -863,7 +863,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -893,7 +893,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *_this, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) { char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation); + steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation(_this->linux_side, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); } @@ -1173,9 +1173,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -1191,7 +1191,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -1200,7 +1200,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -1321,7 +1321,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -1351,7 +1351,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *_this, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) { char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation); + steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation(_this->linux_side, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); } @@ -1628,9 +1628,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -1646,7 +1646,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -1655,7 +1655,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -1776,7 +1776,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -1806,7 +1806,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *_this, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) { char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation); + steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation(_this->linux_side, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); } @@ -2083,9 +2083,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -2101,7 +2101,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -2110,7 +2110,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -2231,7 +2231,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -2261,7 +2261,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *_this, UGCHandle_t hContent, const char * pchLocation, uint32 unPriority) { char lin_pchLocation[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation); + steamclient_dos_path_to_unix_path(pchLocation, lin_pchLocation, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation(_this->linux_side, hContent, pchLocation ? lin_pchLocation : NULL, unPriority); } @@ -2538,9 +2538,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -2556,7 +2556,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -2565,7 +2565,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -2686,7 +2686,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -2983,9 +2983,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -3001,7 +3001,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -3010,7 +3010,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -3131,7 +3131,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -3400,9 +3400,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -3418,7 +3418,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -3427,7 +3427,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -3548,7 +3548,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *_this, EWorkshopVideoProvider eVideoProvider, const char * pchVideoAccount, const char * pchVideoIdentifier, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo(_this->linux_side, eVideoProvider, pchVideoAccount, pchVideoIdentifier, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -3813,9 +3813,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags, EWorkshopFileType eWorkshopFileType) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags, eWorkshopFileType); } @@ -3831,7 +3831,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchFile) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile(_this->linux_side, updateHandle, pchFile ? lin_pchFile : NULL); } @@ -3840,7 +3840,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *_this, PublishedFileUpdateHandle_t updateHandle, const char * pchPreviewFile) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile(_this->linux_side, updateHandle, pchPreviewFile ? lin_pchPreviewFile : NULL); } @@ -3961,7 +3961,7 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *_this, const char * pchVideoURL, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, ERemoteStoragePublishedFileVisibility eVisibility, SteamParamStringArray_t * pTags) { char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo(_this->linux_side, pchVideoURL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, eVisibility, pTags); } @@ -4226,9 +4226,9 @@ DEFINE_THISCALL_WRAPPER(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERS SteamAPICall_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile(winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *_this, const char * pchFile, const char * pchPreviewFile, AppId_t nConsumerAppId, const char * pchTitle, const char * pchDescription, SteamParamStringArray_t * pTags) { char lin_pchFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFile, lin_pchFile); + steamclient_dos_path_to_unix_path(pchFile, lin_pchFile, 0); char lin_pchPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile); + steamclient_dos_path_to_unix_path(pchPreviewFile, lin_pchPreviewFile, 0); TRACE("%p\n", _this); return cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile(_this->linux_side, pchFile ? lin_pchFile : NULL, pchPreviewFile ? lin_pchPreviewFile : NULL, nConsumerAppId, pchTitle, pchDescription, pTags); } diff --git a/lsteamclient/winISteamScreenshots.c b/lsteamclient/winISteamScreenshots.c index bb332748..9a168ccc 100644 --- a/lsteamclient/winISteamScreenshots.c +++ b/lsteamclient/winISteamScreenshots.c @@ -33,9 +33,9 @@ DEFINE_THISCALL_WRAPPER(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION0 ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003 *_this, const char * pchFilename, const char * pchThumbnailFilename, int nWidth, int nHeight) { char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename); + steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); char lin_pchThumbnailFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename); + steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename, 0); TRACE("%p\n", _this); return cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary(_this->linux_side, pchFilename ? lin_pchFilename : NULL, pchThumbnailFilename ? lin_pchThumbnailFilename : NULL, nWidth, nHeight); } @@ -86,9 +86,9 @@ DEFINE_THISCALL_WRAPPER(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION0 ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003 *_this, EVRScreenshotType eType, const char * pchFilename, const char * pchVRFilename) { char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename); + steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); char lin_pchVRFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchVRFilename, lin_pchVRFilename); + steamclient_dos_path_to_unix_path(pchVRFilename, lin_pchVRFilename, 0); TRACE("%p\n", _this); return cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary(_this->linux_side, eType, pchFilename ? lin_pchFilename : NULL, pchVRFilename ? lin_pchVRFilename : NULL); } @@ -140,9 +140,9 @@ DEFINE_THISCALL_WRAPPER(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION0 ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *_this, const char * pchFilename, const char * pchThumbnailFilename, int nWidth, int nHeight) { char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename); + steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); char lin_pchThumbnailFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename); + steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename, 0); TRACE("%p\n", _this); return cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary(_this->linux_side, pchFilename ? lin_pchFilename : NULL, pchThumbnailFilename ? lin_pchThumbnailFilename : NULL, nWidth, nHeight); } @@ -227,9 +227,9 @@ DEFINE_THISCALL_WRAPPER(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION0 ScreenshotHandle __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary(winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001 *_this, const char * pchFilename, const char * pchThumbnailFilename, int nWidth, int nHeight) { char lin_pchFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename); + steamclient_dos_path_to_unix_path(pchFilename, lin_pchFilename, 0); char lin_pchThumbnailFilename[PATH_MAX]; - steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename); + steamclient_dos_path_to_unix_path(pchThumbnailFilename, lin_pchThumbnailFilename, 0); TRACE("%p\n", _this); return cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary(_this->linux_side, pchFilename ? lin_pchFilename : NULL, pchThumbnailFilename ? lin_pchThumbnailFilename : NULL, nWidth, nHeight); } diff --git a/lsteamclient/winISteamUGC.c b/lsteamclient/winISteamUGC.c index 0e0e3880..a0b8a5c3 100644 --- a/lsteamclient/winISteamUGC.c +++ b/lsteamclient/winISteamUGC.c @@ -102,8 +102,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetQueryUGCAdditionalPreview, 40) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION012 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetQueryUGCNumKeyValueTags, 16) @@ -313,7 +316,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION012 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -322,7 +325,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION012 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -352,7 +355,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION012 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); } @@ -368,7 +371,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPre bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION012 *_this, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile(_this->linux_side, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -470,7 +473,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -492,7 +495,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshop bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer(winISteamUGC_STEAMUGC_INTERFACE_VERSION012 *_this, DepotId_t unWorkshopDepotID, const char * pszFolder) { char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder); + steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer(_this->linux_side, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); } @@ -743,8 +746,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCAdditionalPreview, 40) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION010 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetQueryUGCNumKeyValueTags, 16) @@ -954,7 +960,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION010 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -963,7 +969,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION010 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -986,7 +992,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION010 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); } @@ -1002,7 +1008,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPre bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION010 *_this, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile(_this->linux_side, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -1104,7 +1110,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -1126,7 +1132,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshop bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer(winISteamUGC_STEAMUGC_INTERFACE_VERSION010 *_this, DepotId_t unWorkshopDepotID, const char * pszFolder) { char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder); + steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer(_this->linux_side, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); } @@ -1375,8 +1381,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCAdditionalPreview, 40) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION009 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetQueryUGCNumKeyValueTags, 16) @@ -1579,7 +1588,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION009 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -1588,7 +1597,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION009 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -1611,7 +1620,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION009 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); } @@ -1627,7 +1636,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPre bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION009 *_this, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile(_this->linux_side, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -1729,7 +1738,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -1751,7 +1760,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshop bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer(winISteamUGC_STEAMUGC_INTERFACE_VERSION009 *_this, DepotId_t unWorkshopDepotID, const char * pszFolder) { char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder); + steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer(_this->linux_side, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); } @@ -1951,8 +1960,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCAdditionalPreview, 40) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION008 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, char * pchOriginalFileName, uint32 cchOriginalFileNameSize, EItemPreviewType * pPreviewType) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pchOriginalFileName, cchOriginalFileNameSize, pPreviewType); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetQueryUGCNumKeyValueTags, 16) @@ -2148,7 +2160,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION008 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -2157,7 +2169,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION008 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -2180,7 +2192,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION008 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile, EItemPreviewType type) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL, type); } @@ -2196,7 +2208,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPre bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile(winISteamUGC_STEAMUGC_INTERFACE_VERSION008 *_this, UGCUpdateHandle_t handle, uint32 index, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile(_this->linux_side, handle, index, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -2298,7 +2310,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -2320,7 +2332,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshop bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer(winISteamUGC_STEAMUGC_INTERFACE_VERSION008 *_this, DepotId_t unWorkshopDepotID, const char * pszFolder) { char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder); + steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer(_this->linux_side, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); } @@ -2495,8 +2507,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCAdditionalPreview, 32) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION007 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, bool * pbIsImage) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pbIsImage); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pbIsImage); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetQueryUGCNumKeyValueTags, 16) @@ -2692,7 +2707,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION007 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -2701,7 +2716,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION007 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -2803,7 +2818,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -2825,7 +2840,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshop bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer(winISteamUGC_STEAMUGC_INTERFACE_VERSION007 *_this, DepotId_t unWorkshopDepotID, const char * pszFolder) { char lin_pszFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder); + steamclient_dos_path_to_unix_path(pszFolder, lin_pszFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer(_this->linux_side, unWorkshopDepotID, pszFolder ? lin_pszFolder : NULL); } @@ -2995,8 +3010,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetQueryUGCAdditionalPreview, 32) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION006 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, bool * pbIsImage) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pbIsImage); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pbIsImage); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION006_ReleaseQueryUGCRequest, 12) @@ -3164,7 +3182,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION006 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -3173,7 +3191,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION006 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -3261,7 +3279,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION006_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -3429,8 +3447,11 @@ uint32 __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCNumAddit DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCAdditionalPreview, 32) bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCAdditionalPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION005 *_this, UGCQueryHandle_t handle, uint32 index, uint32 previewIndex, char * pchURLOrVideoID, uint32 cchURLSize, bool * pbIsImage) { + bool path_result; TRACE("%p\n", _this); - return cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pbIsImage); + path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetQueryUGCAdditionalPreview(_this->linux_side, handle, index, previewIndex, pchURLOrVideoID, cchURLSize, pbIsImage); + steamclient_unix_path_to_dos_path(path_result, pchURLOrVideoID, pchURLOrVideoID, cchURLSize, 1); + return path_result; } DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION005_ReleaseQueryUGCRequest, 12) @@ -3584,7 +3605,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION005 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -3593,7 +3614,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION005 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -3667,7 +3688,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION005_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -3909,7 +3930,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION004 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -3918,7 +3939,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION004 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -3978,7 +3999,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION004_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, punTimeStamp); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -4207,7 +4228,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION003 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -4216,7 +4237,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION003 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -4269,7 +4290,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION003_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize, pbLegacyItem); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } @@ -4489,7 +4510,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemConten bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(winISteamUGC_STEAMUGC_INTERFACE_VERSION002 *_this, UGCUpdateHandle_t handle, const char * pszContentFolder) { char lin_pszContentFolder[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder); + steamclient_dos_path_to_unix_path(pszContentFolder, lin_pszContentFolder, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(_this->linux_side, handle, pszContentFolder ? lin_pszContentFolder : NULL); } @@ -4498,7 +4519,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPrevie bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview(winISteamUGC_STEAMUGC_INTERFACE_VERSION002 *_this, UGCUpdateHandle_t handle, const char * pszPreviewFile) { char lin_pszPreviewFile[PATH_MAX]; - steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile); + steamclient_dos_path_to_unix_path(pszPreviewFile, lin_pszPreviewFile, 0); TRACE("%p\n", _this); return cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview(_this->linux_side, handle, pszPreviewFile ? lin_pszPreviewFile : NULL); } @@ -4551,7 +4572,7 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_GetItemInstallInfo(wi bool path_result; TRACE("%p\n", _this); path_result = cppISteamUGC_STEAMUGC_INTERFACE_VERSION002_GetItemInstallInfo(_this->linux_side, nPublishedFileID, punSizeOnDisk, pchFolder, cchFolderSize); - steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize); + steamclient_unix_path_to_dos_path(path_result, pchFolder, pchFolder, cchFolderSize, 0); return path_result; } diff --git a/lsteamclient/winISteamUser.c b/lsteamclient/winISteamUser.c index b56ff3f3..a4a74671 100644 --- a/lsteamclient/winISteamUser.c +++ b/lsteamclient/winISteamUser.c @@ -71,7 +71,7 @@ bool __thiscall winISteamUser_SteamUser020_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser020_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -342,7 +342,7 @@ bool __thiscall winISteamUser_SteamUser019_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser019_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -605,7 +605,7 @@ bool __thiscall winISteamUser_SteamUser018_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser018_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -836,7 +836,7 @@ bool __thiscall winISteamUser_SteamUser017_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser017_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -1059,7 +1059,7 @@ bool __thiscall winISteamUser_SteamUser016_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser016_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -1266,7 +1266,7 @@ bool __thiscall winISteamUser_SteamUser015_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser015_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -1473,7 +1473,7 @@ bool __thiscall winISteamUser_SteamUser014_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser014_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -1672,7 +1672,7 @@ bool __thiscall winISteamUser_SteamUser013_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser013_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -1839,7 +1839,7 @@ bool __thiscall winISteamUser_SteamUser012_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser012_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } @@ -1998,7 +1998,7 @@ bool __thiscall winISteamUser_SteamUser011_GetUserDataFolder(winISteamUser_Steam bool path_result; TRACE("%p\n", _this); path_result = cppISteamUser_SteamUser011_GetUserDataFolder(_this->linux_side, pchBuffer, cubBuffer); - steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer); + steamclient_unix_path_to_dos_path(path_result, pchBuffer, pchBuffer, cubBuffer, 0); return path_result; } diff --git a/lsteamclient/winISteamUtils.c b/lsteamclient/winISteamUtils.c index cabed2ae..bc762e3e 100644 --- a/lsteamclient/winISteamUtils.c +++ b/lsteamclient/winISteamUtils.c @@ -159,7 +159,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUtils_SteamUtils009_CheckFileSignature, 8) SteamAPICall_t __thiscall winISteamUtils_SteamUtils009_CheckFileSignature(winISteamUtils_SteamUtils009 *_this, const char * szFileName) { char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName); + steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); TRACE("%p\n", _this); return cppISteamUtils_SteamUtils009_CheckFileSignature(_this->linux_side, szFileName ? lin_szFileName : NULL); } @@ -428,7 +428,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUtils_SteamUtils008_CheckFileSignature, 8) SteamAPICall_t __thiscall winISteamUtils_SteamUtils008_CheckFileSignature(winISteamUtils_SteamUtils008 *_this, const char * szFileName) { char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName); + steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); TRACE("%p\n", _this); return cppISteamUtils_SteamUtils008_CheckFileSignature(_this->linux_side, szFileName ? lin_szFileName : NULL); } @@ -681,7 +681,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUtils_SteamUtils007_CheckFileSignature, 8) SteamAPICall_t __thiscall winISteamUtils_SteamUtils007_CheckFileSignature(winISteamUtils_SteamUtils007 *_this, const char * szFileName) { char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName); + steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); TRACE("%p\n", _this); return cppISteamUtils_SteamUtils007_CheckFileSignature(_this->linux_side, szFileName ? lin_szFileName : NULL); } @@ -918,7 +918,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUtils_SteamUtils006_CheckFileSignature, 8) SteamAPICall_t __thiscall winISteamUtils_SteamUtils006_CheckFileSignature(winISteamUtils_SteamUtils006 *_this, const char * szFileName) { char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName); + steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); TRACE("%p\n", _this); return cppISteamUtils_SteamUtils006_CheckFileSignature(_this->linux_side, szFileName ? lin_szFileName : NULL); } @@ -1147,7 +1147,7 @@ DEFINE_THISCALL_WRAPPER(winISteamUtils_SteamUtils005_CheckFileSignature, 8) SteamAPICall_t __thiscall winISteamUtils_SteamUtils005_CheckFileSignature(winISteamUtils_SteamUtils005 *_this, const char * szFileName) { char lin_szFileName[PATH_MAX]; - steamclient_dos_path_to_unix_path(szFileName, lin_szFileName); + steamclient_dos_path_to_unix_path(szFileName, lin_szFileName, 0); TRACE("%p\n", _this); return cppISteamUtils_SteamUtils005_CheckFileSignature(_this->linux_side, szFileName ? lin_szFileName : NULL); }