From c506aff6953ebe2abde823a979290573690d82ee Mon Sep 17 00:00:00 2001 From: Paul Gofman Date: Wed, 11 Sep 2024 14:53:33 -0600 Subject: [PATCH] lsteamclient: Convert URL in ISteamFriends::ActivateGameOverlayToWebPage(). CW-Bug-Id: #24247 --- lsteamclient/cppISteamFriends_SteamFriends005.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends006.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends007.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends008.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends009.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends010.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends011.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends012.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends013.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends014.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends015.cpp | 4 +++- lsteamclient/cppISteamFriends_SteamFriends017.cpp | 4 +++- lsteamclient/gen_wrapper.py | 3 +++ 13 files changed, 39 insertions(+), 12 deletions(-) diff --git a/lsteamclient/cppISteamFriends_SteamFriends005.cpp b/lsteamclient/cppISteamFriends_SteamFriends005.cpp index 352cfa8b..76847ffb 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends005.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends005.cpp @@ -177,7 +177,9 @@ NTSTATUS ISteamFriends_SteamFriends005_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends005_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends005_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends005 *iface = (struct u_ISteamFriends_SteamFriends005 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends006.cpp b/lsteamclient/cppISteamFriends_SteamFriends006.cpp index 289b82f7..6d880233 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends006.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends006.cpp @@ -185,7 +185,9 @@ NTSTATUS ISteamFriends_SteamFriends006_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends006_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends006_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends006 *iface = (struct u_ISteamFriends_SteamFriends006 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends007.cpp b/lsteamclient/cppISteamFriends_SteamFriends007.cpp index 7373c089..d1e484dc 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends007.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends007.cpp @@ -177,7 +177,9 @@ NTSTATUS ISteamFriends_SteamFriends007_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends007_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends007_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends007 *iface = (struct u_ISteamFriends_SteamFriends007 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends008.cpp b/lsteamclient/cppISteamFriends_SteamFriends008.cpp index ebd6836a..f5672634 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends008.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends008.cpp @@ -177,7 +177,9 @@ NTSTATUS ISteamFriends_SteamFriends008_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends008_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends008_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends008 *iface = (struct u_ISteamFriends_SteamFriends008 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends009.cpp b/lsteamclient/cppISteamFriends_SteamFriends009.cpp index 13910adf..3e67fb0a 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends009.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends009.cpp @@ -177,7 +177,9 @@ NTSTATUS ISteamFriends_SteamFriends009_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends009_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends009_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends009 *iface = (struct u_ISteamFriends_SteamFriends009 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends010.cpp b/lsteamclient/cppISteamFriends_SteamFriends010.cpp index dbeb612b..f5b63ada 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends010.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends010.cpp @@ -193,7 +193,9 @@ NTSTATUS ISteamFriends_SteamFriends010_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends010_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends010_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends010 *iface = (struct u_ISteamFriends_SteamFriends010 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends011.cpp b/lsteamclient/cppISteamFriends_SteamFriends011.cpp index fc257540..be388cf6 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends011.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends011.cpp @@ -193,7 +193,9 @@ NTSTATUS ISteamFriends_SteamFriends011_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends011_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends011_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends011 *iface = (struct u_ISteamFriends_SteamFriends011 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends012.cpp b/lsteamclient/cppISteamFriends_SteamFriends012.cpp index 0e724faa..34602e5e 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends012.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends012.cpp @@ -193,7 +193,9 @@ NTSTATUS ISteamFriends_SteamFriends012_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends012_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends012_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends012 *iface = (struct u_ISteamFriends_SteamFriends012 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends013.cpp b/lsteamclient/cppISteamFriends_SteamFriends013.cpp index e5443acb..6ebba6c9 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends013.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends013.cpp @@ -193,7 +193,9 @@ NTSTATUS ISteamFriends_SteamFriends013_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends013_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends013_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends013 *iface = (struct u_ISteamFriends_SteamFriends013 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends014.cpp b/lsteamclient/cppISteamFriends_SteamFriends014.cpp index e687894e..ee06f5c2 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends014.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends014.cpp @@ -201,7 +201,9 @@ NTSTATUS ISteamFriends_SteamFriends014_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends014_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends014_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends014 *iface = (struct u_ISteamFriends_SteamFriends014 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends015.cpp b/lsteamclient/cppISteamFriends_SteamFriends015.cpp index ea3031be..f74973e3 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends015.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends015.cpp @@ -249,7 +249,9 @@ NTSTATUS ISteamFriends_SteamFriends015_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends015_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends015_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends015 *iface = (struct u_ISteamFriends_SteamFriends015 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/cppISteamFriends_SteamFriends017.cpp b/lsteamclient/cppISteamFriends_SteamFriends017.cpp index 20d9a97f..c530b0f8 100644 --- a/lsteamclient/cppISteamFriends_SteamFriends017.cpp +++ b/lsteamclient/cppISteamFriends_SteamFriends017.cpp @@ -249,7 +249,9 @@ NTSTATUS ISteamFriends_SteamFriends017_ActivateGameOverlayToWebPage( void *args { struct ISteamFriends_SteamFriends017_ActivateGameOverlayToWebPage_params *params = (struct ISteamFriends_SteamFriends017_ActivateGameOverlayToWebPage_params *)args; struct u_ISteamFriends_SteamFriends017 *iface = (struct u_ISteamFriends_SteamFriends017 *)params->linux_side; - iface->ActivateGameOverlayToWebPage( params->pchURL, params->eMode ); + char *u_pchURL = steamclient_dos_to_unix_path( params->pchURL, 1 ); + iface->ActivateGameOverlayToWebPage( u_pchURL, params->eMode ); + steamclient_free_path( u_pchURL ); return 0; } diff --git a/lsteamclient/gen_wrapper.py b/lsteamclient/gen_wrapper.py index c21733bd..637532db 100755 --- a/lsteamclient/gen_wrapper.py +++ b/lsteamclient/gen_wrapper.py @@ -382,6 +382,9 @@ PATH_CONV_METHODS_WTOU = { "ISteamInput_SetInputActionManifestFilePath": { "pchInputActionManifestAbsolutePath": {"array": False, "url": False}, }, + "ISteamFriends_ActivateGameOverlayToWebPage": { + "pchURL": {"array": False, "url": True}, + }, } PATH_CONV_STRUCTS = {