lsteamclient: Convert path given to ISteamInput::SetInputActionManifestFilePath

CW-Bug-Id: #19517
This commit is contained in:
Andrew Eikum 2021-10-08 09:38:27 -05:00
parent da911c3bf9
commit 4b9b102b31
2 changed files with 14 additions and 2 deletions

View File

@ -558,7 +558,17 @@ path_conversions = [
"w2l_arrays": [False], "w2l_arrays": [False],
"w2l_urls": [False], "w2l_urls": [False],
"return_is_size": False "return_is_size": False
} },
{
"parent_name": "SetInputActionManifestFilePath",
"l2w_names": [],
"l2w_lens": [],
"l2w_urls": [],
"w2l_names": ["pchInputActionManifestAbsolutePath"],
"w2l_arrays": [False],
"w2l_urls": [False],
"return_is_size": False
},
] ]
def strip_const(typename): def strip_const(typename):

View File

@ -39,8 +39,10 @@ bool __thiscall winISteamInput_SteamInput005_Shutdown(winISteamInput_SteamInput0
DEFINE_THISCALL_WRAPPER(winISteamInput_SteamInput005_SetInputActionManifestFilePath, 8) DEFINE_THISCALL_WRAPPER(winISteamInput_SteamInput005_SetInputActionManifestFilePath, 8)
bool __thiscall winISteamInput_SteamInput005_SetInputActionManifestFilePath(winISteamInput_SteamInput005 *_this, const char * pchInputActionManifestAbsolutePath) bool __thiscall winISteamInput_SteamInput005_SetInputActionManifestFilePath(winISteamInput_SteamInput005 *_this, const char * pchInputActionManifestAbsolutePath)
{ {
char lin_pchInputActionManifestAbsolutePath[PATH_MAX];
steamclient_dos_path_to_unix_path(pchInputActionManifestAbsolutePath, lin_pchInputActionManifestAbsolutePath, 0);
TRACE("%p\n", _this); TRACE("%p\n", _this);
return cppISteamInput_SteamInput005_SetInputActionManifestFilePath(_this->linux_side, pchInputActionManifestAbsolutePath); return cppISteamInput_SteamInput005_SetInputActionManifestFilePath(_this->linux_side, pchInputActionManifestAbsolutePath ? lin_pchInputActionManifestAbsolutePath : NULL);
} }
DEFINE_THISCALL_WRAPPER(winISteamInput_SteamInput005_RunFrame, 8) DEFINE_THISCALL_WRAPPER(winISteamInput_SteamInput005_RunFrame, 8)