Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7e44db5c
Commit
7e44db5c
authored
Jun 14, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved config parameters to HKCU\Software\Wine\DirectInput.
parent
2e5cc85d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
joystick_linux.c
dlls/dinput/joystick_linux.c
+12
-15
No files found.
dlls/dinput/joystick_linux.c
View file @
7e44db5c
...
...
@@ -269,30 +269,27 @@ inline static DWORD get_config_key( HKEY defkey, HKEY appkey, const char *name,
static
HRESULT
setup_dinput_options
(
JoystickImpl
*
device
)
{
char
buffer
[
MAX_PATH
+
1
];
char
buffer
[
MAX_PATH
+
1
6
];
HKEY
hkey
,
appkey
=
0
;
DWORD
len
;
buffer
[
MAX_PATH
]
=
'\0'
;
/* @@ Wine registry key: HK
LM\Software\Wine\di
nput */
if
(
RegOpenKeyA
(
HKEY_
LOCAL_MACHINE
,
"Software
\\
Wine
\\
di
nput"
,
&
hkey
))
hkey
=
0
;
/* @@ Wine registry key: HK
CU\Software\Wine\DirectI
nput */
if
(
RegOpenKeyA
(
HKEY_
CURRENT_USER
,
"Software
\\
Wine
\\
DirectI
nput"
,
&
hkey
))
hkey
=
0
;
len
=
GetModuleFileNameA
(
0
,
buffer
,
MAX_PATH
);
if
(
len
&&
len
<
MAX_PATH
)
{
HKEY
tmpkey
;
/* @@ Wine registry key: HKLM\Software\Wine\AppDefaults\app.exe\dinput */
if
(
!
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
AppDefaults"
,
&
tmpkey
))
{
char
appname
[
MAX_PATH
+
16
];
char
*
p
=
strrchr
(
buffer
,
'\\'
);
if
(
p
!=
NULL
)
{
strcpy
(
appname
,
p
+
1
);
strcat
(
appname
,
"
\\
dinput"
);
TRACE
(
"appname = [%s]
\n
"
,
appname
);
if
(
RegOpenKeyA
(
tmpkey
,
appname
,
&
appkey
))
appkey
=
0
;
}
RegCloseKey
(
tmpkey
);
/* @@ Wine registry key: HKCU\Software\Wine\AppDefaults\app.exe\DirectInput */
if
(
!
RegOpenKeyA
(
HKEY_CURRENT_USER
,
"Software
\\
Wine
\\
AppDefaults"
,
&
tmpkey
))
{
char
*
p
,
*
appname
=
buffer
;
if
((
p
=
strrchr
(
appname
,
'/'
)))
appname
=
p
+
1
;
if
((
p
=
strrchr
(
appname
,
'\\'
)))
appname
=
p
+
1
;
strcat
(
appname
,
"
\\
DirectInput"
);
if
(
RegOpenKeyA
(
tmpkey
,
appname
,
&
appkey
))
appkey
=
0
;
RegCloseKey
(
tmpkey
);
}
}
...
...
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