diff --git a/lsteamclient/cppISteamApps_STEAMAPPS_INTERFACE_VERSION008.cpp b/lsteamclient/cppISteamApps_STEAMAPPS_INTERFACE_VERSION008.cpp index e8147dd5..0f3a8ec2 100644 --- a/lsteamclient/cppISteamApps_STEAMAPPS_INTERFACE_VERSION008.cpp +++ b/lsteamclient/cppISteamApps_STEAMAPPS_INTERFACE_VERSION008.cpp @@ -205,7 +205,9 @@ NTSTATUS ISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails( void *args ) { struct ISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails_params *params = (struct ISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails_params *)args; struct u_ISteamApps_STEAMAPPS_INTERFACE_VERSION008 *iface = (struct u_ISteamApps_STEAMAPPS_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->GetFileDetails( params->pszFileName ); + char *u_pszFileName = steamclient_dos_to_unix_path( params->pszFileName, 0 ); + params->_ret = iface->GetFileDetails( u_pszFileName ); + steamclient_free_path( u_pszFileName ); return 0; } diff --git a/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp b/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp index 6a4abe91..00dfe48f 100644 --- a/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp +++ b/lsteamclient/cppISteamController_STEAMCONTROLLER_INTERFACE_VERSION.cpp @@ -5,7 +5,9 @@ NTSTATUS ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init( void *args ) { struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init_params *params = (struct ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init_params *)args; struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *iface = (struct u_ISteamController_STEAMCONTROLLER_INTERFACE_VERSION *)params->linux_side; - params->_ret = iface->Init( params->pchAbsolutePathToControllerConfigVDF ); + char *u_pchAbsolutePathToControllerConfigVDF = steamclient_dos_to_unix_path( params->pchAbsolutePathToControllerConfigVDF, 0 ); + params->_ret = iface->Init( u_pchAbsolutePathToControllerConfigVDF ); + steamclient_free_path( u_pchAbsolutePathToControllerConfigVDF ); return 0; } diff --git a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001.cpp b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001.cpp index 3207d2be..6d57e3cd 100644 --- a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001.cpp +++ b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001.cpp @@ -37,7 +37,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL( void { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001 *)params->linux_side; - iface->LoadURL( params->unBrowserHandle, params->pchURL, params->pchPostData ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->LoadURL( params->unBrowserHandle, u_pchURL, params->pchPostData ); + steamclient_free_path( u_pchURL ); return 0; } @@ -255,7 +257,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialog { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialogResponse_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialogResponse_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001 *)params->linux_side; - iface->FileLoadDialogResponse( params->unBrowserHandle, params->pchSelectedFiles ); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( params->pchSelectedFiles ); + iface->FileLoadDialogResponse( params->unBrowserHandle, u_pchSelectedFiles ); + steamclient_free_path_array( u_pchSelectedFiles ); return 0; } diff --git a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002.cpp b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002.cpp index 87c83c26..5476d5b4 100644 --- a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002.cpp +++ b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002.cpp @@ -37,7 +37,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL( void { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002 *)params->linux_side; - iface->LoadURL( params->unBrowserHandle, params->pchURL, params->pchPostData ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->LoadURL( params->unBrowserHandle, u_pchURL, params->pchPostData ); + steamclient_free_path( u_pchURL ); return 0; } @@ -271,7 +273,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialog { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialogResponse_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialogResponse_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002 *)params->linux_side; - iface->FileLoadDialogResponse( params->unBrowserHandle, params->pchSelectedFiles ); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( params->pchSelectedFiles ); + iface->FileLoadDialogResponse( params->unBrowserHandle, u_pchSelectedFiles ); + steamclient_free_path_array( u_pchSelectedFiles ); return 0; } diff --git a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003.cpp b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003.cpp index a336beec..49259db9 100644 --- a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003.cpp +++ b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003.cpp @@ -37,7 +37,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL( void { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003 *)params->linux_side; - iface->LoadURL( params->unBrowserHandle, params->pchURL, params->pchPostData ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->LoadURL( params->unBrowserHandle, u_pchURL, params->pchPostData ); + steamclient_free_path( u_pchURL ); return 0; } @@ -279,7 +281,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialog { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialogResponse_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialogResponse_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003 *)params->linux_side; - iface->FileLoadDialogResponse( params->unBrowserHandle, params->pchSelectedFiles ); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( params->pchSelectedFiles ); + iface->FileLoadDialogResponse( params->unBrowserHandle, u_pchSelectedFiles ); + steamclient_free_path_array( u_pchSelectedFiles ); return 0; } diff --git a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004.cpp b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004.cpp index 3234e94f..46bac650 100644 --- a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004.cpp +++ b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004.cpp @@ -37,7 +37,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL( void { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004 *)params->linux_side; - iface->LoadURL( params->unBrowserHandle, params->pchURL, params->pchPostData ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->LoadURL( params->unBrowserHandle, u_pchURL, params->pchPostData ); + steamclient_free_path( u_pchURL ); return 0; } @@ -287,7 +289,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialog { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialogResponse_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialogResponse_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004 *)params->linux_side; - iface->FileLoadDialogResponse( params->unBrowserHandle, params->pchSelectedFiles ); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( params->pchSelectedFiles ); + iface->FileLoadDialogResponse( params->unBrowserHandle, u_pchSelectedFiles ); + steamclient_free_path_array( u_pchSelectedFiles ); return 0; } diff --git a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005.cpp b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005.cpp index dbf24bba..be661357 100644 --- a/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005.cpp +++ b/lsteamclient/cppISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005.cpp @@ -37,7 +37,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL( void { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005 *)params->linux_side; - iface->LoadURL( params->unBrowserHandle, params->pchURL, params->pchPostData ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->LoadURL( params->unBrowserHandle, u_pchURL, params->pchPostData ); + steamclient_free_path( u_pchURL ); return 0; } @@ -295,7 +297,9 @@ NTSTATUS ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialog { struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialogResponse_params *params = (struct ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialogResponse_params *)args; struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005 *iface = (struct u_ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005 *)params->linux_side; - iface->FileLoadDialogResponse( params->unBrowserHandle, params->pchSelectedFiles ); + const char **u_pchSelectedFiles = steamclient_dos_to_unix_path_array( params->pchSelectedFiles ); + iface->FileLoadDialogResponse( params->unBrowserHandle, u_pchSelectedFiles ); + steamclient_free_path_array( u_pchSelectedFiles ); return 0; } diff --git a/lsteamclient/cppISteamInput_SteamInput005.cpp b/lsteamclient/cppISteamInput_SteamInput005.cpp index fd0ecb29..d736fa91 100644 --- a/lsteamclient/cppISteamInput_SteamInput005.cpp +++ b/lsteamclient/cppISteamInput_SteamInput005.cpp @@ -21,7 +21,9 @@ NTSTATUS ISteamInput_SteamInput005_SetInputActionManifestFilePath( void *args ) { struct ISteamInput_SteamInput005_SetInputActionManifestFilePath_params *params = (struct ISteamInput_SteamInput005_SetInputActionManifestFilePath_params *)args; struct u_ISteamInput_SteamInput005 *iface = (struct u_ISteamInput_SteamInput005 *)params->linux_side; - params->_ret = iface->SetInputActionManifestFilePath( params->pchInputActionManifestAbsolutePath ); + char *u_pchInputActionManifestAbsolutePath = steamclient_dos_to_unix_path( params->pchInputActionManifestAbsolutePath, 0 ); + params->_ret = iface->SetInputActionManifestFilePath( u_pchInputActionManifestAbsolutePath ); + steamclient_free_path( u_pchInputActionManifestAbsolutePath ); return 0; } diff --git a/lsteamclient/cppISteamInput_SteamInput006.cpp b/lsteamclient/cppISteamInput_SteamInput006.cpp index a363a37a..4aacc2ff 100644 --- a/lsteamclient/cppISteamInput_SteamInput006.cpp +++ b/lsteamclient/cppISteamInput_SteamInput006.cpp @@ -21,7 +21,9 @@ NTSTATUS ISteamInput_SteamInput006_SetInputActionManifestFilePath( void *args ) { struct ISteamInput_SteamInput006_SetInputActionManifestFilePath_params *params = (struct ISteamInput_SteamInput006_SetInputActionManifestFilePath_params *)args; struct u_ISteamInput_SteamInput006 *iface = (struct u_ISteamInput_SteamInput006 *)params->linux_side; - params->_ret = iface->SetInputActionManifestFilePath( params->pchInputActionManifestAbsolutePath ); + char *u_pchInputActionManifestAbsolutePath = steamclient_dos_to_unix_path( params->pchInputActionManifestAbsolutePath, 0 ); + params->_ret = iface->SetInputActionManifestFilePath( u_pchInputActionManifestAbsolutePath ); + steamclient_free_path( u_pchInputActionManifestAbsolutePath ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp index 63c026a6..dbad5e61 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005.cpp @@ -189,7 +189,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->pTags ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->pTags ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp index fd87c458..14a30277 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006.cpp @@ -189,7 +189,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -205,7 +209,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -213,7 +219,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -349,7 +357,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006 *)params->linux_side; - params->_ret = iface->PublishVideo( params->pchVideoURL, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->pchVideoURL, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007.cpp index a61e33b5..83f38ee4 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007.cpp @@ -189,7 +189,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -205,7 +209,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -213,7 +219,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -349,7 +357,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp index 1643a52d..f8cbc2e4 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008.cpp @@ -221,7 +221,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -237,7 +241,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -245,7 +251,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -381,7 +389,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009.cpp index c21b11db..471bd6a6 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009.cpp @@ -221,7 +221,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -237,7 +241,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -245,7 +251,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -381,7 +389,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp index 2e22353f..87fc4fe0 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010.cpp @@ -221,7 +221,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -237,7 +241,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -245,7 +251,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -381,7 +389,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -413,7 +423,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownload { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->UGCDownloadToLocation( params->hContent, params->pchLocation, params->unPriority ); + char *u_pchLocation = steamclient_dos_to_unix_path( params->pchLocation, 0 ); + params->_ret = iface->UGCDownloadToLocation( params->hContent, u_pchLocation, params->unPriority ); + steamclient_free_path( u_pchLocation ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp index cc18d8ae..b3da9328 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011.cpp @@ -221,7 +221,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -237,7 +241,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -245,7 +251,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -381,7 +389,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -413,7 +423,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownload { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011 *)params->linux_side; - params->_ret = iface->UGCDownloadToLocation( params->hContent, params->pchLocation, params->unPriority ); + char *u_pchLocation = steamclient_dos_to_unix_path( params->pchLocation, 0 ); + params->_ret = iface->UGCDownloadToLocation( params->hContent, u_pchLocation, params->unPriority ); + steamclient_free_path( u_pchLocation ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp index e77e2ea1..f865103e 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012.cpp @@ -221,7 +221,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -237,7 +241,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -245,7 +251,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -381,7 +389,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -413,7 +423,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownload { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->UGCDownloadToLocation( params->hContent, params->pchLocation, params->unPriority ); + char *u_pchLocation = steamclient_dos_to_unix_path( params->pchLocation, 0 ); + params->_ret = iface->UGCDownloadToLocation( params->hContent, u_pchLocation, params->unPriority ); + steamclient_free_path( u_pchLocation ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp index 55206cf7..ae5eecff 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013.cpp @@ -245,7 +245,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -261,7 +265,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -269,7 +275,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -405,7 +413,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -437,7 +447,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownload { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->UGCDownloadToLocation( params->hContent, params->pchLocation, params->unPriority ); + char *u_pchLocation = steamclient_dos_to_unix_path( params->pchLocation, 0 ); + params->_ret = iface->UGCDownloadToLocation( params->hContent, u_pchLocation, params->unPriority ); + steamclient_free_path( u_pchLocation ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp index 653e0bb6..61c96e16 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014.cpp @@ -245,7 +245,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -261,7 +265,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -269,7 +275,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -405,7 +413,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -437,7 +447,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownload { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->UGCDownloadToLocation( params->hContent, params->pchLocation, params->unPriority ); + char *u_pchLocation = steamclient_dos_to_unix_path( params->pchLocation, 0 ); + params->_ret = iface->UGCDownloadToLocation( params->hContent, u_pchLocation, params->unPriority ); + steamclient_free_path( u_pchLocation ); return 0; } diff --git a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016.cpp b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016.cpp index f2addd80..8f9cec67 100644 --- a/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016.cpp +++ b/lsteamclient/cppISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016.cpp @@ -245,7 +245,11 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWork { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWorkshopFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWorkshopFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->PublishWorkshopFile( params->pchFile, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishWorkshopFile( u_pchFile, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags, params->eWorkshopFileType ); + steamclient_free_path( u_pchFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -261,7 +265,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFileFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFileFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, params->pchFile ); + char *u_pchFile = steamclient_dos_to_unix_path( params->pchFile, 0 ); + params->_ret = iface->UpdatePublishedFileFile( params->updateHandle, u_pchFile ); + steamclient_free_path( u_pchFile ); return 0; } @@ -269,7 +275,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePubli { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFilePreviewFile_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFilePreviewFile_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, params->pchPreviewFile ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->UpdatePublishedFilePreviewFile( params->updateHandle, u_pchPreviewFile ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -405,7 +413,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVide { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVideo_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVideo_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, params->pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + char *u_pchPreviewFile = steamclient_dos_to_unix_path( params->pchPreviewFile, 0 ); + params->_ret = iface->PublishVideo( params->eVideoProvider, params->pchVideoAccount, params->pchVideoIdentifier, u_pchPreviewFile, params->nConsumerAppId, params->pchTitle, params->pchDescription, params->eVisibility, params->pTags ); + steamclient_free_path( u_pchPreviewFile ); return 0; } @@ -437,7 +447,9 @@ NTSTATUS ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownload { struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownloadToLocation_params *params = (struct ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownloadToLocation_params *)args; struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *iface = (struct u_ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->UGCDownloadToLocation( params->hContent, params->pchLocation, params->unPriority ); + char *u_pchLocation = steamclient_dos_to_unix_path( params->pchLocation, 0 ); + params->_ret = iface->UGCDownloadToLocation( params->hContent, u_pchLocation, params->unPriority ); + steamclient_free_path( u_pchLocation ); return 0; } diff --git a/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001.cpp b/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001.cpp index dbfc9ae8..7298df77 100644 --- a/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001.cpp +++ b/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001.cpp @@ -13,7 +13,11 @@ NTSTATUS ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotTo { struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary_params *params = (struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary_params *)args; struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001 *iface = (struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001 *)params->linux_side; - params->_ret = iface->AddScreenshotToLibrary( params->pchFilename, params->pchThumbnailFilename, params->nWidth, params->nHeight ); + char *u_pchFilename = steamclient_dos_to_unix_path( params->pchFilename, 0 ); + char *u_pchThumbnailFilename = steamclient_dos_to_unix_path( params->pchThumbnailFilename, 0 ); + params->_ret = iface->AddScreenshotToLibrary( u_pchFilename, u_pchThumbnailFilename, params->nWidth, params->nHeight ); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchThumbnailFilename ); return 0; } diff --git a/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002.cpp b/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002.cpp index d03c6213..43fa053d 100644 --- a/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002.cpp +++ b/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002.cpp @@ -13,7 +13,11 @@ NTSTATUS ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotTo { struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary_params *params = (struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary_params *)args; struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *iface = (struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002 *)params->linux_side; - params->_ret = iface->AddScreenshotToLibrary( params->pchFilename, params->pchThumbnailFilename, params->nWidth, params->nHeight ); + char *u_pchFilename = steamclient_dos_to_unix_path( params->pchFilename, 0 ); + char *u_pchThumbnailFilename = steamclient_dos_to_unix_path( params->pchThumbnailFilename, 0 ); + params->_ret = iface->AddScreenshotToLibrary( u_pchFilename, u_pchThumbnailFilename, params->nWidth, params->nHeight ); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchThumbnailFilename ); return 0; } diff --git a/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003.cpp b/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003.cpp index 7278fa80..98013217 100644 --- a/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003.cpp +++ b/lsteamclient/cppISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003.cpp @@ -13,7 +13,11 @@ NTSTATUS ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotTo { struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary_params *params = (struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary_params *)args; struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003 *iface = (struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003 *)params->linux_side; - params->_ret = iface->AddScreenshotToLibrary( params->pchFilename, params->pchThumbnailFilename, params->nWidth, params->nHeight ); + char *u_pchFilename = steamclient_dos_to_unix_path( params->pchFilename, 0 ); + char *u_pchThumbnailFilename = steamclient_dos_to_unix_path( params->pchThumbnailFilename, 0 ); + params->_ret = iface->AddScreenshotToLibrary( u_pchFilename, u_pchThumbnailFilename, params->nWidth, params->nHeight ); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchThumbnailFilename ); return 0; } @@ -69,7 +73,11 @@ NTSTATUS ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshot { struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary_params *params = (struct ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary_params *)args; struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003 *iface = (struct u_ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003 *)params->linux_side; - params->_ret = iface->AddVRScreenshotToLibrary( params->eType, params->pchFilename, params->pchVRFilename ); + char *u_pchFilename = steamclient_dos_to_unix_path( params->pchFilename, 0 ); + char *u_pchVRFilename = steamclient_dos_to_unix_path( params->pchVRFilename, 0 ); + params->_ret = iface->AddVRScreenshotToLibrary( params->eType, u_pchFilename, u_pchVRFilename ); + steamclient_free_path( u_pchFilename ); + steamclient_free_path( u_pchVRFilename ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp index e3ca9bbc..51b01ce7 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION002.cpp @@ -175,7 +175,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION002 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION002 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -183,7 +185,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION002 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION002 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp index 43fb5839..057ff8fc 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION003.cpp @@ -175,7 +175,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION003 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION003 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -183,7 +185,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION003 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION003 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION004.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION004.cpp index c27074cb..168c4506 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION004.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION004.cpp @@ -175,7 +175,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION004 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION004 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -183,7 +185,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION004 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION004 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp index b8967346..573874db 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION005.cpp @@ -263,7 +263,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION005 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION005 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -271,7 +273,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION005 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION005 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION006.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION006.cpp index ae21469f..2039d2a7 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION006.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION006.cpp @@ -279,7 +279,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION006 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION006 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -287,7 +289,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION006 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION006 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp index a8840eca..33ab52b0 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION007.cpp @@ -311,7 +311,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -319,7 +321,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -455,7 +459,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION007 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp index 9035c26b..5e948daf 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION008.cpp @@ -311,7 +311,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -319,7 +321,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -343,7 +347,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -359,7 +365,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -495,7 +503,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION008 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp index 75724afe..0fce886d 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION009.cpp @@ -319,7 +319,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -327,7 +329,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -351,7 +355,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -367,7 +373,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -503,7 +511,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION009 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp index 6de5cd2f..f4fb2d01 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION010.cpp @@ -327,7 +327,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -335,7 +337,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -359,7 +363,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -375,7 +381,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -511,7 +519,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION010 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION012.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION012.cpp index 8f8c77c4..e0cf833d 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION012.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION012.cpp @@ -335,7 +335,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -343,7 +345,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -375,7 +379,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -391,7 +397,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -527,7 +535,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION012 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION013.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION013.cpp index ba3db742..3a77fae8 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION013.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION013.cpp @@ -343,7 +343,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -351,7 +353,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -391,7 +395,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -407,7 +413,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -543,7 +551,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION013 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION014.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION014.cpp index 50c79dd5..645b8bcf 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION014.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION014.cpp @@ -351,7 +351,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -359,7 +361,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -399,7 +403,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -415,7 +421,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -551,7 +559,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION014 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION015.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION015.cpp index 7ebc954b..442924b1 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION015.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION015.cpp @@ -375,7 +375,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -383,7 +385,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -423,7 +427,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -439,7 +445,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -575,7 +583,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION015 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION016.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION016.cpp index d648b055..02287481 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION016.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION016.cpp @@ -391,7 +391,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -399,7 +401,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -439,7 +443,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -455,7 +461,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -591,7 +599,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION016 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION017.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION017.cpp index 6378daef..17c4f251 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION017.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION017.cpp @@ -399,7 +399,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -407,7 +409,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -447,7 +451,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -463,7 +469,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -615,7 +623,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION017 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION018.cpp b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION018.cpp index 01190419..b1b4834e 100644 --- a/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION018.cpp +++ b/lsteamclient/cppISteamUGC_STEAMUGC_INTERFACE_VERSION018.cpp @@ -399,7 +399,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *)params->linux_side; - params->_ret = iface->SetItemContent( params->handle, params->pszContentFolder ); + char *u_pszContentFolder = steamclient_dos_to_unix_path( params->pszContentFolder, 0 ); + params->_ret = iface->SetItemContent( params->handle, u_pszContentFolder ); + steamclient_free_path( u_pszContentFolder ); return 0; } @@ -407,7 +409,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview( void *args ) { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *)params->linux_side; - params->_ret = iface->SetItemPreview( params->handle, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->SetItemPreview( params->handle, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -447,7 +451,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile( void *args { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *)params->linux_side; - params->_ret = iface->AddItemPreviewFile( params->handle, params->pszPreviewFile, params->type ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->AddItemPreviewFile( params->handle, u_pszPreviewFile, params->type ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -463,7 +469,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile( void *ar { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *)params->linux_side; - params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, params->pszPreviewFile ); + char *u_pszPreviewFile = steamclient_dos_to_unix_path( params->pszPreviewFile, 0 ); + params->_ret = iface->UpdateItemPreviewFile( params->handle, params->index, u_pszPreviewFile ); + steamclient_free_path( u_pszPreviewFile ); return 0; } @@ -615,7 +623,9 @@ NTSTATUS ISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer( voi { struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer_params *params = (struct ISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer_params *)args; struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *iface = (struct u_ISteamUGC_STEAMUGC_INTERFACE_VERSION018 *)params->linux_side; - params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, params->pszFolder ); + char *u_pszFolder = steamclient_dos_to_unix_path( params->pszFolder, 0 ); + params->_ret = iface->BInitWorkshopForGameServer( params->unWorkshopDepotID, u_pszFolder ); + steamclient_free_path( u_pszFolder ); return 0; } diff --git a/lsteamclient/cppISteamUtils_SteamUtils005.cpp b/lsteamclient/cppISteamUtils_SteamUtils005.cpp index 7daf03a5..d5a2f334 100644 --- a/lsteamclient/cppISteamUtils_SteamUtils005.cpp +++ b/lsteamclient/cppISteamUtils_SteamUtils005.cpp @@ -150,7 +150,9 @@ NTSTATUS ISteamUtils_SteamUtils005_CheckFileSignature( void *args ) { struct ISteamUtils_SteamUtils005_CheckFileSignature_params *params = (struct ISteamUtils_SteamUtils005_CheckFileSignature_params *)args; struct u_ISteamUtils_SteamUtils005 *iface = (struct u_ISteamUtils_SteamUtils005 *)params->linux_side; - params->_ret = iface->CheckFileSignature( params->szFileName ); + char *u_szFileName = steamclient_dos_to_unix_path( params->szFileName, 0 ); + params->_ret = iface->CheckFileSignature( u_szFileName ); + steamclient_free_path( u_szFileName ); return 0; } diff --git a/lsteamclient/cppISteamUtils_SteamUtils006.cpp b/lsteamclient/cppISteamUtils_SteamUtils006.cpp index af8d4799..de2dee94 100644 --- a/lsteamclient/cppISteamUtils_SteamUtils006.cpp +++ b/lsteamclient/cppISteamUtils_SteamUtils006.cpp @@ -150,7 +150,9 @@ NTSTATUS ISteamUtils_SteamUtils006_CheckFileSignature( void *args ) { struct ISteamUtils_SteamUtils006_CheckFileSignature_params *params = (struct ISteamUtils_SteamUtils006_CheckFileSignature_params *)args; struct u_ISteamUtils_SteamUtils006 *iface = (struct u_ISteamUtils_SteamUtils006 *)params->linux_side; - params->_ret = iface->CheckFileSignature( params->szFileName ); + char *u_szFileName = steamclient_dos_to_unix_path( params->szFileName, 0 ); + params->_ret = iface->CheckFileSignature( u_szFileName ); + steamclient_free_path( u_szFileName ); return 0; } diff --git a/lsteamclient/cppISteamUtils_SteamUtils007.cpp b/lsteamclient/cppISteamUtils_SteamUtils007.cpp index cbab5a1b..26632851 100644 --- a/lsteamclient/cppISteamUtils_SteamUtils007.cpp +++ b/lsteamclient/cppISteamUtils_SteamUtils007.cpp @@ -150,7 +150,9 @@ NTSTATUS ISteamUtils_SteamUtils007_CheckFileSignature( void *args ) { struct ISteamUtils_SteamUtils007_CheckFileSignature_params *params = (struct ISteamUtils_SteamUtils007_CheckFileSignature_params *)args; struct u_ISteamUtils_SteamUtils007 *iface = (struct u_ISteamUtils_SteamUtils007 *)params->linux_side; - params->_ret = iface->CheckFileSignature( params->szFileName ); + char *u_szFileName = steamclient_dos_to_unix_path( params->szFileName, 0 ); + params->_ret = iface->CheckFileSignature( u_szFileName ); + steamclient_free_path( u_szFileName ); return 0; } diff --git a/lsteamclient/cppISteamUtils_SteamUtils008.cpp b/lsteamclient/cppISteamUtils_SteamUtils008.cpp index 44bca465..47ef7814 100644 --- a/lsteamclient/cppISteamUtils_SteamUtils008.cpp +++ b/lsteamclient/cppISteamUtils_SteamUtils008.cpp @@ -150,7 +150,9 @@ NTSTATUS ISteamUtils_SteamUtils008_CheckFileSignature( void *args ) { struct ISteamUtils_SteamUtils008_CheckFileSignature_params *params = (struct ISteamUtils_SteamUtils008_CheckFileSignature_params *)args; struct u_ISteamUtils_SteamUtils008 *iface = (struct u_ISteamUtils_SteamUtils008 *)params->linux_side; - params->_ret = iface->CheckFileSignature( params->szFileName ); + char *u_szFileName = steamclient_dos_to_unix_path( params->szFileName, 0 ); + params->_ret = iface->CheckFileSignature( u_szFileName ); + steamclient_free_path( u_szFileName ); return 0; } diff --git a/lsteamclient/cppISteamUtils_SteamUtils009.cpp b/lsteamclient/cppISteamUtils_SteamUtils009.cpp index 81add918..81fa9e7d 100644 --- a/lsteamclient/cppISteamUtils_SteamUtils009.cpp +++ b/lsteamclient/cppISteamUtils_SteamUtils009.cpp @@ -150,7 +150,9 @@ NTSTATUS ISteamUtils_SteamUtils009_CheckFileSignature( void *args ) { struct ISteamUtils_SteamUtils009_CheckFileSignature_params *params = (struct ISteamUtils_SteamUtils009_CheckFileSignature_params *)args; struct u_ISteamUtils_SteamUtils009 *iface = (struct u_ISteamUtils_SteamUtils009 *)params->linux_side; - params->_ret = iface->CheckFileSignature( params->szFileName ); + char *u_szFileName = steamclient_dos_to_unix_path( params->szFileName, 0 ); + params->_ret = iface->CheckFileSignature( u_szFileName ); + steamclient_free_path( u_szFileName ); return 0; } diff --git a/lsteamclient/cppISteamUtils_SteamUtils010.cpp b/lsteamclient/cppISteamUtils_SteamUtils010.cpp index 1708f9de..82889df1 100644 --- a/lsteamclient/cppISteamUtils_SteamUtils010.cpp +++ b/lsteamclient/cppISteamUtils_SteamUtils010.cpp @@ -150,7 +150,9 @@ NTSTATUS ISteamUtils_SteamUtils010_CheckFileSignature( void *args ) { struct ISteamUtils_SteamUtils010_CheckFileSignature_params *params = (struct ISteamUtils_SteamUtils010_CheckFileSignature_params *)args; struct u_ISteamUtils_SteamUtils010 *iface = (struct u_ISteamUtils_SteamUtils010 *)params->linux_side; - params->_ret = iface->CheckFileSignature( params->szFileName ); + char *u_szFileName = steamclient_dos_to_unix_path( params->szFileName, 0 ); + params->_ret = iface->CheckFileSignature( u_szFileName ); + steamclient_free_path( u_szFileName ); return 0; } diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index 4013d36a..c525005a 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -931,6 +931,14 @@ def handle_method_cpp(method, classname, out): if underlying_typename(param) not in SIZED_STRUCTS | EXEMPT_STRUCTS: print('Warning:', underlying_typename(param), name, 'following', prev_name) + path_conv_wtou = PATH_CONV_METHODS_WTOU.get(f'{klass.name}_{method.spelling}', {}) + + for name, conv in filter(lambda x: x[0] in names, path_conv_wtou.items()): + if conv['array']: + out(f' const char **u_{name} = steamclient_dos_to_unix_path_array( params->{name} );\n') + else: + out(f' char *u_{name} = steamclient_dos_to_unix_path( params->{name}, {int(conv["url"])} );\n') + need_output = {} for name, param in sorted(need_convert.items()): @@ -969,6 +977,7 @@ def handle_method_cpp(method, classname, out): pfx = '&' if param.type.kind == TypeKind.POINTER else '' if name in need_convert: return f"{pfx}u_{name}" if name in manual_convert: return f"u_{name}" + if name in path_conv_wtou: return f"u_{name}" if name in need_wrapper: return f"u_{name}" return f'params->{name}' @@ -986,6 +995,12 @@ def handle_method_cpp(method, classname, out): for name, param in sorted(need_output.items()): out(f' *params->{name} = u_{name};\n') + for name, conv in filter(lambda x: x[0] in names, path_conv_wtou.items()): + if conv["array"]: + out(f' steamclient_free_path_array( u_{name} );\n') + else: + out(f' steamclient_free_path( u_{name} );\n') + out(u' return 0;\n') out(u'}\n\n') @@ -1032,13 +1047,6 @@ def handle_method_c(klass, method, winclassname, out): out(u' };\n') path_conv_utow = PATH_CONV_METHODS_UTOW.get(f'{klass.name}_{method.spelling}', {}) - path_conv_wtou = PATH_CONV_METHODS_WTOU.get(f'{klass.name}_{method.spelling}', {}) - - for name, conv in filter(lambda x: x[0] in names, path_conv_wtou.items()): - if conv['array']: - out(f' params.{name} = steamclient_dos_to_unix_path_array( {name} );\n') - else: - out(f' params.{name} = steamclient_dos_to_unix_path( {name}, {int(conv["url"])} );\n') out(u' TRACE("%p\\n", _this);\n') @@ -1057,12 +1065,6 @@ def handle_method_c(klass, method, winclassname, out): out(u'params._ret = ') out(f'steamclient_unix_path_to_dos_path( params._ret, {name}, {name}, {conv["len"]}, {int(conv["url"])} );\n') - for name, conv in filter(lambda x: x[0] in names, path_conv_wtou.items()): - if conv["array"]: - out(f' steamclient_free_path_array( params.{name} );\n') - else: - out(f' steamclient_free_path( params.{name} );\n') - if not returns_void: out(u' return params._ret;\n') out(u'}\n\n') diff --git a/lsteamclient/steamclient_main.c b/lsteamclient/steamclient_main.c index e9f2ca82..64240b6c 100644 --- a/lsteamclient/steamclient_main.c +++ b/lsteamclient/steamclient_main.c @@ -114,123 +114,6 @@ unsigned int steamclient_unix_path_to_dos_path( bool api_result, const char *src return r; } -#define IS_ABSOLUTE(x) (*x == '/' || *x == '\\' || (*x && *(x + 1) == ':')) - -const char *steamclient_dos_to_unix_path( const char *src, int is_url ) -{ - static const char file_prot[] = "file://"; - char buffer[4096], *dst = buffer; - uint32_t len; - - if (!src) return NULL; - - *dst = 0; - if (!*src) goto done; - - if(is_url){ - if(strncmp(src, file_prot, 7) != 0){ - strcpy(dst, src); - goto done; - } - - src += 7; - memcpy(dst, file_prot, sizeof(file_prot)); - dst += 7; - } - - if(IS_ABSOLUTE(src)){ - /* absolute path, use wine conversion */ - WCHAR srcW[PATH_MAX]; - char *unix_path; - uint32_t r; - - r = MultiByteToWideChar(CP_UNIXCP, 0, src, -1, srcW, PATH_MAX); - if(r == 0) - return NULL; - - unix_path = wine_get_unix_file_name(srcW); - if(!unix_path){ - WARN("Unable to convert DOS filename to unix: %s\n", src); - return NULL; - } - - lstrcpynA(dst, unix_path, PATH_MAX); - - HeapFree(GetProcessHeap(), 0, unix_path); - }else{ - /* relative path, just fix up backslashes */ - const char *s; - char *d; - - for(s = src, d = dst; *s; ++s, ++d){ - if(*s == '\\') - *d = '/'; - else - *d = *s; - } - - *d = 0; - } - -done: - len = strlen( buffer ); - if (!(dst = HeapAlloc( GetProcessHeap(), 0, len + 1 ))) return NULL; - memcpy( dst, buffer, len + 1 ); - return dst; -} - -void steamclient_free_path( const char *path ) -{ - HeapFree( GetProcessHeap(), 0, (char *)path ); -} - -const char **steamclient_dos_to_unix_path_array( const char **src ) -{ - size_t len; - const char **s; - char **out, **o; - WCHAR scratch[PATH_MAX]; - - if(!src) - return NULL; - - len = sizeof(char*); /* NUL */ - for(s = src; *s; ++s) - len += sizeof(char*); - - out = HeapAlloc(GetProcessHeap(), 0, len); - - for(s = src, o = out; *s; ++s, ++o){ - if(IS_ABSOLUTE(*s)){ - MultiByteToWideChar(CP_UNIXCP, 0, *s, -1, scratch, sizeof(scratch)/sizeof(*scratch)); - *o = wine_get_unix_file_name(scratch); - }else{ - const char *r; - char *l; - *o = HeapAlloc(GetProcessHeap(), 0, strlen(*s) + 1); - for(r = *s, l = *o; *r; ++l, ++r){ - if(*r == '\\') - *l = '/'; - else - *l = *r; - } - *l = 0; - } - } - - *o = NULL; - - return (const char **)out; -} - -void steamclient_free_path_array( const char **path_array ) -{ - const char **path; - if (!path_array) return; - for (path = path_array; *path; path++) HeapFree( GetProcessHeap(), 0, *(char **)path ); - HeapFree( GetProcessHeap(), 0, path_array ); -} - static BYTE *alloc_start, *alloc_end; static bool allocated_from_steamclient_dll( void *ptr ) diff --git a/lsteamclient/unix_private.h b/lsteamclient/unix_private.h index d6457964..201d5b55 100644 --- a/lsteamclient/unix_private.h +++ b/lsteamclient/unix_private.h @@ -78,6 +78,11 @@ extern NTSTATUS steamclient_networking_messages_receive_153a( void * ); extern NTSTATUS steamclient_networking_message_release_147( void * ); extern NTSTATUS steamclient_networking_message_release_153a( void * ); +extern char *steamclient_dos_to_unix_path( const char *src, int is_url ); +extern void steamclient_free_path( char *path_array ); +extern const char **steamclient_dos_to_unix_path_array( const char **src_array ); +extern void steamclient_free_path_array( const char **path_array ); + #ifdef __cplusplus } /* extern "C" */ #endif /* __cplusplus */ diff --git a/lsteamclient/unixlib.cpp b/lsteamclient/unixlib.cpp index f1532064..f1399c51 100644 --- a/lsteamclient/unixlib.cpp +++ b/lsteamclient/unixlib.cpp @@ -1,5 +1,6 @@ #include "unix_private.h" +#include #include #include #include @@ -227,3 +228,125 @@ NTSTATUS steamclient_Steam_NotifyMissingInterface( void *args ) p_Steam_NotifyMissingInterface( params->pipe, params->version ); return 0; } + +#define IS_ABSOLUTE( x ) (*x == '/' || *x == '\\' || (*x && *(x + 1) == ':')) + +char *steamclient_dos_to_unix_path( const char *src, int is_url ) +{ + static const char file_prot[] = "file://"; + char buffer[4096], *dst = buffer; + uint32_t len; + + if (!src) return NULL; + + *dst = 0; + if (!*src) goto done; + + if (is_url) + { + if (strncmp( src, file_prot, 7 ) != 0) + { + strcpy( dst, src ); + goto done; + } + + src += 7; + memcpy( dst, file_prot, sizeof(file_prot) ); + dst += 7; + } + + if (IS_ABSOLUTE( src )) + { + /* absolute path, use wine conversion */ + WCHAR srcW[PATH_MAX] = {0}; + char *unix_path; + uint32_t r; + + r = MultiByteToWideChar( CP_UNIXCP, 0, src, -1, srcW, PATH_MAX ); + if (r == 0) return NULL; + + unix_path = wine_get_unix_file_name( srcW ); + if (!unix_path) + { + WARN( "Unable to convert DOS filename to unix: %s\n", src ); + return NULL; + } + + lstrcpynA( dst, unix_path, PATH_MAX ); + HeapFree( GetProcessHeap(), 0, unix_path ); + } + else + { + /* relative path, just fix up backslashes */ + const char *s; + char *d; + + for (s = src, d = dst; *s; ++s, ++d) + { + if (*s == '\\') *d = '/'; + else *d = *s; + } + + *d = 0; + } + +done: + len = strlen( buffer ) + 1; + if (!(dst = (char *)HeapAlloc( GetProcessHeap(), 0, len ))) return NULL; + memcpy( dst, buffer, len ); + + return dst; +} + +void steamclient_free_path( char *path ) +{ + HeapFree( GetProcessHeap(), 0, path ); +} + +const char **steamclient_dos_to_unix_path_array( const char **src ) +{ + size_t len; + const char **s; + char **out, **o; + WCHAR scratch[PATH_MAX] = {0}; + + if (!src) return NULL; + + len = sizeof(char *); /* NUL */ + for (s = src; *s; ++s) len += sizeof(char *); + + out = (char **)HeapAlloc( GetProcessHeap(), 0, len ); + + for (s = src, o = out; *s; ++s, ++o) + { + if (IS_ABSOLUTE( *s )) + { + MultiByteToWideChar( CP_UNIXCP, 0, *s, -1, scratch, PATH_MAX ); + *o = wine_get_unix_file_name( scratch ); + } + else + { + const char *r; + char *l; + *o = (char *)HeapAlloc( GetProcessHeap(), 0, strlen( *s ) + 1 ); + for (r = *s, l = *o; *r; ++l, ++r) + { + if (*r == '\\') *l = '/'; + else *l = *r; + } + *l = 0; + } + } + + *o = NULL; + + return (const char **)out; +} + +void steamclient_free_path_array( const char **path_array ) +{ + const char **path; + if (!path_array) return; + for (path = path_array; *path; path++) HeapFree( GetProcessHeap(), 0, *(char **)path ); + HeapFree( GetProcessHeap(), 0, path_array ); +} diff --git a/lsteamclient/unixlib.h b/lsteamclient/unixlib.h index d2cbf573..b6bf2ed8 100644 --- a/lsteamclient/unixlib.h +++ b/lsteamclient/unixlib.h @@ -22,11 +22,6 @@ extern "C" unsigned int steamclient_unix_path_to_dos_path( bool api_result, const char *src, char *dst, uint32_t dst_bytes, int is_url ); -extern const char *steamclient_dos_to_unix_path( const char *src, int is_url ); -extern void steamclient_free_path( const char *path_array ); -extern const char **steamclient_dos_to_unix_path_array( const char **src_array ); -extern void steamclient_free_path_array( const char **path_array ); - #define PATH_MAX 4096 extern char g_tmppath[PATH_MAX]; diff --git a/lsteamclient/winISteamApps.c b/lsteamclient/winISteamApps.c index f2dec58a..17f6c8ae 100644 --- a/lsteamclient/winISteamApps.c +++ b/lsteamclient/winISteamApps.c @@ -1798,10 +1798,8 @@ uint64_t __thiscall winISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails( .linux_side = _this->u_iface, .pszFileName = pszFileName, }; - params.pszFileName = steamclient_dos_to_unix_path( pszFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamApps_STEAMAPPS_INTERFACE_VERSION008_GetFileDetails, ¶ms ); - steamclient_free_path( params.pszFileName ); return params._ret; } diff --git a/lsteamclient/winISteamController.c b/lsteamclient/winISteamController.c index cb801e34..39cb237e 100644 --- a/lsteamclient/winISteamController.c +++ b/lsteamclient/winISteamController.c @@ -17,10 +17,8 @@ bool __thiscall winISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init(struc .linux_side = _this->u_iface, .pchAbsolutePathToControllerConfigVDF = pchAbsolutePathToControllerConfigVDF, }; - params.pchAbsolutePathToControllerConfigVDF = steamclient_dos_to_unix_path( pchAbsolutePathToControllerConfigVDF, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamController_STEAMCONTROLLER_INTERFACE_VERSION_Init, ¶ms ); - steamclient_free_path( params.pchAbsolutePathToControllerConfigVDF ); return params._ret; } diff --git a/lsteamclient/winISteamHTMLSurface.c b/lsteamclient/winISteamHTMLSurface.c index 28c515eb..b596cecc 100644 --- a/lsteamclient/winISteamHTMLSurface.c +++ b/lsteamclient/winISteamHTMLSurface.c @@ -95,10 +95,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_Load .pchURL = pchURL, .pchPostData = pchPostData, }; - params.pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_LoadURL, ¶ms ); - steamclient_free_path( params.pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_SetSize(struct w_steam_iface *_this, uint32_t unBrowserHandle, uint32_t unWidth, uint32_t unHeight) @@ -422,10 +420,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_File .unBrowserHandle = unBrowserHandle, .pchSelectedFiles = pchSelectedFiles, }; - params.pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_FileLoadDialogResponse, ¶ms ); - steamclient_free_path_array( params.pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_001_vtable; @@ -573,10 +569,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_Load .pchURL = pchURL, .pchPostData = pchPostData, }; - params.pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_LoadURL, ¶ms ); - steamclient_free_path( params.pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_SetSize(struct w_steam_iface *_this, uint32_t unBrowserHandle, uint32_t unWidth, uint32_t unHeight) @@ -931,10 +925,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_File .unBrowserHandle = unBrowserHandle, .pchSelectedFiles = pchSelectedFiles, }; - params.pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_FileLoadDialogResponse, ¶ms ); - steamclient_free_path_array( params.pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_002_vtable; @@ -1085,10 +1077,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_Load .pchURL = pchURL, .pchPostData = pchPostData, }; - params.pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_LoadURL, ¶ms ); - steamclient_free_path( params.pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_SetSize(struct w_steam_iface *_this, uint32_t unBrowserHandle, uint32_t unWidth, uint32_t unHeight) @@ -1455,10 +1445,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_File .unBrowserHandle = unBrowserHandle, .pchSelectedFiles = pchSelectedFiles, }; - params.pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_FileLoadDialogResponse, ¶ms ); - steamclient_free_path_array( params.pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_003_vtable; @@ -1611,10 +1599,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_Load .pchURL = pchURL, .pchPostData = pchPostData, }; - params.pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_LoadURL, ¶ms ); - steamclient_free_path( params.pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_SetSize(struct w_steam_iface *_this, uint32_t unBrowserHandle, uint32_t unWidth, uint32_t unHeight) @@ -1993,10 +1979,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_File .unBrowserHandle = unBrowserHandle, .pchSelectedFiles = pchSelectedFiles, }; - params.pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_FileLoadDialogResponse, ¶ms ); - steamclient_free_path_array( params.pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_004_vtable; @@ -2151,10 +2135,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_Load .pchURL = pchURL, .pchPostData = pchPostData, }; - params.pchURL = steamclient_dos_to_unix_path( pchURL, 1 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_LoadURL, ¶ms ); - steamclient_free_path( params.pchURL ); } void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_SetSize(struct w_steam_iface *_this, uint32_t unBrowserHandle, uint32_t unWidth, uint32_t unHeight) @@ -2545,10 +2527,8 @@ void __thiscall winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_File .unBrowserHandle = unBrowserHandle, .pchSelectedFiles = pchSelectedFiles, }; - params.pchSelectedFiles = steamclient_dos_to_unix_path_array( pchSelectedFiles ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_FileLoadDialogResponse, ¶ms ); - steamclient_free_path_array( params.pchSelectedFiles ); } extern vtable_ptr winISteamHTMLSurface_STEAMHTMLSURFACE_INTERFACE_VERSION_005_vtable; diff --git a/lsteamclient/winISteamInput.c b/lsteamclient/winISteamInput.c index 5fa807ea..499318d0 100644 --- a/lsteamclient/winISteamInput.c +++ b/lsteamclient/winISteamInput.c @@ -1091,10 +1091,8 @@ bool __thiscall winISteamInput_SteamInput005_SetInputActionManifestFilePath(stru .linux_side = _this->u_iface, .pchInputActionManifestAbsolutePath = pchInputActionManifestAbsolutePath, }; - params.pchInputActionManifestAbsolutePath = steamclient_dos_to_unix_path( pchInputActionManifestAbsolutePath, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamInput_SteamInput005_SetInputActionManifestFilePath, ¶ms ); - steamclient_free_path( params.pchInputActionManifestAbsolutePath ); return params._ret; } @@ -1748,10 +1746,8 @@ bool __thiscall winISteamInput_SteamInput006_SetInputActionManifestFilePath(stru .linux_side = _this->u_iface, .pchInputActionManifestAbsolutePath = pchInputActionManifestAbsolutePath, }; - params.pchInputActionManifestAbsolutePath = steamclient_dos_to_unix_path( pchInputActionManifestAbsolutePath, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamInput_SteamInput006_SetInputActionManifestFilePath, ¶ms ); - steamclient_free_path( params.pchInputActionManifestAbsolutePath ); return params._ret; } diff --git a/lsteamclient/winISteamRemoteStorage.c b/lsteamclient/winISteamRemoteStorage.c index 22ffad3e..5e76a7aa 100644 --- a/lsteamclient/winISteamRemoteStorage.c +++ b/lsteamclient/winISteamRemoteStorage.c @@ -1236,12 +1236,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchDescription = pchDescription, .pTags = pTags, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION005_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -1726,12 +1722,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -1755,10 +1747,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -1770,10 +1760,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -1991,10 +1979,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION006_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -2454,12 +2440,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -2483,10 +2465,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -2498,10 +2478,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -2721,10 +2699,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION007_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -3238,12 +3214,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -3267,10 +3239,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -3282,10 +3252,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -3505,10 +3473,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION008_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -4027,12 +3993,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -4056,10 +4018,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -4071,10 +4031,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -4294,10 +4252,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION009_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -4818,12 +4774,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -4847,10 +4799,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -4862,10 +4812,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -5085,10 +5033,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -5144,10 +5090,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchLocation = pchLocation, .unPriority = unPriority, }; - params.pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION010_UGCDownloadToLocation, ¶ms ); - steamclient_free_path( params.pchLocation ); return params._ret; } @@ -5626,12 +5570,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -5655,10 +5595,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -5670,10 +5608,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -5894,10 +5830,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -5953,10 +5887,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchLocation = pchLocation, .unPriority = unPriority, }; - params.pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION011_UGCDownloadToLocation, ¶ms ); - steamclient_free_path( params.pchLocation ); return params._ret; } @@ -6436,12 +6368,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -6465,10 +6393,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -6480,10 +6406,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -6704,10 +6628,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -6763,10 +6685,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchLocation = pchLocation, .unPriority = unPriority, }; - params.pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION012_UGCDownloadToLocation, ¶ms ); - steamclient_free_path( params.pchLocation ); return params._ret; } @@ -7291,12 +7211,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -7320,10 +7236,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -7335,10 +7249,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -7559,10 +7471,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -7618,10 +7528,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchLocation = pchLocation, .unPriority = unPriority, }; - params.pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION013_UGCDownloadToLocation, ¶ms ); - steamclient_free_path( params.pchLocation ); return params._ret; } @@ -8149,12 +8057,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -8178,10 +8082,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -8193,10 +8095,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -8417,10 +8317,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -8476,10 +8374,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchLocation = pchLocation, .unPriority = unPriority, }; - params.pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION014_UGCDownloadToLocation, ¶ms ); - steamclient_free_path( params.pchLocation ); return params._ret; } @@ -9011,12 +8907,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pTags = pTags, .eWorkshopFileType = eWorkshopFileType, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishWorkshopFile, ¶ms ); - steamclient_free_path( params.pchFile ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -9040,10 +8932,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_U .updateHandle = updateHandle, .pchFile = pchFile, }; - params.pchFile = steamclient_dos_to_unix_path( pchFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFileFile, ¶ms ); - steamclient_free_path( params.pchFile ); return params._ret; } @@ -9055,10 +8945,8 @@ bool __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_U .updateHandle = updateHandle, .pchPreviewFile = pchPreviewFile, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UpdatePublishedFilePreviewFile, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -9279,10 +9167,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .eVisibility = eVisibility, .pTags = pTags, }; - params.pchPreviewFile = steamclient_dos_to_unix_path( pchPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_PublishVideo, ¶ms ); - steamclient_free_path( params.pchPreviewFile ); return params._ret; } @@ -9338,10 +9224,8 @@ uint64_t __thiscall winISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION0 .pchLocation = pchLocation, .unPriority = unPriority, }; - params.pchLocation = steamclient_dos_to_unix_path( pchLocation, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamRemoteStorage_STEAMREMOTESTORAGE_INTERFACE_VERSION016_UGCDownloadToLocation, ¶ms ); - steamclient_free_path( params.pchLocation ); return params._ret; } diff --git a/lsteamclient/winISteamScreenshots.c b/lsteamclient/winISteamScreenshots.c index c57956d6..97c0c42f 100644 --- a/lsteamclient/winISteamScreenshots.c +++ b/lsteamclient/winISteamScreenshots.c @@ -35,12 +35,8 @@ uint32_t __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_A .nWidth = nWidth, .nHeight = nHeight, }; - params.pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); - params.pchThumbnailFilename = steamclient_dos_to_unix_path( pchThumbnailFilename, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION001_AddScreenshotToLibrary, ¶ms ); - steamclient_free_path( params.pchFilename ); - steamclient_free_path( params.pchThumbnailFilename ); return params._ret; } @@ -148,12 +144,8 @@ uint32_t __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_A .nWidth = nWidth, .nHeight = nHeight, }; - params.pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); - params.pchThumbnailFilename = steamclient_dos_to_unix_path( pchThumbnailFilename, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION002_AddScreenshotToLibrary, ¶ms ); - steamclient_free_path( params.pchFilename ); - steamclient_free_path( params.pchThumbnailFilename ); return params._ret; } @@ -277,12 +269,8 @@ uint32_t __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_A .nWidth = nWidth, .nHeight = nHeight, }; - params.pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); - params.pchThumbnailFilename = steamclient_dos_to_unix_path( pchThumbnailFilename, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddScreenshotToLibrary, ¶ms ); - steamclient_free_path( params.pchFilename ); - steamclient_free_path( params.pchThumbnailFilename ); return params._ret; } @@ -366,12 +354,8 @@ uint32_t __thiscall winISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_A .pchFilename = pchFilename, .pchVRFilename = pchVRFilename, }; - params.pchFilename = steamclient_dos_to_unix_path( pchFilename, 0 ); - params.pchVRFilename = steamclient_dos_to_unix_path( pchVRFilename, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamScreenshots_STEAMSCREENSHOTS_INTERFACE_VERSION003_AddVRScreenshotToLibrary, ¶ms ); - steamclient_free_path( params.pchFilename ); - steamclient_free_path( params.pchVRFilename ); return params._ret; } diff --git a/lsteamclient/winISteamUGC.c b/lsteamclient/winISteamUGC.c index 9abd7fcc..d45a1645 100644 --- a/lsteamclient/winISteamUGC.c +++ b/lsteamclient/winISteamUGC.c @@ -558,10 +558,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -573,10 +571,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION002_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -1056,10 +1052,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -1071,10 +1065,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION003_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -1557,10 +1549,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -1572,10 +1562,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION004_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -2252,10 +2240,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -2267,10 +2253,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION005_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -3016,10 +3000,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -3031,10 +3013,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION006_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -3875,10 +3855,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -3890,10 +3868,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION007_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -4114,10 +4090,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION007_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -4802,10 +4776,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -4817,10 +4789,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION008_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -4860,10 +4830,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION008_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -4889,10 +4857,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION008_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -5113,10 +5079,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION008_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -5823,10 +5787,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -5838,10 +5800,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION009_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -5881,10 +5841,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION009_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -5910,10 +5868,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION009_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -6134,10 +6090,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION009_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -6905,10 +6859,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -6920,10 +6872,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION010_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -6963,10 +6913,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION010_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -6992,10 +6940,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION010_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -7216,10 +7162,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION010_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -8088,10 +8032,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -8103,10 +8045,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION012_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -8159,10 +8099,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION012_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -8188,10 +8126,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION012_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -8412,10 +8348,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION012_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -9304,10 +9238,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -9319,10 +9251,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION013_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -9387,10 +9317,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION013_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -9416,10 +9344,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION013_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -9640,10 +9566,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION013_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -10548,10 +10472,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -10563,10 +10485,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION014_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -10631,10 +10551,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION014_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -10660,10 +10578,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION014_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -10884,10 +10800,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION014_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -11843,10 +11757,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -11858,10 +11770,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION015_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -11926,10 +11836,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION015_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -11955,10 +11863,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION015_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -12179,10 +12085,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION015_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -13195,10 +13099,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -13210,10 +13112,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION016_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -13278,10 +13178,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION016_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -13307,10 +13205,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION016_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -13531,10 +13427,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION016_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -14567,10 +14461,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -14582,10 +14474,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION017_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -14650,10 +14540,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION017_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -14679,10 +14567,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION017_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -14929,10 +14815,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION017_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } @@ -15970,10 +15854,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent(struct .handle = handle, .pszContentFolder = pszContentFolder, }; - params.pszContentFolder = steamclient_dos_to_unix_path( pszContentFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemContent, ¶ms ); - steamclient_free_path( params.pszContentFolder ); return params._ret; } @@ -15985,10 +15867,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview(struct .handle = handle, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION018_SetItemPreview, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -16053,10 +15933,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile(st .pszPreviewFile = pszPreviewFile, .type = type, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION018_AddItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -16082,10 +15960,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile .index = index, .pszPreviewFile = pszPreviewFile, }; - params.pszPreviewFile = steamclient_dos_to_unix_path( pszPreviewFile, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION018_UpdateItemPreviewFile, ¶ms ); - steamclient_free_path( params.pszPreviewFile ); return params._ret; } @@ -16332,10 +16208,8 @@ bool __thiscall winISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameS .unWorkshopDepotID = unWorkshopDepotID, .pszFolder = pszFolder, }; - params.pszFolder = steamclient_dos_to_unix_path( pszFolder, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUGC_STEAMUGC_INTERFACE_VERSION018_BInitWorkshopForGameServer, ¶ms ); - steamclient_free_path( params.pszFolder ); return params._ret; } diff --git a/lsteamclient/winISteamUtils.c b/lsteamclient/winISteamUtils.c index 1ec56b60..04b5951f 100644 --- a/lsteamclient/winISteamUtils.c +++ b/lsteamclient/winISteamUtils.c @@ -743,10 +743,8 @@ uint64_t __thiscall winISteamUtils_SteamUtils005_CheckFileSignature(struct w_ste .linux_side = _this->u_iface, .szFileName = szFileName, }; - params.szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUtils_SteamUtils005_CheckFileSignature, ¶ms ); - steamclient_free_path( params.szFileName ); return params._ret; } @@ -1087,10 +1085,8 @@ uint64_t __thiscall winISteamUtils_SteamUtils006_CheckFileSignature(struct w_ste .linux_side = _this->u_iface, .szFileName = szFileName, }; - params.szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUtils_SteamUtils006_CheckFileSignature, ¶ms ); - steamclient_free_path( params.szFileName ); return params._ret; } @@ -1456,10 +1452,8 @@ uint64_t __thiscall winISteamUtils_SteamUtils007_CheckFileSignature(struct w_ste .linux_side = _this->u_iface, .szFileName = szFileName, }; - params.szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUtils_SteamUtils007_CheckFileSignature, ¶ms ); - steamclient_free_path( params.szFileName ); return params._ret; } @@ -1841,10 +1835,8 @@ uint64_t __thiscall winISteamUtils_SteamUtils008_CheckFileSignature(struct w_ste .linux_side = _this->u_iface, .szFileName = szFileName, }; - params.szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUtils_SteamUtils008_CheckFileSignature, ¶ms ); - steamclient_free_path( params.szFileName ); return params._ret; } @@ -2255,10 +2247,8 @@ uint64_t __thiscall winISteamUtils_SteamUtils009_CheckFileSignature(struct w_ste .linux_side = _this->u_iface, .szFileName = szFileName, }; - params.szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUtils_SteamUtils009_CheckFileSignature, ¶ms ); - steamclient_free_path( params.szFileName ); return params._ret; } @@ -2750,10 +2740,8 @@ uint64_t __thiscall winISteamUtils_SteamUtils010_CheckFileSignature(struct w_ste .linux_side = _this->u_iface, .szFileName = szFileName, }; - params.szFileName = steamclient_dos_to_unix_path( szFileName, 0 ); TRACE("%p\n", _this); STEAMCLIENT_CALL( ISteamUtils_SteamUtils010_CheckFileSignature, ¶ms ); - steamclient_free_path( params.szFileName ); return params._ret; }