Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
06fa39cd
Commit
06fa39cd
authored
May 26, 2021
by
Rémi Bernon
Committed by
Alexandre Julliard
May 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Implement IDirectInputDevice_WriteEffectToFile WtoA conversion.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
aa2da27e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
ansi.c
dlls/dinput/ansi.c
+13
-0
device.c
dlls/dinput/device.c
+0
-12
No files found.
dlls/dinput/ansi.c
View file @
06fa39cd
...
...
@@ -318,3 +318,16 @@ HRESULT WINAPI IDirectInputDevice7AImpl_EnumEffectsInFile( IDirectInputDevice8A
return
IDirectInputDevice8_EnumEffectsInFile
(
iface_w
,
filename_w
,
callback
,
ref
,
flags
);
}
HRESULT
WINAPI
IDirectInputDevice7AImpl_WriteEffectToFile
(
IDirectInputDevice8A
*
iface_a
,
const
char
*
filename_a
,
DWORD
entries
,
DIFILEEFFECT
*
file_effect
,
DWORD
flags
)
{
IDirectInputDeviceImpl
*
impl
=
impl_from_IDirectInputDevice8A
(
iface_a
);
IDirectInputDevice8W
*
iface_w
=
IDirectInputDevice8W_from_impl
(
impl
);
WCHAR
buffer
[
MAX_PATH
],
*
filename_w
=
buffer
;
if
(
!
filename_a
)
filename_w
=
NULL
;
else
MultiByteToWideChar
(
CP_ACP
,
0
,
filename_a
,
-
1
,
buffer
,
MAX_PATH
);
return
IDirectInputDevice8_WriteEffectToFile
(
iface_w
,
filename_w
,
entries
,
file_effect
,
flags
);
}
dlls/dinput/device.c
View file @
06fa39cd
...
...
@@ -1670,18 +1670,6 @@ HRESULT WINAPI IDirectInputDevice7WImpl_EnumEffectsInFile(LPDIRECTINPUTDEVICE8W
return
DI_OK
;
}
HRESULT
WINAPI
IDirectInputDevice7AImpl_WriteEffectToFile
(
LPDIRECTINPUTDEVICE8A
iface
,
LPCSTR
lpszFileName
,
DWORD
dwEntries
,
LPDIFILEEFFECT
rgDiFileEft
,
DWORD
dwFlags
)
{
IDirectInputDeviceImpl
*
This
=
impl_from_IDirectInputDevice8A
(
iface
);
FIXME
(
"(%p)->(%s,%08x,%p,%08x): stub !
\n
"
,
This
,
lpszFileName
,
dwEntries
,
rgDiFileEft
,
dwFlags
);
return
DI_OK
;
}
HRESULT
WINAPI
IDirectInputDevice7WImpl_WriteEffectToFile
(
LPDIRECTINPUTDEVICE8W
iface
,
LPCWSTR
lpszFileName
,
DWORD
dwEntries
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment